Skip to content
Commit 2f2fee2b authored by Martin KaFai Lau's avatar Martin KaFai Lau
Browse files

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: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parents e307b5a8 50d96f05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment