Article View: linux.kernel.netdev
Article #15611[PATCH net-next 02/15] netfilter: flowtable: fix pmtu discovery in nf_flow_tunnel_ip6ip6_push()
From: Pablo Neira Ayuso
Date: Fri, 13 Nov 2026 03:12
Date: Fri, 13 Nov 2026 03:12
37 lines
9471 bytes
9471 bytes
From: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
nf_flow_tunnel_ip6ip6_push() invokes skb_scrub_packet() before updating
the PMTU. skb_scrub_packet() drops the skb dst, so
skb_dst_update_pmtu_no_confirm() finds no dst and the PMTU update is
silently lost.
Move the PMTU update before skb_scrub_packet() so the inner route is
updated with the MTU advertised by the tunnel dst, as done in
ip6_tnl_xmit().
Fixes: 93cf357fa797 ("netfilter: flowtable: Add IP6IP6 tx sw acceleration")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
net/netfilter/nf_flow_table_ip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c
index 19cafae748ab..644e70fd6773 100644
--- a/net/netfilter/nf_flow_table_ip.c
+++ b/net/netfilter/nf_flow_table_ip.c
@@ -699,10 +699,10 @@ static int nf_flow_tunnel_ip6_push(struct net *net, struct sk_buff *skb,
if (err)
return err;
- skb_scrub_packet(skb, true);
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_push(skb, sizeof(*ip6h));
skb_reset_network_header(skb);
--
2.47.3
Technical Details
Message-ID:
<20261113031251.2437074-3-pablo@netfilter.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-362386-linux-kernel-netdev=dewy.ruReferences:
<20261113031251.2437074-1-pablo@netfilter.org>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-362386-linux-kernel-netdev=dewy.ru From: pablo@netfilter.org (Pablo Neira Ayuso) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next 02/15] netfilter: flowtable: fix pmtu discovery in nf_flow_tunnel_ip6ip6_push() Date: Fri, 13 Nov 2026 04:12:38 +0100 Organization: Usenet Network Message-ID: <20261113031251.2437074-3-pablo@netfilter.org> References: <20261113031251.2437074-1-pablo@netfilter.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1281022"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:NEli4JJb8bJiT8BTFwq79Pl8Ps4= sha256:m+IME80Que2N485+0sN/KuncMssC8nEYUDwIZO1baHM= sha1:/FQP/A/gHnEdMqycLnE0WwJq/lo= sha256:ubFZchMbMt5tF50NTx0Db5Np5F/Zqa7HJHYBFfZgIVQ= 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 2A62B1144A9; Fri, 13 Nov 2026 09:30:38 +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 6D2hussLcPpa; Fri, 13 Nov 2026 09:30:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362386-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id A59F9114499; Fri, 13 Nov 2026 09:30:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 29A9B107D69; Fri, 13 Nov 2026 03:13:14 +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=1794539582; b=JGoOILQS17VjzqwXtffKQuItFtayrhA+sSzeyB0ELQN/5RspZxX5UxqaIESciztyufdv nFPhuG4dc/rZErrXE4CCYfymo/VLK5bygDIIpgWJSjzBqbh6RwBMbj2GDANyYGMkkmITX lzoMnL4sOVEe5ggXEhUdsNnxibp7QQ//osmopF3mg9Au/UEAwkitGt4lRZsKJ+mj3lhOM lxZdsyD6rfJh0lbqo6cYBznJCSSeX1Htl1vcrggpu9p2t8Tg0xPMEMk81iTdhT+VmWzz+ YifJvJOeIRkzBuHqRNkA8Vp8AzD0N0HmMKwE7uOChnTYSaZZHiX/daoZxAl+J1HHmsQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794539582; 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=VwXdHxOfjvzzynD1vM7dDHln5nJMoyIHrViPYcVmOAE=; b=4GV214c+7w1v9F3d1G2hBgjYV2ANXCwZvWIGImQ0NlIKQAKfFOJTjGVXsk1AIBPmP5tQ 4Rpt/SXrL4w4KIOvWacxNyzDNCMoTWD/v+DaJe/dMNalIDwHj2Mxq7nG3ZjKkpBkN+wia jY9ndhuvFDlNvqPmOgerVNvC9WeNkAD90ueYZc0INLzpC+JtzxWLJezAoS7OZD3PwE4eF 8mi9PN77aEh1KKaevCRNfOCR84KKw3PJHEmuzmbgfQQGBeMZSB9SSHtaP5A2626pJkOpw 9jN9BGi0yd7Pof0fAyD0k0mZYCjrPgi5ZXXeo1ghgTl464KCJ57Afq8AAyQ0/TJIfVA== 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=DIovl3Sk; 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 2B3A4606A88D; Fri, 13 Nov 2026 03:13: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=DIovl3Sk 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=1794539581; b=CXWp/CUvWkWSSvxVGOzehKB8d5lKnNX+oOPQ8tFRmgJn3P49eXitPUAdkRHtcE1Y6JFe akcEexXD9olIuSicbzJIORgiutGDGc9fzcvZGnYGKV7ypXVnoNXRn5RU46KQ5Rr9iM6wS OlQHiGaW+pD/ZkaWvrc3nnwv2RwWUELga5Y+Lm1XBQMdv5kesv9EhlC5J9DJEUaUHcqd7 cKgIPJiEjgtbj5D28vMP8RNQ1HguvAz1/45CqtcERH+TujHQE/IHeFokAW6B3ZLyYJuPf q7U42P3MUet/AXmgmXq2opcrSB3grxDzJcDAM8IlggZdS0ZORTOr8F1sxRW7l+AvzQg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794539581; 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=VwXdHxOfjvzzynD1vM7dDHln5nJMoyIHrViPYcVmOAE=; b=Dn+2nrFDQKrtiNq9ga8VPS9XghL+cNwxNtGPRO1/jQaUPo8EW4mwabVL67lhil8V3IoH dnToTLcEwnVjbp+Ucf9g3QbVvZzjztcW3jgm2fZhJKjvO1Y8KizVtnGLOP4wRsVI9alNd QI9u+h5mZ+vrLvJZKAdalNRAyGlecwMJ6hmaHhdHoNc5OVDMJ+f2Sdhqnx7FAtEHB7ZHf RVSTZf0rrmnbsKqsZKM299Dmy9NZHdg+KcnOIPwha60wHdE9wooIVNApZnPtApfuIQ2Ak GLUxrpesQHjjrXG9WI2O8/jKtwLojQUv14YM6GWeb2jOEaa6TNOkpO7+ZYPHab7afng== 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=DIovl3Sk; 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 D5162606A883; Fri, 13 Nov 2026 03:13:00 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D5162606A883 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=1794539579; bh=VwXdHxOfjvzzynD1vM7dDHln5nJMoyIHrViPYcVmOAE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DIovl3Sk1UzsB3L2t+V0y09VzZ7e5fvtQYZjyyQwaLVjSXqKopwZRIFk9F8GhuLPy +KGmHhD0Q5q8eqPQwQKyp/h75GHQKBno8JPMbTYWQGgfV9Qclzu2cE6W2aSRPZ8+x4 eZaIH8QAU6JpuvdSvzIkUyP2ZN3NNv1npeXihlpvkA1RvPspuZl1AUnGZVFD5qb1bl 4ZlYUeMZNNN6tENbr517fda19aW7g25FZfEm4hW0KUG9APtFbwq5je99ZSlAzZLisg PL4AQ6X7Xm4jB6elm8YRjRAWjSMiSCzzSTTZB4k+oCuPtDyM+wvHZqaFwGKTGoZj+B T9IBaGefG35qQ== X-Received: from localhost.localdomain (mail-agni [217.70.190.124]) by mail.netfilter.org (Postfix) with ESMTPSA id 9486E602A6; Fri, 13 Nov 2026 04:12: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: <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