🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16846

[PATCH net-next 09/13] netfilter: flowtable: do not scrub as crossing netns

#16846
From: Pablo Neira Ayuso
Date: Mon, 16 Nov 2026 00:16
36 lines
9339 bytes
IPIP tunneling support does not result in crossing a netns, therefore,
adopt the more conservative variant of skb_scrub_packet() by specifying
!xnet, keep the existing skb mark in place.

Fixes: d30301ba4b07 ("netfilter: flowtable: Add IPIP tx sw acceleration")
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 net/netfilter/nf_flow_table_ip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c
index 19cafae748ab..78bba416dd5b 100644
--- a/net/netfilter/nf_flow_table_ip.c
+++ b/net/netfilter/nf_flow_table_ip.c
@@ -630,7 +630,7 @@ static int nf_flow_tunnel_ip_push(struct net *net, struct sk_buff *skb,
 	if (err)
 		return err;
 
-	skb_scrub_packet(skb, true);
+	skb_scrub_packet(skb, false);
 	skb_clear_hash_if_not_l4(skb);
 
 	/* Push down and install the IP header. */
@@ -699,7 +699,7 @@ static int nf_flow_tunnel_ip6_push(struct net *net, struct sk_buff *skb,
 	if (err)
 		return err;
 
-	skb_scrub_packet(skb, true);
+	skb_scrub_packet(skb, false);
 	mtu = dst_mtu(dst) - sizeof(*ip6h);
 	mtu = max(mtu, IPV6_MIN_MTU);
 	skb_dst_update_pmtu_no_confirm(skb, mtu);
-- 
2.47.3
Technical Details
Message-ID: <20261116001612.2806263-10-pablo@netfilter.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363933-linux-kernel-netdev=dewy.ru
References: <20261116001612.2806263-1-pablo@netfilter.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363933-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 09/13] netfilter: flowtable: do not scrub as crossing netns
Date: Mon, 16 Nov 2026 01:16:08 +0100
Organization: Usenet Network
Message-ID: <20261116001612.2806263-10-pablo@netfilter.org>
References: <20261116001612.2806263-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1941548"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kQIyEBVJiW4aOxwVTjTTZ3BPVaM= sha256:7fYCNd1M1PK2dR9EjG63RUwDvdG1b5C+oGPf/EiGMYQ=
	sha1:Ee8Y+J3RLQCeVumDTaNfsDRcGaU= sha256:9RiFVottyQ7zzACoOORszRKn65EBH15sq/JcPxU4u2I=
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 26D7F114AB4; Mon, 16 Nov 2026 03:17:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 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]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=netfilter.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 qGibQvLp1bun;
	Mon, 16 Nov 2026 03:17:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-363933-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 4F207114AB9; Mon, 16 Nov 2026 03:17:04 +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 326C86067A4; Mon, 16 Nov 2026 00:17:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1794788222;
	b=xyBxhgpVjSTfV1CmISoX6q8bfq3/0Xm0wISACrptihRCmbA/RUurevl4P6MVcQjJH0ZQ
	 w1ZCzN1VkYU/asXzhYds9/sILldTx2wMf0Aj4SmcXux0VaGnIehthBJAAVXWScBXSPN7j
	 mmrYYhqd5NY6jmH/Q0S7C3AQXLgz7eETFllNfWfGWnQUU6xI3KgvQ4ngnZbm+RVQBhNoN
	 Hkq2SzzqS7BMv9STtVa2xRc0NAlFRNlnOm3BmGKJW4c6pg28jspEsu3aca43ldeHfTnOz
	 NrZ1Fxqa60Aw8iS+q1J6cvSTy3Lxx5HA++x6Z0UGiHLT873xhJUYIHzu41D5+36Y6tw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794788222;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To:
	 Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=amZW8do7IJbbDjZDRAGpAZDrnkRmVJR2FN8Yptby7pI=;
	b=fiXycqE7MRKxxkL7EB88k3UzS5YWuIkKtnbLLCRJIYVKSvMju2vSXd3nyqnOR3hwefj1
	 lPHsaGJggT461Oocf3O595CIX/AoPuddMCyw6BcmCmMryxsI+Hg57kiXDxJWmF3s+5idH
	 +A3rTOWiS2iOGx2HNN8we5cDZSwmBOWdS4eWA2Mi8Us/26F8mrvIruSs62qBmiFYCXtNb
	 nvvZ+4GmJ6FlgfN1Sl3dhNCVBwn3d48TxXkQq+AVscJCgxC5wjtlUEyu6/ZiBBHOk9lH3
	 cdmhSmZLMcNPmnU0o+1zmXdMegKEJFiRxUCu5XGm2McqH4ctdIP+ppgvIIUGACWWyzg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=Z+gy6t4Y;
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	arc=fail 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 18F58606A332;
	Mon, 16 Nov 2026 00:17:02 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=Z+gy6t4Y
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.190.124
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794788221;
	b=1uYayulb7fUhZI0VH30hA39PvC/dnYTBpBRki0qWSaYpaNJeketePH7biiMYnp6wzp/U
	 sY4Dt7JmsmLyfkX2uN4shhxQasZfy2Vzo9q4HXBL6okiue4jMZKia17G4m7YqHI3rJNKo
	 AehltXCivzCBvj5Tmbjc2pTIe77Ka/Obe6DzLB2FKilbkUGzxGtNTluGFa3EiipQO6zwJ
	 MO6AlU1AGvaQyB18CwyQJ0mALzQDvynfDZK02hdN1Y94Wh/YfPJafX+nunugxNO7swMpV
	 5iaEb88DvCppPYJgGWjI0/Y86xvaCw1FCOzQ6RrYw7zgeRdRICKIZ0FYS0jevafcc7w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794788221;
	h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding:X-Spam-Status:X-Spam-Checker-Version;
	bh=amZW8do7IJbbDjZDRAGpAZDrnkRmVJR2FN8Yptby7pI=;
	b=k7RD1q7CJdSTe63uwl1Mo7DmoJK/ajPGAQTeLdUIHOm11in/6Xo3LCLUn0/hKoGwC4Vl
	 pdKmkWtcxdXS2oz5fafnBgqFcDP9C0YAZ9BgY3Im5j8YLXQLekx9DCZ/TX1n01Y+Phi67
	 GUgstM/u7Xtv//jvoXD6hgvbnK4DeTvIjn2CB0ROqw/8PRzasRBiA7l/FpQAveuA1Bpl4
	 a4BforTLtaog8lgjBC5O9CHQYeBXStBGGxLjaoEQHbNWjcIPWJSG3ocSYqHxh3v4IwoCv
	 /MZXVYKHoFJU3XUC9vR+fW652OQzPLdpyFFBT/EAcGWZY1typ3hQSK8myhq6jZ2HLZQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=Z+gy6t4Y;
	arc=none smtp.remote-ip=217.70.190.124
