Searched refs:optval_end (Results 1 – 12 of 12) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | sockopt_sk.c | 32 __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 …]
|
H A D | sockopt_multi.c | 13 __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 D | sockopt_inherit.c | 55 __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 D | sockopt_qos_to_cc.c | 15 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 D | verifier_ctx.c | 240 narrow_load("cgroup/getsockopt", bpf_sockopt, optval_end);
|
H A D | setget_sockopt.c | 383 if (ctx->optval + sizeof(int) <= ctx->optval_end) { in skops_sockopt()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockopt.c | 301 offsetof(struct bpf_sockopt, optval_end)), 372 offsetof(struct bpf_sockopt, optval_end)), 393 offsetof(struct bpf_sockopt, optval_end)), 709 offsetof(struct bpf_sockopt, optval_end)), 746 offsetof(struct bpf_sockopt, optval_end)), 830 offsetof(struct bpf_sockopt, optval_end)), 850 offsetof(struct bpf_sockopt, optval_end)), 896 offsetof(struct bpf_sockopt, optval_end)),
|
H A D | ctx_rewrite.c | 205 N(CGROUP_SOCKOPT, struct bpf_sockopt, optval_end),
|
/linux/kernel/bpf/ |
H A D | cgroup.c | 1973 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf() 1981 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf() 2187 .optval_end = optval + *optlen, in __cgroup_bpf_run_filter_getsockopt_kern() 2590 case bpf_ctx_range_ptr(struct bpf_sockopt, optval_end): in cg_sockopt_is_valid_access() 2689 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_convert_ctx_access() 2690 *insn++ = CG_SOCKOPT_READ_FIELD(optval_end); in cg_sockopt_convert_ctx_access()
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 7461 __bpf_md_ptr(void *, optval_end);
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 7461 __bpf_md_ptr(void *, optval_end);
|
/linux/include/linux/ |
H A D | filter.h | 1578 u8 *optval_end; member
|