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/2026…@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