X-Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124])
	(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 B781F606A337;
	Mon, 16 Nov 2026 00:17:00 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B781F606A337
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;
	s=2025; t=1794788219;
	bh=amZW8do7IJbbDjZDRAGpAZDrnkRmVJR2FN8Yptby7pI=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=Z+gy6t4YszIrHg66MxqQpgt/Hv1ZmR+rSU9wPIceP1/7Dq+8EnVvR9tSWtZLUZMwU
	 eeCzNC+/5xVuPsyBRvhgrdjT/aA+BBBeSVkUgr4rbRjvHuHroFD3bogxqjRcaYQ/Lx
	 9DN6/YvBXlDfg5qT8Yh8FMaeVXApHWEnDRGsH8mwgpxUeGip4cYlynSUVaD1pbyWR8
	 dNoXAE394CL6TwqjEFYbJKu3PcmQfNiFQ9g4CEK6nb0EnQt+jeA0VGUngtGvixolw7
	 fCfIydGGg9aBkF30sOZP9orRyage77NGjwYEYzDu1qzReqao38h3fVSp6zh6QjSp73
	 J8khKVFHsqVoA==
X-Received: from localhost.localdomain (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with ESMTPSA id 8B9C16008B;
	Mon, 16 Nov 2026 01:16:58 +0100 (CET)
X-Cc: davem@davemloft.net,
	netdev@vger.kernel.org,
	kuba@kernel.org,
	pabeni@redhat.com,
	edumazet@kernel.org,
	horms@kernel.org,
	fw@strlen.de,
	ja@ssi.bg
X-Mailer: git-send-email 2.47.3
X-In-Reply-To: <20261116001612.2806263-1-pablo@netfilter.org>
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