Article View: linux.kernel.netdev
Article #19782Re: [PATCH net v4 2/2] selftests: netfilter: cover IPv6 FIB prefix suppression
From: netdev-bot+sashiko
Date: Fri, 20 Nov 2026 11:10
Date: Fri, 20 Nov 2026 11:10
82 lines
10934 bytes
10934 bytes
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] The new in-tree comment before the IPv6 prefix-suppression block
in tools/testing/selftests/net/netfilter/nft_fib.sh says "The router'sโฆ
--
selftests: netfilter: cover IPv6 FIB prefix suppression
This adds IPv6 checks to nft_fib.sh for suppress_prefixlength 0. They
verify that a default route is suppressed while a more-specific route is
retained, and that blackhole, unreachable and prohibit routes (including
a blackhole nexthop object) stay terminal. The checks run after the
existing default-table tests.
The commit message says:
> The router's logging RPF rules have already been removed by then,
> allowing neighbour discovery during intentionally different reverse-route
> states.
The same statement appears as a comment in the patch, covered inline
below.
> diff --git a/tools/testing/selftests/net/netfilter/nft_fib.sh b/tools/testing/selftests/net/netfilter/nft_fib.sh
> index 04544905c2164..25e13197f0578 100755
> --- a/tools/testing/selftests/net/netfilter/nft_fib.sh
> +++ b/tools/testing/selftests/net/netfilter/nft_fib.sh
[ ... ]
> @@ -845,6 +889,52 @@ test_fib_type "default table"
> ip netns exec "$nsrouter" nft delete table ip filter
> ip netns exec "$nsrouter" nft delete table ip6 filter
>
> +# Keep the earlier IPv6 checks on the path without custom rules.
> +# The router's logging RPF rules have already been removed here.
[Severity: Low]
Is this comment accurate? Earlier, the script calls
load_pbr_ruleset "$nsrouter", and that installs a logging RPF check in
table inet filter:
load_pbr_ruleset() {
...
table inet filter {
chain forward {
type filter hook forward priority raw;
fib saddr . iif oif gt 0 accept
log drop
}
}
...
}
Between that load and this block, the only deletions are
"nft delete table ip filter" and "nft delete table ip6 filter", after
each test_fib_type call. Table inet filter is not flushed until the
"flush ruleset" in load_ruleset_vrf().
The prerouting nft_rpfilter logging rules from load_ruleset() are gone
at this point, since the earlier "nft flush ruleset" removed them. The
forward-hook "log drop" chain is still loaded, though.
The new probes (ping to dead:1::1) and neighbour discovery are delivered
locally and never reach the forward hook, so the checks still pass.
Could the comment, and the matching sentence in the commit message, say
that it is the prerouting nft_rpfilter rules that have been removed,
rather than all of the router's logging RPF rules?
> +if ip -net "$nsrouter" -6 rule add pref 100 to dead:1::99 table 128 \
> + suppress_prefixlength 0; then
[ ... ]
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261117110813.9894-2-leonard%40lausen.nl
Technical Details
Message-ID:
<179517305282.3136.16580929973360319234@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367896-linux-kernel-netdev=dewy.ruReferences:
<20261117110813.9894-4-leonard@lausen.nl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367896-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4 2/2] selftests: netfilter: cover IPv6 FIB prefix suppression Date: Fri, 20 Nov 2026 11:10:52 +0000 Organization: Usenet Network Message-ID: <179517305282.3136.16580929973360319234@kernel.org> References: <20261117110813.9894-4-leonard@lausen.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3142146"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:nfpOHB4jpXsBDO+lasX7+HpX83M= sha256:AAKOxVqqG8kzx9SLGB4PZ1P35L0iH63blaQnQzEAP6s= sha1:T23IcK3Qg+hwXlkrkVcalg2u2Sc= sha256:ssPHlZ3bdQYnES7/sKjXXx+9uz5gReVpHMROQMjy57M= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id D648611595C; Fri, 20 Nov 2026 14:11:25 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0D2nT4J9dVSn; Fri, 20 Nov 2026 14:11:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367896-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id DCD98115946; Fri, 20 Nov 2026 14:11:13 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 634E043D37; Fri, 20 Nov 2026 11:11:00 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795173055; b=RB6+tTzSkPMPk2WK13GYHOwin+lAZ+hj92MQWhHG2lMnp3NhX2HlUphh3ZoMOrezj3UM 5fCG3yQBBw1PAYxds/dKKeg3x+WUNWsp99sLXqksf5fy8/2yr3iW/o7nmsynR5hp9YVGG /Cfu0AOUtyMMA2xKbypNfbT+YrB2m6kAnlR2RFfbcRmAOfKqHI1kX5mtAKw2Njf2EOdBF C+bQCiCeI2szpf2v3hDadxc3jJyatt4IiS+L/70DbydIx4+T4WGCpL5jXqziaxd8lTaT7 JwOcw3DAmAj1Pgd/wKziWF6I0/AZOviL+Cpgi3QzXohi+8QnCzFqJCqvXz53p1iyhrg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795173055; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=2bj2WTnjPiLjsE3k43qjyadZlVuZzndDK7/3eTPwHqQ=; b=h77pmg1ji4cTbKpPd6Uwxh5CtYQo++KKHn0O+kUGvDZUl44XV95Zz8CZRgwedLoagiaB 5lxYjXC+4p3uzXIif8nNnkuEtLA2YyFb2daG1EA4T1ZXgfpYXN6R9EqVI6+IJg0kznWXf KHS81GRl3DrigoYG29aujSRGDzqx8YvNB+3fnM1ifR/Ejq1tL+zUY5VWIU5RVYVwBGeJ7 gByCiERuLjflQkDn6YLwaRwBexwdgpvd1H04Rw6hVOARXOGV54VaCLbVlT+qp+TIBN8ZX 0qlwAJnUQ3QLUdAE53ceJNRyxJ4pUUJ9+CHDNGbczDQVaQmxi1vnmmjbaGCuPRf19Gw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Z4gIouMy; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73FA960A2636; Fri, 20 Nov 2026 11:10:55 +0000 (UTC) X-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=Z4gIouMy X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795173054; b=gpC5YpdlU3oERjGMlE/rtnl4dqo7iEStwGRGJs0RrfZssSRP+ErCzhAXpH4LfMieaUlR DP5puifLHY3CddpHgmuAFLSljfTRkS1bCgBmrZOzHuBrWlh/r0KnRSYoNK4iEiLeq/T4L puiTn8wfMA1IwyRPcC9yGd6USt1bXFud/i4Sq3cUHuOUbmFosZYUx/6l4/O10Q9lU2xay glYoYfxHHT1Q5xyQNZ1mkAgerCBQKAxYd4Wg+o61Um0a+X6LpN533i4mfyVCQ63/OjLw3 bg4m2Ec2UkwFzNOtS4fmgqriHj4JUxhvpb8CRG4/DTiwIsMuq4x8I8WDW9a2lolBocw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795173054; 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=2bj2WTnjPiLjsE3k43qjyadZlVuZzndDK7/3eTPwHqQ=; b=aAihYe/vJ4lApYROn/f9u0naFnDAakSz7fNtkmpOHXI3xBvJiVGO1y41baKZFcZTGP78 QU5hwUukIPzxorOpVtCP/9FN+4OsK3oB2Fvtvt6g32kXO1FzhW5XHzXoqLEjlT3zc6C1T 042NPqKpR5dCCbrCK8rryJlyQmFNJ/nn8+CGXEW+bdChDcqzzV4rtGFF0vzNoiiOuf4kS KFt8iQgal0WYdEfJmfN3ppU1USnVCSPCr9Duv4HCBrJt1gwPrnXaqeClNiDHpysZHoJSD MSGeeTUVJltbGweHr/nnagsy89D57ctZ5vGlImXsOdazqfHbTQXYuO3jm/tlqAKAbvg== X-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=Z4gIouMy; arc=none smtp.remote-ip=100.103.45.18 X-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 91A9E606A336; Fri, 20 Nov 2026 11:10:54 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 434E11F000D8; Fri, 20 Nov 2026 11:10:53 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795173054; bh=2bj2WTnjPiLjsE3k43qjyadZlVuZzndDK7/3eTPwHqQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Z4gIouMy2gpXBaY3WJ92xqOrONrBgfanHc39m1N5Hu9RlQQcAyvzr41n0hCNe+1z7 m9cpuNaO0X4sTrpy1GWC+mYR05yX3WG8ac//p95Bz1Kz7glAHpg3rJ5k+nJgy5N/4l C5FDahJrW/v4Z4zKunw95Z9W3W73+9m7YxBITsLCmWJ8tz92cu2Ti0keTDiuF4n4bL brIgEo77x3MD++ZDTy5bWXBAb6JOuCY4JObzTt5Z5HZloAi/fDjQU37f3GOjGpUskZ iwWqPQoyMMDRPvzjXzSpzirRx/CjpQUV6HZGzHBT38rZNa7YHWjXC93Bu9T9zNkvdc PXWpWEXjV2SQg== X-Cc: netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, pablo@netfilter.org, fw@strlen.de, phil@nwl.cc, shuah@kernel.org, daniel@iogearbox.net, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261117110813.9894-4-leonard@lausen.nl> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list