🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15577

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

#15577
From: Pablo Neira Ayuso
Date: Fri, 13 Nov 2026 03:12
37 lines
9470 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")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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 644e70fd6773..001abfae5a1f 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. */
@@ -702,7 +702,7 @@ static int nf_flow_tunnel_ip6_push(struct net *net, struct sk_buff *skb,
 	mtu = dst_mtu(dst) - sizeof(*ip6h);
 	mtu = max(mtu, IPV6_MIN_MTU);
 	skb_dst_update_pmtu_no_confirm(skb, mtu);
-	skb_scrub_packet(skb, true);
+	skb_scrub_packet(skb, false);
 
 	skb_push(skb, sizeof(*ip6h));
 	skb_reset_network_header(skb);
-- 
2.47.3
Technical Details
Message-ID: <20261113031251.2437074-12-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-362395-linux-kernel-netdev=dewy.ru
References: <20261113031251.2437074-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-362395-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 11/15] netfilter: flowtable: do not scrub as crossing netns
Date: Fri, 13 Nov 2026 04:12:47 +0100
Organization: Usenet Network
Message-ID: <20261113031251.2437074-12-pablo@netfilter.org>
References: <20261113031251.2437074-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1269831"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kxrG53asDMaFn5/qpizWq2bbKwE= sha256:v8r4IsC3JQTY6wgwtFOTp27nHEKOWF7aW52LxF/mo80=
	sha1:WUf25Zo4LIFrGMZAZ7Rk1UNEouw= sha256:6EFiwJh8c7PMH80PqfSBlM3tBdYSkanHgnfYe9OWo60=
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 62C27114484; Fri, 13 Nov 2026 08:27:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 (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 cTi8P7cftiK2;
	Fri, 13 Nov 2026 08:27:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-362395-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 5E482114464; Fri, 13 Nov 2026 08:27:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 48B87186BE8; Fri, 13 Nov 2026 03:14:19 +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=1794539593;
	b=LtFBVhodGjsm2tfm1s4vHNRK8jkK/7KU7XvcwuDwOhmwpc1F8UkA6CVhNxyJd7aTI1U5
	 7FNotRu05qeloyhQlxiwjIUKbE8P3LYCh8s22ArfFy0JxsWQJl/Vob2KjQepwu/DAt0BC
	 D1+iIfOgORR6ustIDLRIrSoPorTU55fbh4P60JxVHVWpwzoHDspTBHBn1c7GD1DW1vxb2
	 iKyu3hrMr48Nn0H7GbDqXh0V6GYkN7813jRLuAj+WQMic01DzjCABLtOnDTiCGvMiBMUV
	 hjXwf4dQENeT5Fwam4zdKwAeMkPzcsrx8+Ew+B7py87W8rKFLlBIPGu/QlOQdb7/dnw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794539593;
	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=9cFznuUQg3/J/kwaHnNpIAUWitOUD5BkKb79yKsxlE8=;
	b=EVxHcqAc3p7CxPbnOXDUjto/DWWomNoLZ4YECcDkYmfUMDQ+osmnVIO7MaxB60COV+By
	 dSuJvn5U5jzju4zr6Id80NelWzR5hQX0eNJi+y8JVv9miu7/vjGXj1hvzgnQK65NrIWaz
	 rdo6y/In4BVk9z+gWax/riqxOmk5fNuZzRXpn1eIvi+Hut9yJ5zfjwaQneAs+qbXjZDje
	 HnHBVkF7TYCe1/8K7MbnCm7TLmGjn6PutVPFjevr6lFHlFA1al8wEwgaBiBavTMx8ztQ0
	 2U36ogTRDjV3fYW7ABnQlAlrL9YV1uw4oKcYchAHfdKpOYk3LuGvnCjtin2wjvfeDKw==
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=kRkKZmp5;
	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 D195B60A2639;
	Fri, 13 Nov 2026 03:13:13 +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=kRkKZmp5
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=1794539593;
	b=HRf3zHUDMBFlaJvv6sqynlovJzsC98b66EHwjlUC3XnK724cbwfS+DvvWmp65UOhzDHc
	 TolEHq/u6q97pGtKXvwS2Rg2mklY4ebX7EpKpkJiHWKLJszJgElpBACsb2mbq1O/MNBEj
	 2gGCb00i14xIINLBaTpyvX+O5VcztXh2IywSaJNcD+G3u4EN9hBCkbmQj8aKKOTerCfdb
	 Y6qLosovZ3wwlsEO58Azxs6gT8jxxRHQ/lp3vp63KmGyqkholAKDfOxE+MTygN0mVI+L7
	 mWTbZ75gAIVZW61xBfTKHvKYyTtcqcrHSW5b3kHzigZA1d8rUCDtagrDbbaAJ4yy6DQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794539593;
	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=9cFznuUQg3/J/kwaHnNpIAUWitOUD5BkKb79yKsxlE8=;
	b=FYsJvrx7GUMi8OAOKwQPV1ht6WtmlFkWunj4R8rFL+jEYZKqpwJRvjvo1+gvGq6Q9fdf
	 ZuUvWRwCrJuZX9P57eUWILUgy4IOayLoPBylM+E0K0jpVsW5VTen1YKDFLGj2pUvmhd4Y
	 6yc7DsVIEn3Pb7+1SBP3GjuB58Sg8HuFSFfonSfs/y3ezjIA61pgeUYOUDEqK3WRXO+V0
	 AOZuS0J04cxsHwjJ1qQ67DuRc92XqaaoYvyAfikTTi4vfRFqK/rJzruFW3Qsj9KW39wQP
	 ylWA2phJAgw8mznFHTLVtnROXmxAByrmzAREpAfXJw3uaClwJjVtzylJBhkf4shxncA==
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=kRkKZmp5;
	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 8B96260A262B;
	Fri, 13 Nov 2026 03:13:12 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B96260A262B
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=1794539591;
	bh=9cFznuUQg3/J/kwaHnNpIAUWitOUD5BkKb79yKsxlE8=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=kRkKZmp5rCW7sMugK8xDKWOIMRx4f/uKSfxAOJrAo52i75/ja2Z0X/a7pJ5YEkt5y
	 +/UHOKZi36WrvxyOHv4jRD7HvA3MDljQEzqqx9pPIioo0bdeTfkt0pR/6kmNNVXO2C
	 pc82J4NbWJUvM+AdWhyGBiqvwuOGRI3BmcaQyEQ/45/d8Kn+KlMhRHRvxOWmH3cda7
	 np0V67eGLSlQIU6v3zaMMv+ATkwyQPqhigTcvP0g+vb81XeVxcuj6TzXvq7iojNjtF
	 TpVn4AEsEI6eYMcKo0Ds+j9Bmo2rdNgP/6PA5m5W79pXHPFkPjwC2ArJoBYWCeJQO5
	 Y7nfQpcTNcx4Q==
X-Received: from localhost.localdomain (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with ESMTPSA id 9678F602A6;
	Fri, 13 Nov 2026 04:13:10 +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: <20261113031251.2437074-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