Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/bpf/progs/
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_sk.c28 __u8 *optval_end = ctx->optval_end; in _getsockopt() local
58 if (optval + 1 > optval_end) in _getsockopt()
81 __u8 *optval_end = ctx->optval_end; in _setsockopt() local
95 if (optval + sizeof(__u32) > optval_end) in _setsockopt()
107 if (optval + 5 > optval_end) in _setsockopt()
119 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()
/Linux-v5.4/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.4/kernel/bpf/
Dcgroup.c966 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1466 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_is_valid_access()
1527 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_convert_ctx_access()
1528 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_LDX_MEM, optval_end); in cg_sockopt_convert_ctx_access()
/Linux-v5.4/include/uapi/linux/
Dbpf.h3608 __bpf_md_ptr(void *, optval_end);
/Linux-v5.4/tools/include/uapi/linux/
Dbpf.h3608 __bpf_md_ptr(void *, optval_end);
/Linux-v5.4/include/linux/
Dfilter.h1224 u8 *optval_end; member