Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by patchwork-bot+netdevbpf
Thu, 26 Nov 2026 14:40
Re: [PATCH net] udp: only quit inuse scan early on identical SO_REUSEPORT sockets
Author: patchwork-bot+netdevbpf
Date: Thu, 26 Nov 2026 14:40
Date: Thu, 26 Nov 2026 14:40
33 lines
9154 bytes
9154 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 19 Nov 2026 20:21:42 +0100 you wrote:
> Commit df560056d960 ("udp: inuse checks can quit early for reuseport")
> optimized udp_lib_lport_inuse() and udp_lib_lport_inuse2() to return 0
> immediately upon encountering the first same-UID SO_REUSEPORT socket
> that matches under wildcard conflict rules.
>
> However, a socket that matches under wildcard rules (or shares only a
> relaxed subset of bind attributes) does not guarantee that the remaining
> sockets in hslot->head or hslot2->head are conflict-free for the new
> socket. Because IPv4 UDP sockets prepend to the head of the hash chain,
> an unprivileged local user can bind a non-conflicting SO_REUSEPORT
> socket (e.g., 127.0.0.2:PORT) ahead of another user's exclusive
> 127.0.0.1:PORT UDP listener, then bind 0.0.0.0:PORT (returning early on
> 127.0.0.2:PORT without reaching the exclusive listener), and finally
> bind 127.0.0.1:PORT at the head of hslot2->head to intercept cross-UID
> UDP datagrams.
>
> [...]
Here is the summary with links:
- [net] udp: only quit inuse scan early on identical SO_REUSEPORT sockets
https://git.kernel.org/netdev/net/c/d77700039d09
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads