🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13911

[PATCH net 0/2] ipv6: honor rule suppression in raw FIB lookups

#13911
From: Leonard Lausen
Date: Tue, 10 Nov 2026 13:16
47 lines
11481 bytes
IPv6 raw FIB lookups ignore suppress_prefixlength and suppress_ifgroup
because the suppression callback only examines the dst-based result.
This can make nftables select a suppressed main-table default instead of
a VPN route, causing strict reverse-path filtering to drop VPN replies.

Patch 1 supplies the prefix length and output device from the appropriate
result representation. It preserves reject results: raw lookups can
return success with RTF_REJECT set, whereas dst-based lookups report an
error and skip suppression. Destination-reference handling is unchanged.

Patch 2 extends the existing nft_fib.sh fixture with unicast suppression
and retention checks, plus a loop covering all three terminal reject
route types under both suppression attributes.

The series targets net and is based on v7.4-rc2 (7475ea8b5861).

Validation:
- The original VPN failure was reproduced on unmodified v7.4-rc2 in QEMU
  without kernel instrumentation.
- The final fib6_rules.c compiles without warnings with the laptop's
  existing configuration. Its extracted suppression callback passes 17
  ASan/UBSan checks, including reject results from blackhole nexthops and
  destination-reference handling.
- On the rebuilt v7.4-rc2-based laptop kernel, all ten added selftest
  cases pass and nft_fib.sh exits successfully. A separate twelve-probe
  test confirms that blackhole, unreachable, prohibit and blackhole
  nexthop results remain terminal with no suppression, prefix suppression
  and matching interface-group suppression.

OpenAI Codex assisted with investigation, reproduction, implementation,
testing and these descriptions. The prompts asked it to investigate the
VPN failure, validate on v7.4-rc2, simplify the series and preserve
terminal reject routes. Both patches carry Assisted-by: LLM.

Leonard Lausen (2):
  ipv6: honor rule suppression in raw FIB lookups
  selftests: netfilter: cover IPv6 FIB rule suppression

 net/ipv6/fib6_rules.c                         | 32 ++++++---
 .../selftests/net/netfilter/nft_fib.sh        | 68 +++++++++++++++++++
 2 files changed, 90 insertions(+), 10 deletions(-)


base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
-- 
2.55.0
Technical Details
Message-ID: <20261110131638.15004-3-leonard@lausen.nl>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360223-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360223-linux-kernel-netdev=dewy.ru
From: leonard@lausen.nl (Leonard Lausen)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/2] ipv6: honor rule suppression in raw FIB lookups
Date: Tue, 10 Nov 2026 13:16:36 +0000
Organization: Usenet Network
Message-ID: <20261110131638.15004-3-leonard@lausen.nl>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="615407"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:PPVdNlB0cG+SCLFOOSinjwceujk= sha256:dt4oOy0Hkb9HEzWRpe0CBUtcOyXNUuUbtWv2q53uC/c=
	sha1:QFyKpNSFWGEzm8/loYMCCatHYes= sha256:Pa1qYukbChDfPFVLcgPHgWsKu3zBXdbHmxMhI1OK0To=
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 4635E113BA5; Tue, 10 Nov 2026 16:31:42 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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 (4096-bit key)
	header.d=lausen.nl
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 YyYUKXkQ3Yu2;
	Tue, 10 Nov 2026 16:31:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-360223-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lausen.nl
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id B9933113B74; Tue, 10 Nov 2026 16:31:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id EFFE0645AD1; Tue, 10 Nov 2026 13:23:02 +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=1794316648;
	b=Y5bH3EcNQwpaIyYBSLu98T+DFHoT5cXdfZxxo0mn65U0q0GdivpO6ogsdk5/WOYkRl5D
	 nW5jBO+Sb5jGmaYDVdMbWOoogAtmYtEonTbgiYK/Ow4ItgdKFk67oR2N3anStx+xFEaVK
	 C10NcICuDMQ48HIE1KRkA4tEJtxADHQ1RSW/DFT5MJK/dhqustlFL80yb0IJaAT5gWgw3
	 TS5rXsbcuH/B9VSo8numNRFP0CCeaRqRKL4v0OmJX5Z1zk98LC7NQst2N0xI1mwY5ibvr
	 BmTqzIqrfCJctd8146UOA4b4ASzqJ+K1Hb2xjuNyXhobP/dfYr34J4SKLDZDBlaPYOA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316648;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:Received:From:
	 To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Transfer-Encoding:X-Rspamd-Bar:
	 X-Rspamd-Report:X-Rspamd-Score:DKIM-Signature;
	bh=Xz69vwdlgbH2AiksoxbbdfVj3ichWtpOW5WINr/u1E8=;
	b=bFmOBHOJrUzOxOc5rAbPPmarV+F9vzhqa3GSxBcwQmRIaUDPW16OkGPArTwdJ81FqB2t
	 /D3SlLUmxgkYsdfu5CVyKbJggvP/vHW1uLLd4T65OWs5YjPWTiwbeM/vJBxUuIr5CeTfr
	 twG7BJWSltO/ryc5xIKBoQkpytxONm2G3ysd8C42cSKWBd4LRxP/vUpD0VkGejfOVUav+
	 q1N7mxzDy4V1Y0+F2II2630kltK2grYCm/89/fU06Z3XqUAiPWErGFTpHuW7lrZyJfgs9
	 Vym17cl2XdBSdnopRZi5IR02/rnlfs8hrYkkziMuQA0qlRTsg4Cn89JpF74QUzrcv4g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lausen.nl header.i=@lausen.nl header.a=rsa-sha256 header.s=uberspace header.b=qEMbmOVZ;
	dmarc=pass header.from=lausen.nl;
	spf=pass smtp.mailfrom=lausen.nl;
	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 6C0486071E68;
	Tue, 10 Nov 2026 13:17:28 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (4096-bit key) header.d=lausen.nl header.i=@lausen.nl header.a=rsa-sha256 header.s=uberspace header.b=qEMbmOVZ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.143.172.20
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794316647;
	b=jiEiS+EijHtKvw0KJnXw7Qxm+XlJiKCsSQ6EKuxiCdrJ/SSmMD3hC5jjVeKsk93e/s/y
	 I6vLxeje9Bm+m8kyNErx5kBHy3ahME+CztJJ5YbI/dILIMqj1aYcsSbLku4QpLigAKoT8
	 cQ+P/QUXSAqNHkIPMgz7W3wKD15xxwCAchwc/2BSmQig8pD6SAsvHS/kmUdxWq3G3xF9/
	 92tVHErBVsvSyQzZrdZwp6tHBICu/4QFLAcyIWRpCvVbtXFMNO4N43bVRVzmliBlGZ3+Z
	 n/0nPIPYy7oNp70JsH6ClBse48P9JnLWLmd1zCPvA3g+eOx31nHAPV+TamcXz9xrUzA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316647;
	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=Xz69vwdlgbH2AiksoxbbdfVj3ichWtpOW5WINr/u1E8=;
	b=43i82noUmSqyhyjrtjmkWHQpb2j3ErMp5LfJVzu4iq+P1n+drjcAQHsUpU6I4wsIcvn3
	 iqKsvu8ySluFeX1bVcOlk3EPZktHzzBXwrbM8Tk9HkeNiWAB+FD5PT0OnnuRizxXtOaPK
	 r9sT1T1ARbdbVdaUqswG3xFjfcZK+6H22VfktjTi6HeXMJQe23JQXubJRB5WPtTt6FmC3
	 mN7q5rKx2K6mlTNzPSjS3c9TIRJTrAAYKYiQ/fyJm+t9sryQInfeBlF7j6UMISjCORMs0
	 w38FyuZQ5El0eZPerNoam4llWo7/m/t4+IVjDDfYZoTaoQ3tMC6ENqAs66hptSpFsUw==
X-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=qEMbmOVZ;
	arc=none smtp.remote-ip=95.143.172.20
X-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 B450B6071E50
	for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 13:17:25 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B450B6071E50
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lausen.nl
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lausen.nl
X-Received: from devico.uberspace.de (devico.uberspace.de [185.26.156.185])
	by mailgate01.uberspace.is (Postfix) with ESMTPS id EFE5660884
	for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 14:17:17 +0100 (CET)
X-Received: (qmail 18734 invoked by uid 990); 10 Nov 2026 13:17:17 -0000
X-Authentication-Results: devico.uberspace.de;
	auth=pass (plain)
X-Received: from unknown (HELO unknown) (::1)
	by devico.uberspace.de (Haraka/3.1.1) with ESMTPSA; Tue, 10 Nov 2026 14:17:17 +0100
X-Cc: leonard@lausen.nl,
	David Ahern <dsahern@kernel.org>,
	Ido Schimmel <idosch@nvidia.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Pablo Neira Ayuso <pablo@netfilter.org>,
	Florian Westphal <fw@strlen.de>,
	Phil Sutter <phil@nwl.cc>,
	Shuah Khan <shuah@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	netfilter-devel@vger.kernel.org,
	coreteam@netfilter.org,
	linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.55.0
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
X-Rspamd-Bar: -
X-Rspamd-Report: MID_CONTAINS_FROM(1) BAYES_HAM(-2.996444) MIME_GOOD(-0.1) R_MISSING_CHARSET(0.5)
X-Rspamd-Score: -1.596444
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=lausen.nl; s=uberspace;
	h=from:to:cc:subject:date;
	bh=4jabfNk/+Si/BEhfu5MnAq/+ZlUBEjAIZzdfp/sdPnU=;
	b=qEMbmOVZF0bxGo/52K9MwG4xc0nsDg9y6Jfdko5itxLM892vRRoqMGTAgEkd2mg2XPc0d1taCA
	r157Erj6MXjgvg5dgPYR/t9+g+TMInPbnPbLSUX8tqgEfog8idPABSa/BoSnlImaz40hMCfwvVzr
	/gl5qS37QzAWMcc8Zo7/CXXCJtyVkMcdhQhZd2uYgihhxFNnDXmXj4FCopPgVxDhDeX0tX43he9B
	ysU7D1cDSQNeIpjcGG3wcpVQFlLI/3Cmh6EGxoCa6/aCSk27dSk6MDGn9NwTNQNIFPS4L3xR8X/f
	ZIKwqHqcaM6rI8m6o9DODamoMgMAXEPGccoROX5CsKR5SBAtTkrY54p43qbps0E4YIv82jzxae/y
	WMkzuNJYUtCDC0FH749MgHZhaiWMMbEkUMBkzCUZVF37o4YwHkg7aW94+efbp5X3OxjbxJOQ6N/o
	p15f7WdDVKJHA+XYgqKtGajHVAa5VVrOPlcLi/POG08L1etIbhasycdQle4NbStWA9IAD++WplNw
	CnEW1/0jYmE6V99nUp3QjzBhcFnbyhBmkJK5JrAHi9iDAZwmZglKC99bufx4N9wEOnf2mgA8OEeX
	xlkVYxoHbqjJg5T3k4+V91NnioG286wLGTudqxd5RkZrQt4B5ieX6s3JhZ8oe+OGcJT3AwiBS5ui
	Q=