From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796319248; b=p3P5DcPOkbfuf7zgkcInaT7ZHFyWS4IM/6/SZX8UVSGyrbJMyX6OZyzC2WfXTe5e70kr yn80p/khY909spzwEuTve0uzfNSv6bGJInhWMy91uOPH2O8AYpakSPKgBq/M4JgI5i9VQ jYaJonVT33H+L7lb/4dBCa/m2bHWodnw+ogBPzLNdrMMhW+uJWl7/SgedgUZog03sEcCx Z5pQEC9a5EMsfPEvwiF/omrBxUkZqCggepYKUvKHPgDz6M5PH2xE7Vw7enLYjd4m2czb1 94ZMVgR7lEkM5pwUo4Uwa78ylVoGfyh8b4HRDciKC+2RT195LjaAbdFmYltCIyMAOyA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796319248; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=oR9Zk8Xwt1m5uMJWUQUyAaOIDoGYRHttNSA4UwBpGs8=; b=N0WKwboSL4Im1w+pzKX8LKbNeYYSiHe8Q6Dd4fejJ5ztlWZxX4FUIArQdWh+Z7NqcINC 6pxuGARVfhOg3uE6OsOjtm8VTXtpn8uKAu6qCSlu24h3JTKOnz9njVemQCp7pSzV8PNGr SzZTRYH7c2Zf/ZumPB6irhxFe3UehuNq9Z4HrYI0KObT4AfJcqDueC21Sd88HjgUoLoO5 RYI+0Me43ij4toVCfwi0zRIbM0wqqbW4pp9Hfwmy3dbvPKcPvpe7vicy4K581murF1fj8 QSqsuL1LUOXUo3xHSWewFy4X4B+EJvA7AZy9AGkqNR+IBE7Zmc70/O8bNT+aqYQKKSQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kMCR0CFM; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 155C2606A32C; Thu, 3 Dec 2026 17:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kMCR0CFM Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76E591F00931; Thu, 3 Dec 2026 17:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796319247; bh=oR9Zk8Xwt1m5uMJWUQUyAaOIDoGYRHttNSA4UwBpGs8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=kMCR0CFMR+CRC5C3PMtYIOm0wtOsY7tAxtDbcSmGODBpfO6dEObDTk2zsz7/INPId lkl20+J0lMWzFIeUlYUYzE8K067zMhcSWU1XTdPCstzaUkl4QlLAI0j4cVxCa1Zxhh JnqSCxhYhjT4BA/c/3koYHizwLJZhogIkB0cN1+MrKW3SGBlJmtSAUQPqCz4H0fe9g UPhoyxVU2fp1gpqO3RaglGEE982ONx/v1U1HPnXpyErLUYTWITfD+PC/Q0QA6FVhVp okFIYAdfiR1G7upu2qR5enFlqy8dL9CDRTu0CPI/tDu7mbH2sey1QlLiXDW0x90Nkq WTF+8Wsrr2zZQ== Subject: Re: [PATCH net-next 2/2] selftests: netfilter: cover IPv6 prefix suppression with a PMTU exception From: netdev-bot+sashiko@kernel.org To: leonard@lausen.nl Cc: netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, pablo@netfilter.org, fw@strlen.de, phil@nwl.cc, shuah@kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kselftest@vger.kernel.org Date: Thu, 03 Dec 2026 17:34:06 +0000 Message-ID: <179631924601.3146.11001178872161160309@kernel.org> In-Reply-To: <20261202173023.17220-3-leonard@lausen.nl> References: <20261202173023.17220-3-leonard@lausen.nl> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] In the IPv6 prefix-suppression block of tools/testing/selftests/net/netfilter/nft_fib.sh, the new PMTU-seeding… -- selftests: netfilter: cover IPv6 prefix suppression with a PMTU exception This adds a test to nft_fib.sh that seeds a PMTU exception on the default route in table 128. It does this by bypassing suppression and sending an oversized ping through ns2, which has a /128 route with MTU 1280. It then uses test_fib_suppress() to check that nftables and an ordinary route lookup both select the later table. > diff --git a/tools/testing/selftests/net/netfilter/nft_fib.sh b/tools/testing/selftests/net/netfilter/nft_fib.sh > index 25e13197f0578..175bdfa825c9e 100755 > --- a/tools/testing/selftests/net/netfilter/nft_fib.sh > +++ b/tools/testing/selftests/net/netfilter/nft_fib.sh [ ... ] > @@ -907,6 +908,24 @@ if ip -net "$nsrouter" -6 rule add pref 100 to dead:1::99 table 128 \ > ip -net "$nsrouter" -6 route del table 128 dead:1::/64 \ > dev veth1 || exit 1 > > + # Seed a PMTU exception while bypassing suppression of its parent route. > + ip -net "$ns2" -6 route add dead:1::99/128 via dead:2::1 \ > + dev eth0 mtu 1280 || exit 1 > + ip netns exec "$ns2" sysctl -qw net.ipv6.conf.all.forwarding=1 > + ip -net "$nsrouter" -6 rule add pref 99 to dead:1::99 \ > + table 128 || exit 1 > + ip netns exec "$nsrouter" ping -6 -I dead:2::1 -M do -s 1400 -c 1 -W 1 \ > + dead:1::99 > /dev/null 2>&1 > + if ! ip -net "$nsrouter" -6 route get dead:1::99 from dead:1::1 | > + grep -q 'mtu 1280'; then > + echo "FAIL: could not create PMTU exception" > + exit 1 > + fi [Severity: Low] Should this set ret=1 and carry on instead of calling exit 1? As far as I can tell, this is the only place in nft_fib.sh where a FAIL message is followed by exit 1. The other runtime checks set ret=1 and keep going. The ping's exit status and output go to /dev/null, so this check is the only thing that notices a failure. Any of these would trigger it: a regression in Packet Too Big handling, a ping without iputils' -M option (busybox, for example), or ICMPv6 not getting from ns2 back to nsrouter. The message would be the same in each case. When it fires, the script skips the later checks, none of which use the PMTU exception: for type in blackhole unreachable prohibit; do ... test_fib_suppress "retain $type" "$type" type || ret=1 done ... test_fib_suppress "retain blackhole nexthop" \ blackhole type || ret=1 ... test_fib_vrf It also exits with the pref 99 bypass rule, the ns2 dead:1::99/128 route and ns2 forwarding still in place. Could the PMTU case instead be reported as a failure, skip only its own test_fib_suppress() call, and then do the same cleanup either way? > + ip -net "$nsrouter" -6 rule del pref 99 > + test_fib_suppress "suppress cached default route" veth0 || ret=1 > + ip -net "$ns2" -6 route del dead:1::99/128 > + ip netns exec "$ns2" sysctl -qw net.ipv6.conf.all.forwarding=0 > + [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202173023.17220-1-leonard%40lausen.nl