Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/bpf/progs/
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
172 if (optval + sizeof(__u32) > optval_end) in _setsockopt()
184 if (optval + 5 > optval_end) in _setsockopt()
198 if (optval + 1 > optval_end) in _setsockopt()
209 if (optval_end - optval != page_size) in _setsockopt()
[all …]
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()
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()
Dsockopt_qos_to_cc.c17 void *optval_end = ctx->optval_end; in sockopt_qos_to_cc() local
26 if (optval + 1 > optval_end) in sockopt_qos_to_cc()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c295 offsetof(struct bpf_sockopt, optval_end)),
363 offsetof(struct bpf_sockopt, optval_end)),
384 offsetof(struct bpf_sockopt, optval_end)),
694 offsetof(struct bpf_sockopt, optval_end)),
731 offsetof(struct bpf_sockopt, optval_end)),
815 offsetof(struct bpf_sockopt, optval_end)),
835 offsetof(struct bpf_sockopt, optval_end)),
881 offsetof(struct bpf_sockopt, optval_end)),
Dctx_rewrite.c202 N(CGROUP_SOCKOPT, struct bpf_sockopt, optval_end),
/Linux-v6.6/kernel/bpf/
Dcgroup.c1761 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1769 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1972 .optval_end = optval + *optlen, in __cgroup_bpf_run_filter_getsockopt_kern()
2383 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_is_valid_access()
2482 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_convert_ctx_access()
2483 *insn++ = CG_SOCKOPT_READ_FIELD(optval_end); in cg_sockopt_convert_ctx_access()
/Linux-v6.6/include/linux/
Dfilter.h1336 u8 *optval_end; member
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h7162 __bpf_md_ptr(void *, optval_end);
/Linux-v6.6/include/uapi/linux/
Dbpf.h7162 __bpf_md_ptr(void *, optval_end);