aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-08-24 09:39:07 +0800
committerAlexei Starovoitov <ast@kernel.org>2022-08-24 18:59:04 -0700
commit7e165d1939284d0bf16a83c591c3c5d24a110d0a (patch)
tree82b75a86b30a4a4d693445d56787dcf6e16065d2 /tools/testing/selftests/bpf/prog_tests
parentselftests/bpf: Add cb_refs test to s390x deny list (diff)
downloadlinux-dev-7e165d1939284d0bf16a83c591c3c5d24a110d0a.tar.xz
linux-dev-7e165d1939284d0bf16a83c591c3c5d24a110d0a.zip
selftests/bpf: Fix wrong size passed to bpf_setsockopt()
sizeof(new_cc) is not real memory size that new_cc points to; introduce a new_cc_len to store the size and then pass it to bpf_setsockopt(). Fixes: 31123c0360e0 ("selftests/bpf: bpf_setsockopt tests") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220824013907.380448-1-yangyingliang@huawei.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions