From: Matthieu Baerts <matttbe@kernel.org>
To: "Íñigo Huguet" <ihuguet@riseup.net>
Cc: Jakub Kicinski <kuba@kernel.org>,
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>,
"open list:VRF" <netdev@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
"open list:NETFILTER" <netfilter-devel@vger.kernel.org>,
"open list:NETFILTER" <coreteam@netfilter.org>,
"open list:BPF [MISC] :Keyword:(?:b|_)bpf(?:b|_)"
<bpf@vger.kernel.org>
Subject: Re: [PATCH net v2] net/ipv6: don't route packets with unknown source address
Date: Fri, 4 Sep 2026 12:21:50 +0200 [thread overview]
Message-ID: <2946842d-09bb-454d-9eae-4c343c3bb0d8@kernel.org> (raw)
In-Reply-To: <20260903153848.20b90f77@kernel.org>
Hi Íñigo,
On 04/09/2026 00:38, Jakub Kicinski wrote:
> 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)
> ...
Just in case, do not hesitate to look at the new countainers that might
help you running those tests locally:
https://lore.kernel.org/9c66a2b4-2787-4421-bc9b-627de2f708bd@kernel.org
https://github.com/linux-netdev/nipa/wiki/Running-Netdev-CI-tests-locally
Cheers,
Matt
next prev parent reply other threads:[~2026-09-04 10:22 UTC|newest]
Thread overview: 6+ 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-07 7:24 ` Íñigo Huguet
2026-09-03 22:38 ` Jakub Kicinski
2026-09-04 10:21 ` Matthieu Baerts [this message]
2026-09-04 12:11 ` sashiko-bot
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=2946842d-09bb-454d-9eae-4c343c3bb0d8@kernel.org \
--to=matttbe@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=kuba@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 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.