Home
last modified time | relevance | path

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

/kernel/bpf/
Dcgroup.c964 static int sockopt_alloc_buf(struct bpf_sockopt_kern *ctx, int max_optlen) in sockopt_alloc_buf() argument
966 if (unlikely(max_optlen > PAGE_SIZE) || max_optlen < 0) in sockopt_alloc_buf()
969 ctx->optval = kzalloc(max_optlen, GFP_USER); in sockopt_alloc_buf()
973 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
993 int ret, max_optlen; in __cgroup_bpf_run_filter_setsockopt() local
1007 max_optlen = max_t(int, 16, *optlen); in __cgroup_bpf_run_filter_setsockopt()
1009 ret = sockopt_alloc_buf(&ctx, max_optlen); in __cgroup_bpf_run_filter_setsockopt()
1033 } else if (ctx.optlen > max_optlen || ctx.optlen < -1) { in __cgroup_bpf_run_filter_setsockopt()
1056 int __user *optlen, int max_optlen, in __cgroup_bpf_run_filter_getsockopt() argument
1076 ret = sockopt_alloc_buf(&ctx, max_optlen); in __cgroup_bpf_run_filter_getsockopt()
[all …]