From: Leonard Lausen <leonard@lausen.nl>
To: netdev@vger.kernel.org
Cc: leonard@lausen.nl, David Ahern <dsahern@kernel.org>,
Ido Schimmel <idosch@nvidia.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Florian Westphal <fw@strlen.de>, Phil Sutter <phil@nwl.cc>,
Shuah Khan <shuah@kernel.org>,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
linux-kselftest@vger.kernel.org
Subject: [PATCH net-next 0/2] ipv6: Use the FIB prefix length to suppress cached routes
Date: Wed, 2 Dec 2026 17:30:20 +0000 [thread overview]
Message-ID: <20261202173023.17220-1-leonard@lausen.nl> (raw)
This is the cached-exception follow-up requested during review of the
previous prefix-suppression series. It targets net-next now that
94df5595e31b ("ipv6: Honor suppress_prefixlength in fib6_lookup()") and
its selftests are present in that tree.
The dst-based suppression callback still compares the /128 prefix of a
PMTU or redirect exception with suppress_prefixlength. A cached exception
can therefore bypass suppression of its parent default route. Patch 1
uses the parent FIB prefix when available. Patch 2 extends nft_fib.sh's
existing fixture with one PMTU regression case. Interface-group handling
and the fib6_lookup() path are unchanged.
The issue was raised by Ido and in automated review. These changes were
removed from the earlier net series at review; the implementation is
unchanged here. Review:
https://lore.kernel.org/netdev/20261117091340.GA581197@shredder/
The new PMTU case fails on the pre-fix kernel. On the rebuilt net-next
kernel, all seven checks pass in normal and eight-second-delayed runs.
An independent ICMPv6 Packet Too Big reproducer confirms that both lookup
paths select the later table. Terminal-reject controls also pass.
The changed unit compiles with W=1 without warnings. Automated kernel-log
checks were unavailable in the test namespace; full W=1 allyesconfig and
allmodconfig builds remain unchecked.
OpenAI Codex assisted with reproduction, implementation, testing and
wording. Prompts asked it to investigate the routing mismatch, address
review feedback and prepare this separate net-next follow-up. Ido's
review identified the cached-exception problem.
Leonard Lausen (2):
ipv6: Use the FIB prefix length when suppressing cached routes
selftests: netfilter: cover IPv6 prefix suppression with a PMTU
exception
net/ipv6/fib6_rules.c | 7 ++++++-
.../selftests/net/netfilter/nft_fib.sh | 21 ++++++++++++++++++-
2 files changed, 26 insertions(+), 2 deletions(-)
base-commit: 19c484e12ed269c1ce734f049cc5ccf12cb93a20
--
2.55.0
next reply other threads:[~2026-12-02 17:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 17:30 Leonard Lausen [this message]
2026-12-02 17:30 ` [PATCH net-next 1/2] ipv6: Use the FIB prefix length when suppressing cached routes Leonard Lausen
2026-12-03 9:02 ` Ido Schimmel
2026-12-02 17:30 ` [PATCH net-next 2/2] selftests: netfilter: cover IPv6 prefix suppression with a PMTU exception Leonard Lausen
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=20261202173023.17220-1-leonard@lausen.nl \
--to=leonard@lausen.nl \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@kernel.org \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--cc=phil@nwl.cc \
--cc=shuah@kernel.org \
--cc=willemb@google.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