diff options
| author | Yang Yingliang <[email protected]> | 2022-08-24 01:39:07 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-08-25 01:59:04 +0000 |
| commit | 7e165d1939284d0bf16a83c591c3c5d24a110d0a (patch) | |
| tree | 82b75a86b30a4a4d693445d56787dcf6e16065d2 /scripts/bpf_doc.py | |
| parent | selftests/bpf: Add cb_refs test to s390x deny list (diff) | |
| download | kernel-7e165d1939284d0bf16a83c591c3c5d24a110d0a.tar.gz kernel-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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
