Article View: linux.kernel.netdev
Article #18272Re: [PATCH net] net: bridge: fix skb leak of reinjected link-local frames
From: patchwork-bot+netdevbpf
Date: Wed, 18 Nov 2026 02:50
Date: Wed, 18 Nov 2026 02:50
30 lines
9097 bytes
9097 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 15 Nov 2026 23:32:11 +1030 you wrote:
> br_handle_frame() passes the link-local frames it neither forwards nor
> delivers (01:80:c2:00:00:02 to 0d and 0f, unless set in the group
> forward mask) through NF_HOOK() at NF_BR_LOCAL_IN. Since commit
> 3b2e2904deb3 ("net: bridge: fix per-port af_packet sockets") the okfn
> only learns the source and returns 1, which becomes RX_HANDLER_PASS.
>
> That commit sent the nf_queue case to RX_HANDLER_CONSUMED, which is
> right for the synchronous return, but the frame comes back: on
> reinjection nf_reinject() calls the okfn and ignores its return value,
> because every other okfn consumes the skb. This one no longer does, so
> nothing frees the frame. NFQA_CFG_F_FAIL_OPEN leaks it the same way
> with no verdict at all, when the queue or the listener's socket is full.
>
> [...]
Here is the summary with links:
- [net] net: bridge: fix skb leak of reinjected link-local frames
https://git.kernel.org/netdev/net/c/98382d41f92f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179497020578.1430642.1274657276624361229.git-patchwork-notify@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-365831-linux-kernel-netdev=dewy.ruReferences:
<20261115130211.7724-1-danjwade95@gmail.com>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-365831-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: bridge: fix skb leak of reinjected link-local frames Date: Wed, 18 Nov 2026 02:50:05 +0000 Organization: Usenet Network Message-ID: <179497020578.1430642.1274657276624361229.git-patchwork-notify@kernel.org> References: <20261115130211.7724-1-danjwade95@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2487360"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ja6eInRAkn+/SYnbAi3E7WAn3DI= sha256:YDmThgDL2SSM/qFb9MRNp6P/6y0/aIzwM3t8oLoYxjE= sha1:tX7r5I3ih0wwA2YKC9LbXuelYTI= sha256:xUJaV4f4egfjeXmuZL1mCkZ3nnr1QtZLbsPTofFFgnA= 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 BFF3711516F; Wed, 18 Nov 2026 05:50:23 +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 PzmgJmlX4zQP; Wed, 18 Nov 2026 05:50:20 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365831-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 C2ED3115159; Wed, 18 Nov 2026 05:50:11 +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 DE8D037198; Wed, 18 Nov 2026 02:50:08 +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=1794970208; b=dGyD8j2SG7j6uMaYl8yMmaLrlp78bmLEAcNtapX1Wn0LB2ZTSDJ8B4DTQtxP/mvXtDVH XBpm/ynaXerIYEIl7U1saex6zxcY8ObS0sw2qlRnMLhhSpBjawzQFAOG8y+kFcFjjfm8j BmNi1uVkgb4bycXrm/tGrFwulSIatg6xVWDPh4r3pCmGqe0rjdaGzrB5njE7/dksscVkf gzMNxW2jFrqn1zVJXncLgJYeLMuvT3oxaWfib7HuOJl2uCN111jt3bDSdU+74EW5itmO8 MB79vXWAF94pPiCva16mPFG85wAZu3l2fp2gZaxkPc9+PK592QpGBLBWM7caLi+oOYQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794970208; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=dzhVr7ooy4NmV1PPNADeNTmJcEBZPbMvTHOVGSY5ZGk=; b=vVh4/N0JVrxtxcMKOo47vtKCFPTZZsnb7CAwQSt9KNOB2pqaX3qVglQ6pcrYXq6RjHNR cf3yMGSLqOaFZ+ipLMgVvr8fH8e9+SmxCfSUshPHu5aNev2a2N63fvNsKkM1u9kDZutrj GpbC5sDq9xML5tzTjwvrQ4UNQSTD+knYlOAmQlq0F8PZIKIaEC5QoTYj85Z7GSYyEYtf+ zmtl12w7BrnM2ZlNWHkCRxP62gcIcVmRQYU/XBVLVecG0tw4tj3Au3LEzjb0fewZwemqm dAfeeqZG6Dm+6DGWNF9je3HFJ5y9uMJ0uKGKtAyjHzYuzLKC1buYCyUW1+F55J4jA4Q== 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=Iw1vZ4S3; 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 B5AF0606A332; Wed, 18 Nov 2026 02:50:08 +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=Iw1vZ4S3 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=1794970207; b=VlL6X/pwtUrkdtUdflObelLFQ0Qiw+1lbgn4WCe6ahNKuH7G25biaQsN3+/T+Eg8En/x s5+5K2ZhK20wt1Qms66T2BIxBwZS9PM2M5fGu+Ua10giuRMjuxAMA0T98AELPg6qtTHKS RBZDj3cWRPzZsyyyEDT4qc5204PBugNPMJwV6Qp4jf7dqWM4oQccxpZWDOZgolr576xyP A2V8f0qQHOm0l/oO4sUkPvnWbNbk0M6Zc++4ye8ILhJtQp9ZB04wTpbSXTaJnC8p0MV6v SCv4jUfxgVYqvVcO+suwibl8wn7gwBrWC+RdMaU+j2b1guTr6NmWWvvXSxIgnKR5RFA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794970207; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=dzhVr7ooy4NmV1PPNADeNTmJcEBZPbMvTHOVGSY5ZGk=; b=1YW5EoCn9+PWoJWKEdi37+RWSrGU+QH8jJ7O4MRqPPfXraF4PxvI/oIv2fWBXUvFOPdD V0u36h0EWB5DWUe66fdb38da4d9dhXYd50N2uLHwenKCAlN1zOgGGLuzm572R3AdKL/9W 5q0t33zKaqB9B84iKGk1+EJe+CuVjdABo8kFFsDu1pw/yrnJYupr7LDcNY2lHou6UtaHv NqHeEQtn6BHGFPemjqwVa6HzRq/20k2iBI6B8TJW5RoVdwcrXgn3XYpoO4pr5qbJ2y8IK Ngg1wyWxF7CqwQ93EfdMaIb+5or0C0F659MVhzUxMuEUqw2syPoIKsUFhAODu4IR9IA== 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=Iw1vZ4S3; 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 D4538606A31C; Wed, 18 Nov 2026 02:50:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 097501F000C4; Wed, 18 Nov 2026 02:50:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794970207; bh=dzhVr7ooy4NmV1PPNADeNTmJcEBZPbMvTHOVGSY5ZGk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=Iw1vZ4S3/CRkf1mYAuT9nXZY6/P8NAT+0CoIOge0mliGxX860kOhqYgFQpFP+rE+l cDamF2B7g4qdqt/WTVIrd4PV5KiYMzLI/ZdiaN7kAP9bUkleOAowqEvm1MQJBmjLY7 dWxMHBDCrwhZcPlvyzX7dD6qRr/vA5/gNl5cJG/UCWbAEOdc04nM3HpIB0z/5UFK5J zClTwZy7pRxNwNClDuYpumdqTFUR7pBq213b7op1VguEQEVUjAL/VQfYOal/CtbPgK pFvYlfdY4PCYUULkpMROp1Jx5jzb+aNPal9XAwjTSpFhtLCjzBw6f77kLUwJ3OJSlI j6gINp+57VB1A== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id F1556392B1FF; Wed, 18 Nov 2026 02:50:06 +0000 (UTC) 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: <20261115130211.7724-1-danjwade95@gmail.com> X-Cc: razor@blackwall.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, bridge@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org