diff options
| author | 2026-06-05 14:02:41 +0000 | |
|---|---|---|
| committer | 2026-06-05 15:55:43 -0700 | |
| commit | 6fa2839893e3db43566e623f12805daeca64d9c4 (patch) | |
| tree | 7cd5e41ad8779b8d4b72ce8bc5e719e225cdc7ca /tools/lib/python/kdoc/python_version.py | |
| parent | Merge branch 'bpf-fix-sysctl-new-value-handling-in-__cgroup_bpf_run_filter_sysctl' (diff) | |
selftests/bpf: Restrict bpf_set_retval argument in sk_bypass_prot_mem
Test sk_bypass_prot_mem passes an unchecked value as argument to helper
bpf_set_retval(). The argument can be outside the valid range enforced
by the strict retval validation added in the next patch.
Restrict the argument to -EFAULT when it is outside the valid range, so
the test will not be rejected by the verifier when retval validation
is enforced.
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Link: https://lore.kernel.org/r/20260605140243.664590-2-xukuohai@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
