Netdev List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Dominik Maier <dmnk@google.com>
Cc: willemdebruijn.kernel@gmail.com, edumazet@kernel.org,
	kuniyu@google.com, davem@davemloft.net, kuba@kernel.org,
	netdev@vger.kernel.org, dmnk+artist@google.com
Subject: Re: [PATCH net] udp: only quit inuse scan early on identical SO_REUSEPORT sockets
Date: Thu, 26 Nov 2026 14:40:04 +0000	[thread overview]
Message-ID: <179570400478.1866113.17394711120879763013.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261119192142.2637952-1-dmnk@google.com>

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



      reply	other threads:[~2026-11-26 14:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 19:21 [PATCH net] udp: only quit inuse scan early on identical SO_REUSEPORT sockets Dominik Maier
2026-11-26 14:40 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179570400478.1866113.17394711120879763013.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=davem@davemloft.net \
    --cc=dmnk+artist@google.com \
    --cc=dmnk@google.com \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=willemdebruijn.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox