Searched refs:optlen (Results 1 – 1 of 1) sorted by relevance
1789 int *optlen, char **kernel_optval) in __cgroup_bpf_run_filter_setsockopt() argument1804 max_optlen = max_t(int, 16, *optlen); in __cgroup_bpf_run_filter_setsockopt()1809 ctx.optlen = *optlen; in __cgroup_bpf_run_filter_setsockopt()1811 if (copy_from_user(ctx.optval, optval, min(*optlen, max_optlen)) != 0) { in __cgroup_bpf_run_filter_setsockopt()1824 if (ctx.optlen == -1) { in __cgroup_bpf_run_filter_setsockopt()1827 } else if (ctx.optlen > max_optlen || ctx.optlen < -1) { in __cgroup_bpf_run_filter_setsockopt()1829 if (*optlen > PAGE_SIZE && ctx.optlen >= 0) { in __cgroup_bpf_run_filter_setsockopt()1831 ctx.optlen, max_optlen); in __cgroup_bpf_run_filter_setsockopt()1847 if (ctx.optlen != 0) { in __cgroup_bpf_run_filter_setsockopt()1848 *optlen = ctx.optlen; in __cgroup_bpf_run_filter_setsockopt()[all …]