Home
last modified time | relevance | path

Searched refs:max_optlen (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/kernel/bpf/
Dcgroup.c1353 static int sockopt_alloc_buf(struct bpf_sockopt_kern *ctx, int max_optlen) in sockopt_alloc_buf() argument
1355 if (unlikely(max_optlen < 0)) in sockopt_alloc_buf()
1358 if (unlikely(max_optlen > PAGE_SIZE)) { in sockopt_alloc_buf()
1362 max_optlen = PAGE_SIZE; in sockopt_alloc_buf()
1365 ctx->optval = kzalloc(max_optlen, GFP_USER); in sockopt_alloc_buf()
1369 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1371 return max_optlen; in sockopt_alloc_buf()
1389 int ret, max_optlen; in __cgroup_bpf_run_filter_setsockopt() local
1403 max_optlen = max_t(int, 16, *optlen); in __cgroup_bpf_run_filter_setsockopt()
1405 max_optlen = sockopt_alloc_buf(&ctx, max_optlen); in __cgroup_bpf_run_filter_setsockopt()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbpf-cgroup.h145 int __user *optlen, int max_optlen,
352 max_optlen, retval) \ argument
358 optlen, max_optlen, \
441 optlen, max_optlen, retval) ({ retval; }) argument
/kernel/linux/linux-5.10/net/
Dsocket.c2149 int max_optlen; in __sys_getsockopt() local
2160 max_optlen = BPF_CGROUP_GETSOCKOPT_MAX_OPTLEN(optlen); in __sys_getsockopt()
2172 optval, optlen, max_optlen, in __sys_getsockopt()