Article View: linux.kernel.netdev
Article #25134Re: [PATCH net v3 1/2] netfilter: nf_dup: do not duplicate packets from br_netfilter
From: Florian Westphal
Date: Tue, 01 Dec 2026 09:33
Date: Tue, 01 Dec 2026 09:33
33 lines
8649 bytes
8649 bytes
Paolo Abeni <pabeni@redhat.com> wrote:
> On 12/1/26 03:25, willemb@google.com wrote:
> > Florian Westphal wrote:
> >> netdev-bot+sashiko@kernel.org <netdev-bot+sashiko@kernel.org> wrote:
> >> > [Severity: Medium]
> >> > Does this turn off TEE and nft dup completely for any packet that has
> >> > passed through br_netfilter?
> >> >
> >> > The check runs on the original skb before pskb_copy(). With
> >> > bridge-nf-call-iptables or bridge-nf-call-ip6tables enabled, a rule like
> >> > this one no longer sends any copy:
> >> >
> >> > iptables -t mangle -A PREROUTING -m physdev --physdev-in X \
> >> > -j TEE --gateway G
> >
> >> AI is right BUT I think this 'breakage' is good.
> >> We should absolutely start to break these use cases, little by little.
> >
> > But should we do this in patches with Cc: stable?
> >
> >> I intend to remove nfqueue support for br_netfilter, for instance.
> >> I hope we can remove the entire br_netfilter module by summer 2027.
>
> I agree WRT the stable concern. Also patch 2/2 looks 'delicate'/potentially
> dangerous.
> What about targeting 'net-next' (no stable)?
Thats one option, the other one is to make nf_bridge_info_free() a
small inline helper and use that on the cloned ('sent') skb so it
doesn't retain the bridge information.
Given the number of LPEs I think net-next is fine in any case.
Technical Details
Message-ID:
<aw6UgidD7wqW8cVU@strlen.de>Path:
mbox-mo1.pugleaf.net!srv.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-374906-linux-kernel-netdev=dewy.ruReferences:
<20261124163358.755345-2-theodorlarionov@gmail.com> <179567851468.3135.1445286719198754408@kernel.org> <awfkH91UCnwcR2xO@strlen.de> <willemb.2881d880b8add@google.com> <f62f354b-7b85-40b0-90dc-19154968d77d@redhat.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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-374906-linux-kernel-netdev=dewy.ru From: fw@strlen.de (Florian Westphal) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3 1/2] netfilter: nf_dup: do not duplicate packets from br_netfilter Date: Tue, 1 Dec 2026 10:33:54 +0100 Organization: Usenet Network Message-ID: <aw6UgidD7wqW8cVU@strlen.de> References: <20261124163358.755345-2-theodorlarionov@gmail.com> <179567851468.3135.1445286719198754408@kernel.org> <awfkH91UCnwcR2xO@strlen.de> <willemb.2881d880b8add@google.com> <f62f354b-7b85-40b0-90dc-19154968d77d@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1674804"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:XnJI08yHzWnuVgEW6/zJNeg7kt0= sha256:krTeyoLnZDcGAgyMVevHYAi1BLTUxNoU790+SU7YDtY= sha1:2WCFPLbGFfsAFrsFmMZqkZLV2Yk= sha256:q64EBibXTxQwVhS9uKX4GIcD6HJg6KnJPyJ9XiXTFeE= Content-Disposition: inline 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 03F80117306; Tue, 1 Dec 2026 12:34:14 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.951 X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=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-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 sK4eUwjtD33n; Tue, 1 Dec 2026 12:34:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374906-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=strlen.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 841D31172E4; Tue, 1 Dec 2026 12:34:07 +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 16E9B2E9F4; Tue, 1 Dec 2026 09:34:06 +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=1796117645; b=OLSVjpGGyahODLYdgN+ud7AEVxo+veIj/PaiLMTzxO638lWe7byMZeb15h9BEPvBz4tF GLg3L6PIwTebsnDLqlggFEszpko66Tfhip+vD8+QmcVl0XEt11hsHJfqW+/9CvrqO2aRA o6TZAyDX34XP6rdV5KyyL2GGXpUu9qK+5zasMVeB0dGEMCvInIrbZEmM1sVkS7FfMQS1/ tUwycxZWYkSsoY2S2Fqe3n1pJGiC9wUCHBfxBlR0yfJSV7/4sgXeAbOa4JXzMagnTg8eo Vr89qo+FJbsjpMheV+khR90PlBfPRMZtRvhqi2gWKcr1ANuhnW05b6vnMk9xBNooZwg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796117645; h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject: Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding: In-Reply-To; bh=yrPx73X4pKonL3IHgiJJa/HZIBKbfFW3LnJnWNei74s=; b=tvI/+Evo353iUYrBCwFi4JuykgyBiq1XU5b8Bn4ecCDbXvFU/4f/RyJW/+3yCRWwZrHZ /yPawhV7s+qdlslNWN80kFLlDaXhwpkTa9vGi4A9jQv2Xh25u5TYV2sznCx7WNXIBfP5Q kPFW+maPZLoWa4qIBd/yKmz8HIfQ8SyDv7ty3iCOl/Bv7/2Pb2BZEh45fq19LFpJjDONA Rso6w0t1/DXokuis+JB0Bu1NaCHYvVixHuIE0iPZ3n529eyDu9hC4jhJovc3wHMRMiu5B GxQrZVsyd5ApuPD0GloFdMTBvdDIMGkuLrwOJ/AK+Uvs+J2sI/kPqOR9+gS/q7DmYkg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; 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 AA2EC606A32D; Tue, 1 Dec 2026 09:34:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.216.245.30 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796117645; b=NPWDplJ4cZZqS8mTaNlHxTa+Dpns8ybvTToMBg6vRaAQ72LBdU3riMqqC2MXaryk9M6i IxBzdfUItSYixEvgkDgElqsdbDzPVgZgI31SsXaVjJs31TINv3ibJ5l6PE8pgHnQUYpRQ MUvf9PoKNUncsyS48Kj4TnwiOTMOPFDFD/MxKyGR19I8yg4FCjYyWO5nJB7j992Fxv4ti Ak0rMqASe6aJGcFYzpLv6YJaLGv/a74/1K01PBelCP10aQCtiaC34UW7thHdrVGDy1ImI S/n7JFqzQPqhTC8OB/fI72B6r/2lZti40GkrrhO/epUYoz/0IF/Qb47MLXNkE6347fg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796117645; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=yrPx73X4pKonL3IHgiJJa/HZIBKbfFW3LnJnWNei74s=; b=bC8RhcG5SnozhnKnBax/tF9f6011RWd+49sj0J38/TkxMZh0QL9D5xRf1f/a4sLLzrG/ 64mm6Bi/XOxdqHoQaW9W7M8hya9fuNho0QMbXmbRurYBqZP+nBMrVbDI4LnhD6kkSDWLe t0R9qCDyhjWTE4LVZWgyaV2RS8RtsyAbqbCjmlDnxRIsWlY0CjebfbFcfbeamCon8Bd/N 3Gy8wvxr7w5wqcvxUKmnUItn1vGggcfdhhFc37Zmqe70u9FfWB5fsMInyovI6TCAC3NTh bcgP6ef4iNsieuD+lDtNAYCwoKd2B0OMJL9izt7lP2FTUwcGvF0QvV+Q2HE5TFfsdLQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.remote-ip=91.216.245.30 X-Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE298606A31A; Tue, 1 Dec 2026 09:34:03 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EE298606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de X-Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id C21C060442; Tue, 01 Dec 2026 10:33:55 +0100 (CET) X-Cc: willemb@google.com, netdev-bot+sashiko@kernel.org, theodorlarionov@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, horms@kernel.org, pablo@netfilter.org, phil@nwl.cc, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@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 X-In-Reply-To: <f62f354b-7b85-40b0-90dc-19154968d77d@redhat.com>