Netdev List
 help / color / mirror / Atom feed
From: Dominik Maier <dmnk@google.com>
To: netdev-bot+sashiko@kernel.org
Cc: Dominik Maier <dmnk@google.com>,
	"David S. Miller" <davem@davemloft.net>,
	 Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	 David Ahern <dsahern@kernel.org>,
	Ido Schimmel <idosch@nvidia.com>,
	 Neal Cardwell <ncardwell@google.com>,
	Kuniyuki Iwashima <kuniyu@google.com>,
	 Simon Horman <horms@kernel.org>,
	Joanne Koong <joannelkoong@gmail.com>,
	netdev@vger.kernel.org,  dmnk+artist@google.com
Subject: Re: [PATCH net v2] inet: reject multicast and broadcast bind addresses on SOCK_STREAM
Date: Mon, 30 Nov 2026 17:04:23 +0100	[thread overview]
Message-ID: <20261130160423.2648842-1-dmnk@google.com> (raw)
In-Reply-To: <179582733273.3135.9459901181747092692@kernel.org>

On Sat, 28 Nov 2026 00:55:32 +0000, netdev-bot+sashiko@kernel.org wrote:
> - [High] The fix leaves the bind-conflict bypass it targets reachable
>   through the missing-FIB-table RTN_BROADCAST fallback.
> - [Low] The commit message presents the IPV6_ADDR_MAPPED hunk in
>   __inet6_bind() as part of the bhash2 bind-conflict fix, but the…

Thanks, both points hold. When __inet_dev_addr_type() hits the
missing-FIB-table RTN_BROADCAST fallback (or races with broadcast route
removal), __inet_bind() still cleared inet->inet_saddr while keeping the
bound inet->inet_rcv_saddr, leaving tcp_v4_connect() able to relink into
another unicast bhash2 bucket without a conflict check.

Sending v3 that rejects multicast and limited/subnet broadcast addresses on
SOCK_STREAM, never clears inet->inet_saddr on SOCK_STREAM, and drops the
unneeded __inet6_bind() hunk.

pw-bot: cr

      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] inet: reject multicast and broadcast bind addresses on SOCK_STREAM Dominik Maier
2026-11-28  0:55 ` 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=20261130160423.2648842-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=idosch@nvidia.com \
    --cc=joannelkoong@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=ncardwell@google.com \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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