Article View: linux.kernel.netdev
Article #17539Re: [PATCH net-next 09/13] netfilter: flowtable: do not scrub as crossing netns
From: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 00:22
Date: Tue, 17 Nov 2026 00:22
65 lines
9923 bytes
9923 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 commit message and its Fixes: tag cover only half of what the
patch changes.
--
netfilter: flowtable: do not scrub as crossing netns
This commit changes the flowtable tunnel tx push helpers to call
skb_scrub_packet() with xnet set to false, so the existing skb mark is
kept. The commit message gives the reason that IPIP tunneling does not
cross a netns.
> diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c
> index 19cafae748abe..78bba416dd5be 100644
> --- a/net/netfilter/nf_flow_table_ip.c
> +++ b/net/netfilter/nf_flow_table_ip.c
[ ... ]
> @@ -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);
[Severity: Low]
This isn't a bug, but should the commit message and Fixes: tags also
cover this hunk?
The message only mentions "IPIP tunneling support", and the only tag is:
Fixes: d30301ba4b07 ("netfilter: flowtable: Add IPIP tx sw acceleration")
That tag matches the change in nf_flow_tunnel_ip_push(). The call changed
here in nf_flow_tunnel_ip6_push() came from a different commit:
93cf357fa797 ("netfilter: flowtable: Add IP6IP6 tx sw acceleration")
The IPv6 outer path changes behavior as well. With xnet set to false,
skb_scrub_packet() now returns before it reaches this code:
skb->mark = 0;
skb_clear_tstamp(skb);
Stable selection still works, because 93cf357fa797 came after
d30301ba4b07. Every tree that has the IPv6 code also has the commit that
is cited.
Could a second Fixes: tag for 93cf357fa797 be added, along with a
sentence about the IP6IP6 / IPv6 outer path?
> mtu = dst_mtu(dst) - sizeof(*ip6h);
> mtu = max(mtu, IPV6_MIN_MTU);
> skb_dst_update_pmtu_no_confirm(skb, mtu);
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261116001612.2806263-2-pablo%40netfilter.org
Technical Details
Message-ID:
<179487497222.3136.5458006669603733275@kernel.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-364855-linux-kernel-netdev=dewy.ruReferences:
<20261116001612.2806263-10-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-364855-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 09/13] netfilter: flowtable: do not scrub as crossing netns Date: Tue, 17 Nov 2026 00:22:52 +0000 Organization: Usenet Network Message-ID: <179487497222.3136.5458006669603733275@kernel.org> References: <20261116001612.2806263-10-pablo@netfilter.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2202777"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:v0ALkZfAG7QdhV9EjTsu40tUqNc= sha256:NOSztkoOAJdkNx6JZIOT2oASn68TIsE9Dapi/WIBcHE= sha1:z7wSlrwugu+jgTp+3KURc0ffScY= sha256:J8KbkI0juP4HkT8zN8wE5lhUpwxDFoh8BvBr4wOcaqI= 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 72669114DE0; Tue, 17 Nov 2026 03:23:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 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] 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 zBFDHtkFGLcz; Tue, 17 Nov 2026 03:23:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364855-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 AB210114DD6; Tue, 17 Nov 2026 03:23:25 +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 6F89C3043A; Tue, 17 Nov 2026 00:22:54 +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=1794874974; b=Rc9Fq8zSR4jmNSMvZOSbAZYvE67sIDSIzgZlQytr+o/tUGR9XPaGG/5S84ciJk5oAcNU cmFXOnTEbyw0gd5CqB9mHA81O9YD49MBpNJ2m72QYO+n7v6utByEgFwav7cVUcZv73aZS QCSspWAgWSXfUrvp5M0FMYvCwVz1MlbrQmCqT181LWQw1OIIFpG1nE9EkorxdGMLf3cqz kmB/8qw7dcKa0V5dRTRiHC5mibeqmQmirtZeDXFcETo9pQqqgluAwDkh1gknNxWXgbcdu mHTTA8+xRWysd717lkHyRnDUy9FabNKZtxlgbuY94mB4Dipd/OrhoxFl/bNoR6dhwFQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794874974; 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=l0rf7L0u8LWAAVJiVYbDdKMPiWuUUvJiPStr+CQ+4Ic=; b=NkKHcQJ1ckdc4nsgOdlUzYZjnhS/z8Csjl/+UbO6jLyBdnuxNbrDXarCDgNl4vgszOtl kl+KS9FQwie5d2C7T0kAMYH/eTHbYyPa4YdYSjd38ip4n5BRFKcoxIgchxTzKOyQDmAaU +GP8+K1h0VgGj0K95ewFmAuZTaMxyTyBpdweou62WQ/tifqf/GGA7Be7tw0vhAu8aAzkA tg5G0YU3HlUYIbhuFJLqJWLSVbCM2iC1+yFWxLRV1DAiQEQbVoopPcYL/14eGzxDmQ4iz 6bmeCepKfY6HmV5LGxKAcx4EAE/9RyXteG1MGnttSU6nTvfpvPVdL/Dvj6P7rWFbw6w== 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=PG9SO+Qm; 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 47902606A339; Tue, 17 Nov 2026 00:22:54 +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=PG9SO+Qm 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=1794874973; b=by5KfgDFdlVsEjVvVpRkB38hSHMFiviAOnt3lgNZfvkFNzF86PD2fVGDjE2o1WebXrSK jahqHDL05zOFtmspkJOc5LBrrI+MwK6RKq2ILePG5hCBrd42zwcPMSVrv8pTzd0lJLRRY M3SfAql+Zkck3V92mAkSoyxvhw0WZL5PxUA/MWJqR7w513ra6pBurny8qKR8XMYHMQFyL 7cKWxKeoPqlXN8kFxyJMvepao5FzfZb/1Fwme3OXVt7H2BZV7qqcZgmYz58EWEwsrHtI2 Wm0O+A7ugG9CzMx05XY2YjAWVacgyBAQ5IPHR3h3rhGzTOztlnMWL+WNZY7Tcch5ZRQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794874973; 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=l0rf7L0u8LWAAVJiVYbDdKMPiWuUUvJiPStr+CQ+4Ic=; b=e4Qi4rbUUvlf4H2At6i70eIEcdUQYNy1nSmEXcGwVrAgiczwejudcWRxiBbgqLA6y6D5 +8dE0KMz7tO1T4p7e08sUQi07uoAmPuJu2wN9YHEaXrmyx20J9PKtgEJGj54Wr5oq1HP7 PvbFsC8WVlPF6OMB+bBWdeFjSL+vpe2Q74XMtJ/iEkVd3t2p/E/1CL/WYxyeut0YqQFVY FJP+KrhmIbldguVckBXZhe421LxIqVDJHgRn6gXa5bEAOuXY9jRArzIiJz3R9x4amakW6 JQDItoUMdYEdCifO5ngWMq8vA2mbFY0mVoxk2M1/iONaeDZMYciaxbLKCTp51XIDuWA== 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=PG9SO+Qm; 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 6703B606A323; Tue, 17 Nov 2026 00:22:53 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id A351D1F000C5; Tue, 17 Nov 2026 00:22:52 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794874973; bh=l0rf7L0u8LWAAVJiVYbDdKMPiWuUUvJiPStr+CQ+4Ic=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PG9SO+QmSVJ5eVsQerJGd9gHJxml6DEXuD+z+/OXsDZZAWr930WOlVu6va+RRjrhF pfNSBjKbS8iyPKkGCIvjpKlZVc0ILPvPTeCLQyrkJArJ312cmeLJOBX7wywZEBN9og qi/d7E6aXXI1ZV2+pcVlJadxK+5JRnlsDpxZAOpWy9nwfJxSx0dGd1PmKhNoGL7NkB rXSePIjYl+ysGp3y8kyrKl5XvkGq38ABOPIdOWtt2EyWvF5UgMgQn7+yqvqbAzv7du d29beMWi1SIk+m5bgO/RkW6NGBgbmCnkrbPhGSPcrMBYP95x+PRFeWgs1/CdmyHDdo oroYb+U8qSVcQ== X-Cc: netfilter-devel@vger.kernel.org, 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-In-Reply-To: <20261116001612.2806263-10-pablo@netfilter.org> 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