Thread (7 messages) 7 messages, 4 authors, 19h ago

Re: [PATCH net v3 1/2] af_unix: fix listen() succeeding on sockets in the wrong state

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-07-24 22:21:22
Also in: lkml

Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Sat, 18 Jul 2026 14:29:01 -0400 you wrote:
From: John Ericson <redacted>

Commit fd0a109a0f6b ("net, pidfs: prepare for handing out pidfds for
reaped sk->sk_peer_pid") inserted a prepare_peercred() call between err
= -EINVAL and the socket-state check in unix_listen(). Since
prepare_peercred() leaves err at 0 on success, listen() on an AF_UNIX
socket that is not in TCP_CLOSE or TCP_LISTEN state (e.g. one that is
already connected) now silently returns success without doing anything,
instead of failing with EINVAL as it did before.

[...]
Here is the summary with links:
  - [net,v3,1/2] af_unix: fix listen() succeeding on sockets in the wrong state
    https://git.kernel.org/netdev/net/c/f0d9c3ffc2b5
  - [net,v3,2/2] selftests/net/af_unix: test listen() rejects wrong socket states
    https://git.kernel.org/netdev/net/c/7f57c650d08b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help