Article View: linux.kernel.netdev
Article #17536Re: [PATCH net-next 06/13] netfilter: nft_flow_offload: do not offload multicast
From: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 00:22
Date: Tue, 17 Nov 2026 00:22
73 lines
10403 bytes
10403 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] Commit "netfilter: nft_flow_offload: do not offload multicast"
fixes a long-standing bug that users can see, but it has no Fixes: tag.
--
netfilter: nft_flow_offload: do not offload multicast
This commit makes nft_flow_offload_skip() skip packets with a multicast
destination address for both IPv4 and IPv6. Before this, IPv4 multicast
stayed out of the flowtable only because the reverse route lookup failed.
IPv6 multicast forwarded by ip6mr could be offloaded and then keep
sending to a stale output.
> diff --git a/net/netfilter/nft_flow_offload.c b/net/netfilter/nft_flow_offload.c
> index d3c5651dd6997..530e20c7fd457 100644
> --- a/net/netfilter/nft_flow_offload.c
> +++ b/net/netfilter/nft_flow_offload.c
[ ... ]
> @@ -33,6 +34,10 @@ static bool nft_flow_offload_skip(struct sk_buff *skb, int family)
>
> if (unlikely(opt->optlen))
> return true;
> +
> + return ipv4_is_multicast(ip_hdr(skb)->daddr);
> + } else if (family == NFPROTO_IPV6) {
> + return ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr);
[Severity: Low]
This isn't a bug, but should this patch carry a Fixes: tag?
Before this change, nft_flow_offload_skip() returned false for IPv6.
Nothing else in nft_flow_offload_eval() rejected a multicast destination,
so IPv6 multicast forwarded by ip6mr reached the flow offload expression
through the FORWARD hook:
net/ipv6/ip6mr.c:ip6mr_forward2() {
...
return NF_HOOK(NFPROTO_IPV6, NF_INET_FORWARD,
net, NULL, skb, indev, skb->dev,
ip6mr_forward2_finish);
...
}
A flowtable entry could then be created for it. That entry keeps sending
to the output it resolved when it was added, even after the last listener
leaves, and the mroute counters stop.
The IPv6 path seems to have been offloadable since the flow offload
expression was added, so the likely target would be:
Fixes: a3c90f7a2323 ("netfilter: nf_tables: flow offload expression")
Most of the other fixes in the same pull request carry Fixes: tags, for
example "netfilter: flowtable: purge entries immediately when destroying
the flowtable" and "netfilter: flowtable: do not clear the offload bit
twice". Without a tag here, stable maintainers have no way to tell which
trees need this fix.
> }
>
> return false;
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261116001612.2806263-2-pablo%40netfilter.org
Technical Details
Message-ID:
<179487496989.3136.17890972366589039395@kernel.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-364853-linux-kernel-netdev=dewy.ruReferences:
<20261116001612.2806263-7-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-364853-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 06/13] netfilter: nft_flow_offload: do not offload multicast Date: Tue, 17 Nov 2026 00:22:49 +0000 Organization: Usenet Network Message-ID: <179487496989.3136.17890972366589039395@kernel.org> References: <20261116001612.2806263-7-pablo@netfilter.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2202615"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:WHgfmYDgwSeKgL1rLU7BMhChx4g= sha256:41VnDPuTjc+GU6U5Ge5AXc6KeeacJeuooABbpvq2Cd0= sha1:+NiXUcr0HDodwmdtvA09ObTV5B4= sha256:XVY2m9qfHalCF/oUVtOpSMUSlHKHLNL5KNV5hTA3yP4= 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 9E3A1114DDA; Tue, 17 Nov 2026 03:23:14 +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 86ax_4cxh67t; Tue, 17 Nov 2026 03:23:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-364853-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id DB4EB114DDC; Tue, 17 Nov 2026 03:22:59 +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 8EE0A23207; Tue, 17 Nov 2026 00:22:52 +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=1794874971; b=hrq+j2SyhXyP+p2JZjFGfDyNApdalpSJzzXHRpg9Y0a2FpDROllI6hIO40lypPv5aYMZ JznUMKttR0FTtFHIQ/g2o8X7OOVZe4dtf4IjjX/l3DxsmzVJMTGr7F9ImQ6PQnkkfyNB+ 7x5EH+OZd50B8fJVbbChjh67xYLB6qo1GPIq/Ylc/nsM6Hd80r6tbL68RdGaXDAYdi/CO IUPYnScUZJ4ch82izhhrkBUIQYgrMAVKoeO0t07SfQS9hzVs56Q1x7FbnyeVFTWS6k5y7 egME7QX949QKpDeuRl6a3Pyw0dC3z+Yeq0a4it/Xb2jqd3CpA+1cbEDxgXICJdGgdBg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794874971; 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=FFAS5+hpUFu+HDChumdbi3A/27UEosuxEmjc8s6XUxg=; b=m8RGImiZlb6bueD3qQssDJQzIQFmyhan53T7vwOMRSfd9QaVEskMX9nBffgo2v8WqDmI EYihBO6ZyRPEQQkyV8eQagLMSsm4P7zGobGuQyve6vbaHK+wB3iz3x0HEDCV3mDMf9eYo W71dpzC85Nh0EHazL6+3Lz1n0p1ry16mIicRRRkb9tzoMtvxdrd0vFN+1M6Y7B2zSTTFq TkXXvmiI4kW/CVBegeqZ8c7AxGtB3OLulKRgWaI3dAChUYF5CQA+vKPi+Pr1SIQvX8957 Fz4F/dqtbQ/6jc7gUXba8KnPAql+0arvayjnsDGswwJkuy0B/6wT5mAQQCZu9/uzR/Q== 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="INp1/cuB"; 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 DB539606A330; Tue, 17 Nov 2026 00:22:51 +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=INp1/cuB 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=1794874971; b=rBJHBNL2MjOPZWrpGSg5Y37AdIBQU6ng2yve1VtJvsSKhJcXn6TwJgsWCb9SdHWXVAtW xO4qY0v6FkcbG3m4ZWFYFwfbpyRVHu7myjDrjMclQyGmFUnlVCsLtZsDGEoL+tEW+LOdS y7pj46p27tXBPDkDIlxkYbbnLo2dCAon2qne5umJmfVm/dZBfzvhaRheW18MrgjOIhT6G M+B0NCZh6GTIh27S2IBatydvkYOPH/qlGvWZfw/aAKcorFHQoir91zhKWq18P9xGyr+t0 aAs1iv7GI6HImAwe6kD3EQr42QiQI+qK7KOo/UfwCrz/LoFv0bSnGsxqhios8mea5Qw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794874971; 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=FFAS5+hpUFu+HDChumdbi3A/27UEosuxEmjc8s6XUxg=; b=RMyYTkNlITLFprnBBu5Oe+9SpI1FmIHiFVqUU7xzkmBlQJo1gmNdoycYKJkAn4OFZ6VG aVK3w7eJ2jD881cJH4nqLUJ/fxjmb6qYqbUwiwy1ImAjFFY87Ea5+XG1qFA0lga/i3jGh zACsk3tE3Wlvajbzw68eiJrgCZANpr4UF7IsLgomTUdoRbv9i9innOPFJ+CtbxQElWd3K BcwkfWBPpi1vL/c/ZUYhdArnjB32XyvKRpbGdo306sfx0eNc3qdMZx94CthuzsvfjQJno g07EXQnj21Cs2kqdkClOTG5/Il5sumQqVqjSB1vACaOD41J+Bh05Hxkw65bN7LnXpuA== 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="INp1/cuB"; 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 08DC6606A334; Tue, 17 Nov 2026 00:22:51 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5517E1F000CA; Tue, 17 Nov 2026 00:22:50 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794874970; bh=FFAS5+hpUFu+HDChumdbi3A/27UEosuxEmjc8s6XUxg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=INp1/cuBh4rlvJkQgV0ctiXe0vzaZYHkrAF0cEhq91WhUhRPETCYKJXF8SgRB7462 J3Q89lXBpuI6eDOcfVg2IeO2Lb23Zb/ghkwtAbylAMRpDlQsOX0Ecr9HruDAfHAmJz RB+dZFssmW1nEvsFX7xwTW9kqxd6UNEtBkTVfnFnMJric7iALr3CCiepgxlFP5+3CF TT9nXAyKpxJ1yGLct42H+LWXIOd7g30HYInenEmmh0QjltgDF+Anv+/OzOKt82GnSr cFpX1qV6R2glApEv823T6Au6ukYZtT6+QGc5zp6kB6+/5VX5LtVTWnFrSr+Ye6ai8K Nmhxld/rAI14A== 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-7-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