Home
last modified time | relevance | path

Searched refs:optval_end (Results 1 – 12 of 12) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dsockopt_multi.c13 __u8 *optval_end = ctx->optval_end; in _getsockopt_child() local
19 if (optval + 1 > optval_end) in _getsockopt_child()
42 __u8 *optval_end = ctx->optval_end; in _getsockopt_parent() local
48 if (optval + 1 > optval_end) in _getsockopt_parent()
71 __u8 *optval_end = ctx->optval_end; in _setsockopt() local
77 if (optval + 1 > optval_end) in _setsockopt()
H A Dsockopt_sk.c32 __u8 *optval_end = ctx->optval_end; in _getsockopt() local
81 if (optval + sizeof(__u64) > optval_end) in _getsockopt()
91 if (optval + 1 > optval_end) in _getsockopt()
104 if (optval_end - optval != page_size) in _getsockopt()
113 if (optval + 1 > optval_end) in _getsockopt()
142 __u8 *optval_end = ctx->optval_end; in _setsockopt() local
186 if (optval + sizeof(__u32) > optval_end) in _setsockopt()
198 if (optval + 5 > optval_end) in _setsockopt()
212 if (optval + 1 > optval_end) in _setsockopt()
223 if (optval_end - optval != page_size) in _setsockopt()
[all …]
H A Dsockopt_inherit.c55 __u8 *optval_end = ctx->optval_end; in _getsockopt() local
62 if (optval + 1 > optval_end) in _getsockopt()
86 __u8 *optval_end = ctx->optval_end; in _setsockopt() local
93 if (optval + 1 > optval_end) in _setsockopt()
H A Dsockopt_qos_to_cc.c15 void *optval_end = ctx->optval_end; in sockopt_qos_to_cc() local
22 if (optval + 1 > optval_end) in sockopt_qos_to_cc()
H A Dverifier_ctx.c241 narrow_load("cgroup/getsockopt", bpf_sockopt, optval_end);
H A Dsetget_sockopt.c385 if (ctx->optval + sizeof(int) <= ctx->optval_end) { in _getsockopt()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt.c323 offsetof(struct bpf_sockopt, optval_end)),
394 offsetof(struct bpf_sockopt, optval_end)),
415 offsetof(struct bpf_sockopt, optval_end)),
731 offsetof(struct bpf_sockopt, optval_end)),
768 offsetof(struct bpf_sockopt, optval_end)),
852 offsetof(struct bpf_sockopt, optval_end)),
872 offsetof(struct bpf_sockopt, optval_end)),
918 offsetof(struct bpf_sockopt, optval_end)),
H A Dctx_rewrite.c205 N(CGROUP_SOCKOPT, struct bpf_sockopt, optval_end),
206 .read = "$dst = *(u64 *)($ctx + bpf_sockopt_kern::optval_end);",
/linux/kernel/bpf/
H A Dcgroup.c2031 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
2039 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
2245 .optval_end = optval + *optlen, in __cgroup_bpf_run_filter_getsockopt_kern()
2649 case bpf_ctx_range_ptr(struct bpf_sockopt, optval_end): in cg_sockopt_is_valid_access()
2748 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_convert_ctx_access()
2749 *insn++ = CG_SOCKOPT_READ_FIELD(optval_end); in cg_sockopt_convert_ctx_access()
/linux/tools/include/uapi/linux/
H A Dbpf.h7643 __bpf_md_ptr(void *, optval_end);
/linux/include/uapi/linux/
H A Dbpf.h7643 __bpf_md_ptr(void *, optval_end);
/linux/include/linux/
H A Dfilter.h1701 u8 *optval_end; member