From: Dominik Maier <dmnk@google.com>
To: netdev-bot+sashiko@kernel.org
Cc: Dominik Maier <dmnk@google.com>,
Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
Eric Dumazet <edumazet@kernel.org>,
Kuniyuki Iwashima <kuniyu@google.com>,
Paolo Abeni <pabeni@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
David Ahern <dsahern@kernel.org>,
netdev@vger.kernel.org, dmnk+artist@google.com
Subject: Re: [PATCH net v2] udp: preserve explicit sk_bound_dev_if across __udp_disconnect()
Date: Mon, 30 Nov 2026 17:04:28 +0100 [thread overview]
Message-ID: <20261130160429.2655219-1-dmnk@google.com> (raw)
In-Reply-To: <179589258952.3135.7000335148299611948@kernel.org>
On Sat, 28 Nov 2026 19:03:09 +0000, netdev-bot+sashiko@kernel.org wrote:
> - [Medium] Every IPv6 bind() path still lets an unprivileged user change
> sk_bound_dev_if, with no CAP_NET_RAW check and no L3-scope check.
> - [Medium] ping_bind() changes sk->sk_bound_dev_if without holding the
> socket lock, and on its -EINVAL path it never restores the old value.
Thanks. On ping_bind(), moving the scoped sk_bound_dev_if update under
lock_sock() after the inet_num == 0 check (and restoring with
WRITE_ONCE() if ping_get_port() fails) fixes both the lockless store and
the -EINVAL leak. On IPv6 scoped bind(), the scope_id override is
long-standing intentional behavior and separate from AF_UNSPEC
disconnect zeroing sk_bound_dev_if; v3 narrows the commit message
accordingly.
pw-bot: cr
prev parent reply other threads:[~2026-11-30 16:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 18:06 [PATCH net v2] udp: preserve explicit sk_bound_dev_if across __udp_disconnect() Dominik Maier
2026-11-28 19:03 ` netdev-bot+sashiko
2026-11-30 16:04 ` Dominik Maier [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=20261130160429.2655219-1-dmnk@google.com \
--to=dmnk@google.com \
--cc=davem@davemloft.net \
--cc=dmnk+artist@google.com \
--cc=dsahern@kernel.org \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.