aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/syscall.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2023-12-14 00:21:53 +0000
committerMartin KaFai Lau <[email protected]>2023-12-14 00:33:17 +0000
commit2f2fee2bf74a7e31d06fc6cb7ba2bd4dd7753c99 (patch)
treefa6dcb7f84468e7631a8be8d1f4eb3b318d9d66f /tools/testing/selftests/bpf/prog_tests/syscall.c
parentocteontx2-af: Fix pause frame configuration (diff)
parentbpf: sockmap, test for unconnected af_unix sock (diff)
downloadkernel-2f2fee2bf74a7e31d06fc6cb7ba2bd4dd7753c99.tar.gz
kernel-2f2fee2bf74a7e31d06fc6cb7ba2bd4dd7753c99.zip
Merge branch ' bpf fix for unconnect af_unix socket'
John Fastabend says: ==================== Eric reported a syzbot splat from a null ptr deref from recent fix to resolve a use-after-free with af-unix stream sockets and BPF sockmap usage. The issue is I missed is we allow unconnected af_unix STREAM sockets to be added to the sockmap. Fix this by blocking unconnected sockets. v2: change sk_is_unix to sk_is_stream_unix (Eric) and remove duplicate ASSERTS in selftests the xsocket helper already marks FAIL (Jakub) ==================== Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/syscall.c')
0 files changed, 0 insertions, 0 deletions