max_optlen 132 include/linux/bpf-cgroup.h int __user *optlen, int max_optlen, max_optlen 318 include/linux/bpf-cgroup.h max_optlen, retval) \ max_optlen 324 include/linux/bpf-cgroup.h optlen, max_optlen, \ max_optlen 402 include/linux/bpf-cgroup.h optlen, max_optlen, retval) ({ retval; }) max_optlen 967 kernel/bpf/cgroup.c static int sockopt_alloc_buf(struct bpf_sockopt_kern *ctx, int max_optlen) max_optlen 969 kernel/bpf/cgroup.c if (unlikely(max_optlen > PAGE_SIZE) || max_optlen < 0) max_optlen 972 kernel/bpf/cgroup.c ctx->optval = kzalloc(max_optlen, GFP_USER); max_optlen 976 kernel/bpf/cgroup.c ctx->optval_end = ctx->optval + max_optlen; max_optlen 996 kernel/bpf/cgroup.c int ret, max_optlen; max_optlen 1010 kernel/bpf/cgroup.c max_optlen = max_t(int, 16, *optlen); max_optlen 1012 kernel/bpf/cgroup.c ret = sockopt_alloc_buf(&ctx, max_optlen); max_optlen 1036 kernel/bpf/cgroup.c } else if (ctx.optlen > max_optlen || ctx.optlen < -1) { max_optlen 1059 kernel/bpf/cgroup.c int __user *optlen, int max_optlen, max_optlen 1079 kernel/bpf/cgroup.c ret = sockopt_alloc_buf(&ctx, max_optlen); max_optlen 1083 kernel/bpf/cgroup.c ctx.optlen = max_optlen; max_optlen 1098 kernel/bpf/cgroup.c if (ctx.optlen > max_optlen) max_optlen 1099 kernel/bpf/cgroup.c ctx.optlen = max_optlen; max_optlen 1117 kernel/bpf/cgroup.c if (ctx.optlen > max_optlen) { max_optlen 2113 net/socket.c int max_optlen; max_optlen 2121 net/socket.c max_optlen = BPF_CGROUP_GETSOCKOPT_MAX_OPTLEN(optlen); max_optlen 2134 net/socket.c max_optlen, err);