Linux Netfilter development
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: "Íñigo Huguet" <ihuguet@riseup.net>
Cc: David Ahern <dsahern@kernel.org>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>,
	Neal Cardwell <ncardwell@google.com>,
	Ido Schimmel <idosch@nvidia.com>,
	Pablo Neira Ayuso <pablo@netfilter.org>,
	Florian Westphal <fw@strlen.de>,
	Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
	dcaratti@redhat.com, ihuguet@redhat.com,
	Simon Horman <horms@kernel.org>,
	Kuniyuki Iwashima <kuniyu@google.com>, Phil Sutter <phil@nwl.cc>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Junseo Lim <zirajs7@gmail.com>,
	Martin KaFai Lau <martin.lau@kernel.org>,
	Xuanqiang Luo <luoxuanqiang@kylinos.cn>,
	Fernando Fernandez Mancera <fmancera@suse.de>,
	Leon Hwang <leon.hwang@linux.dev>,
	Willem de Bruijn <willemb@google.com>,
	Kees Cook <kees@kernel.org>, Jeff Layton <jlayton@kernel.org>,
	Christian Brauner <brauner@kernel.org>,
	Qi Tang <tpluszz77@gmail.com>, Joe Damato <joe@dama.to>,
	Breno Leitao <leitao@debian.org>,
	Li RongQing <lirongqing@baidu.com>,
	netdev@vger.kernel.org (open list:VRF),
	linux-kernel@vger.kernel.org (open list),
	netfilter-devel@vger.kernel.org (open list:NETFILTER),
	coreteam@netfilter.org (open list:NETFILTER),
	bpf@vger.kernel.org (open list:BPF
	[MISC]:Keyword:(?:\b|_)bpf(?:\b|_))
Subject: Re: [PATCH net v2] net/ipv6: don't route packets with unknown source address
Date: Thu, 3 Sep 2026 15:38:48 -0700	[thread overview]
Message-ID: <20260903153848.20b90f77@kernel.org> (raw)
In-Reply-To: <20260903121057.80006-1-ihuguet@riseup.net>

On Thu,  3 Sep 2026 14:10:40 +0200 Íñigo Huguet wrote:
> Don't allow routing packets with a source address that is not configured
> in the host. Allow it only in certain cases like when using a
> transparent socket, by setting the ANYSRC flag in flowi_flags.

breaks a bunch of selftests, too, FWIW
Please make sure to mend those if you want to forge ahead as a non-fix

  - selftests/net/xfrm_state.sh:
      "IPv6 unreachable from IPsec gateway s2" [FAIL]
      "IPv6 MTU exceeded from IPsec gateway s2" [FAIL]
    (the equivalent IPv4 cases still pass)

  - selftests/net/vrf_route_leaking.sh:
      "VRF ICMP local IPv6" [FAIL]
      "VRF tcp local connection IPv6" [FAIL]
      "VRF udp local connection IPv6" [FAIL]

  - selftests/net/srv6_encap_lookup_l3vpn_test.sh:
      "IPv6 connectivity: rt-1 -> rt-2 (tenant 100/200)" [FAIL]
      "IPv6 connectivity: rt-2 -> rt-1 (tenant 100/200)" [FAIL]
    (again, the IPv4 variants of the same tests pass)
...

  parent reply	other threads:[~2026-09-03 22:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03 12:10 [PATCH net v2] net/ipv6: don't route packets with unknown source address Íñigo Huguet
2026-09-03 14:56 ` Ido Schimmel
2026-09-03 22:38 ` Jakub Kicinski [this message]
2026-09-04 10:21   ` Matthieu Baerts

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=20260903153848.20b90f77@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=bpf@vger.kernel.org \
    --cc=brauner@kernel.org \
    --cc=coreteam@netfilter.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=dcaratti@redhat.com \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=fmancera@suse.de \
    --cc=fw@strlen.de \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=ihuguet@redhat.com \
    --cc=ihuguet@riseup.net \
    --cc=jlayton@kernel.org \
    --cc=joe@dama.to \
    --cc=kees@kernel.org \
    --cc=kuniyu@google.com \
    --cc=leitao@debian.org \
    --cc=leon.hwang@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lirongqing@baidu.com \
    --cc=luoxuanqiang@kylinos.cn \
    --cc=martin.lau@kernel.org \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pablo@netfilter.org \
    --cc=phil@nwl.cc \
    --cc=tpluszz77@gmail.com \
    --cc=willemb@google.com \
    --cc=willemdebruijn.kernel@gmail.com \
    --cc=zirajs7@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