fib6_rule_suppress() compares suppress_prefixlen with rt6i_dst.plen. PMTU and redirect exception routes have a /128 destination prefix even when their parent FIB route is a default route. Consequently, a cached exception bypasses suppress_prefixlength 0 and stops the rule lookup instead of continuing to a later table. Use the parent FIB entry's destination prefix length when available. The rule lookup already holds the RCU read lock needed to read rt->from. Retain the existing prefix check if the destination has lost its parent. Interface-group checks and destination reference handling are unchanged. Identified during maintainer review and reproduced using an ICMPv6 Packet Too Big in network namespaces, without kernel instrumentation or error injection. The reproducer and nft_fib.sh pass on a rebuilt net-next-based kernel. Fixes: 7764a45a8f1f ("fib_rules: add .suppress operation") Link: https://lore.kernel.org/netdev/20261117091340.GA581197@shredder/ Signed-off-by: Leonard Lausen --- Previously included in v3 of the prefix-suppression series, then removed at review to be sent separately to net-next after the prerequisite fix. The implementation is unchanged; the message records current validation. Review: https://lore.kernel.org/netdev/20261117091340.GA581197@shredder/ net/ipv6/fib6_rules.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index 7efb0515b5c8..2f43e4e48e0d 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -285,6 +285,8 @@ INDIRECT_CALLABLE_SCOPE bool fib6_rule_suppress(struct fib_rule *rule, struct fib6_result *res = arg->result; struct rt6_info *rt = res->rt6; struct net_device *dev = NULL; + struct fib6_info *from; + int plen; if (arg->lookup_ptr == fib6_table_lookup) { /* fib6_table_lookup() returns 0 for reject routes. */ @@ -298,10 +300,13 @@ INDIRECT_CALLABLE_SCOPE bool fib6_rule_suppress(struct fib_rule *rule, if (rt->rt6i_idev) dev = rt->rt6i_idev->dev; + from = rcu_dereference(rt->from); + plen = from ? from->fib6_dst.plen : rt->rt6i_dst.plen; + /* do not accept result if the route does * not meet the required prefix length */ - if (rt->rt6i_dst.plen <= rule->suppress_prefixlen) + if (plen <= rule->suppress_prefixlen) goto suppress_route; /* do not accept result if the route uses a device -- 2.55.0