Searched hist:"7 e165d1939284d0bf16a83c591c3c5d24a110d0a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | setget_sockopt.c | diff 7e165d1939284d0bf16a83c591c3c5d24a110d0a Tue Aug 23 20:39:07 CDT 2022 Yang Yingliang <yangyingliang@huawei.com> 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>
|