Home
last modified time | relevance | path

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

/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dsockopt_sk.c32 __u8 *optval_end = ctx->optval_end; in _getsockopt() local
75 if (optval + sizeof(struct tcp_zerocopy_receive) > optval_end) in _getsockopt()
85 if (optval + 1 > optval_end) in _getsockopt()
98 if (optval_end - optval != page_size) in _getsockopt()
107 if (optval + 1 > optval_end) in _getsockopt()
130 __u8 *optval_end = ctx->optval_end; in _setsockopt() local
154 if (optval + sizeof(__u32) > optval_end) in _setsockopt()
166 if (optval + 5 > optval_end) in _setsockopt()
180 if (optval + 1 > optval_end) in _setsockopt()
191 if (optval_end - optval != page_size) in _setsockopt()
[all …]
Dsockopt_multi.c12 __u8 *optval_end = ctx->optval_end; in _getsockopt_child() local
18 if (optval + 1 > optval_end) in _getsockopt_child()
35 __u8 *optval_end = ctx->optval_end; in _getsockopt_parent() local
41 if (optval + 1 > optval_end) in _getsockopt_parent()
58 __u8 *optval_end = ctx->optval_end; in _setsockopt() local
64 if (optval + 1 > optval_end) in _setsockopt()
Dsockopt_inherit.c54 __u8 *optval_end = ctx->optval_end; in _getsockopt() local
61 if (optval + 1 > optval_end) in _getsockopt()
79 __u8 *optval_end = ctx->optval_end; in _setsockopt() local
86 if (optval + 1 > optval_end) in _setsockopt()
Dsockopt_qos_to_cc.c15 void *optval_end = ctx->optval_end; in sockopt_qos_to_cc() local
24 if (optval + 1 > optval_end) in sockopt_qos_to_cc()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c335 offsetof(struct bpf_sockopt, optval_end)),
356 offsetof(struct bpf_sockopt, optval_end)),
664 offsetof(struct bpf_sockopt, optval_end)),
748 offsetof(struct bpf_sockopt, optval_end)),
768 offsetof(struct bpf_sockopt, optval_end)),
814 offsetof(struct bpf_sockopt, optval_end)),
/Linux-v5.15/kernel/bpf/
Dcgroup.c1353 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1361 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1577 .optval_end = optval + *optlen, in __cgroup_bpf_run_filter_getsockopt_kern()
1969 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_is_valid_access()
2030 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_convert_ctx_access()
2031 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, optval_end); in cg_sockopt_convert_ctx_access()
/Linux-v5.15/include/uapi/linux/
Dbpf.h6201 __bpf_md_ptr(void *, optval_end);
/Linux-v5.15/tools/include/uapi/linux/
Dbpf.h6201 __bpf_md_ptr(void *, optval_end);
/Linux-v5.15/include/linux/
Dfilter.h1352 u8 *optval_end; member