From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.143.172.20 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796232741; b=xcXrypiu/RqmDBgQ2h+Hgeb2ztwPlFy64bepXC9tAnfpU7vXwhIzAU8HIaeLun7BEhIX 75RpOft/HeZTJw/6XT0wZ5aXlWRcnw+WzAaHC2zdBxI2oxF45UD2vlrXMkMqWLQAs4iMw ROS+jStRRe/bQo2vCL33PIgWexlN7UvE8Sa7a8bZY9MWY+rmh2D5BpPXaJCcTFGxL8S9z 5IgfA6SbsdeSvg3aC0RT209dSH4wJD/XhD8Jm1rSRWKpx1OboZo0PE/dFVwa4HJwhFbDJ SVvD46JR+wjMaNYU6X8eD9xgDo9ON+m+CTm2UQRl4MNWJvnn2Gz51Ombg5W/OOzuz7Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796232741; h=DMARC-Filter:Received:Received:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Rspamd-Bar:X-Rspamd-Report:X-Rspamd-Score:DKIM-Signature; bh=BjKHMlAh4cC6Qefgfp8KlwRnuwWqXpLs8H2sOWfHjW8=; b=IbcjQc7dAjvI0eFnGOUxCxbOFuW4gLQrCjXOGgkdZVuG+WN0ce2h2+thIBiXPTN6+iPd ZdNt3N3irvx2eaC0pCtqpvIi1BsNgN21dJ3piJNY0FB/oYSa9473z40OHw7u8ftyPL4tq 9MhwLsA4jhGRu1+BgpgL3uKePj+kL5+8iT4S9yRhCE45OoxIv/SKBqA03c98kQV0sTj/G yTR6x1K79w5DLcZMleeOfbvWJ2Qjz2tAyWbyiXqG3g0i7b79efjyOjWvjbgDGcUtseBXJ aWnGX5I4+nTWko/Qk6dy9wcgl0sqtjhjCbo5+M2LiEKOzyv4XrXGvqDRxyS/vZW50xw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lausen.nl; spf=pass smtp.mailfrom=lausen.nl; dkim=pass header.d=lausen.nl header.i=@lausen.nl header.a=rsa-sha256 header.s=uberspace header.b=J3x01gCn; arc=none smtp.remote-ip=95.143.172.20 Received: from mailgate01.uberspace.is (mailgate01.uberspace.is [95.143.172.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20250606A322 for ; Wed, 2 Dec 2026 17:32:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 20250606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lausen.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lausen.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key, unprotected) header.d=lausen.nl header.i=@lausen.nl header.a=rsa-sha256 header.s=uberspace header.b=J3x01gCn Received: from devico.uberspace.de (devico.uberspace.de [185.26.156.185]) by mailgate01.uberspace.is (Postfix) with ESMTPS id 05B7560D31 for ; Wed, 02 Dec 2026 18:32:11 +0100 (CET) Received: (qmail 20600 invoked by uid 990); 2 Dec 2026 17:32:11 -0000 Authentication-Results: devico.uberspace.de; auth=pass (plain) Received: from unknown (HELO unknown) (::1) by devico.uberspace.de (Haraka/3.1.1) with ESMTPSA; Wed, 02 Dec 2026 18:32:11 +0100 From: Leonard Lausen To: netdev@vger.kernel.org Cc: leonard@lausen.nl, David Ahern , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , Pablo Neira Ayuso , Florian Westphal , Phil Sutter , Shuah Khan , 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 Message-ID: <20261202173023.17220-1-leonard@lausen.nl> X-Mailer: git-send-email 2.55.0 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Bar: - X-Rspamd-Report: MID_CONTAINS_FROM(1) BAYES_HAM(-2.999983) MIME_GOOD(-0.1) R_MISSING_CHARSET(0.5) X-Rspamd-Score: -1.599983 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lausen.nl; s=uberspace; h=from:to:cc:subject:date; bh=c349lmcy+5PB+3bR+xNL3HmJ6GctOu0OHz1MC6Cf4yw=; b=J3x01gCn0IlXLfbVWQ9wayzSiz97l2sWDaGXsnuNnoZns7+VLjy3Vh5dy7rbuFhF/EVsL0Ovy5 L9lS6jcd6KxM2rFt0GSJJ3twZlXb/CLu9R/C8edQCbg/LIr+8FaI9bmlleiltqAKFcl1vQGCs07B 3fS0diJYyYhDz9LHSFSYwpNyJmzek/udhdTkw7OUxuJDp0be0kextkFweuE+oCbZW/aT6bMvP2g2 xU2w81wCiEIQsYL9AOLYitmOWkffnkj6bDhxtdCi3/xHuna+uAgt+vpaWQaDbtrxluzu3aqjCG// JZgWVGtkh18qQ/oVZVcAhrSBrwg1sXDGkROlf1V8CfYIPV+fWrGev71q4j4hUxi1fGmNyaa9rUsC 8/Uf8hn4tscnCuaQr7zT/+B8b3a2UM0h9lDdJEJDUBpckejUAWlshd/SY1+yEX9JjwT6cvzp4WHP kX0t8/wmrEPgGKJL7cI/0gBaWfSTKpJ05D5zuUMcNTh6x4c/HI6X85ABJiTKXI++hEQWfAEC+Vkr N3usn/cC4/HpICkHDZaREBwLRmOjfZGR0rSFtjTvWVjBE0e23CqksDuvtZpSVOorzYatEJzmf5Vx mInqWRsA67pVCtOXeVjV4GNE66xZAIGbG/wWTKXy+4yMkWmUeRw+o5505JseAHexxBVFY54/HOpI g= 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