From: Martin KaFai Lau Date: Thu, 14 Dec 2023 00:21:53 +0000 (-0800) Subject: Merge branch ' bpf fix for unconnect af_unix socket' X-Git-Tag: v6.7-rc7~21^2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f2fee2bf74a7e31d06fc6cb7ba2bd4dd7753c99;p=thirdparty%2Flinux.git 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 --- 2f2fee2bf74a7e31d06fc6cb7ba2bd4dd7753c99