From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387173; b=0arcpfkRGoWeCodU4ocOwdkQl4UoiHMT/oFmlvrS5koVyQNszFIewX46FalpK5KWFID1 H6Q/rh8s+vGb7oh8IXEsUSRv3BOCoZlYEWSD5JYVr1a+q5CVoZjJqJUjwYNDOTi4P6Rit 29oWxGlhJtTga6D+PgLjW+zdfqTSpdx3ruhGN/BuHvN80iwe1vmuKodoAxSEks2RPSkl+ Xyy/uX+BJMxqmS70TJ+b+4ybLn4X+udJ7LenTxC6vsXlgQxrPH0Op/PwzKPHNXOKPGPmm LeF4sauKI9tYXYUCe1lnBcsfXlB/CxyglHUvjDaXDTepJgHTTWon1gERyeqTcb4bDOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387173; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=mvfUkUrB2kaBT7y3YUVT/LZ8A7n8xNe6HdscuoHm6s4=; b=RheVzXQUqsBLTBuV2j1qzWezh4YFVwpypDJxmsAMyj5O6xTwnIbjP4yOClbieaTpTswh UjU2//qoKgkCt2wdP6VqffvTu/wgkRcqbwJsSh7q7xB5U8oNcO+XLcylqRgaf7DC88TGT xFKvFNwxx2ekSDqlANmwV8m1NNqGaFFi6rcLr6jLlw/yoLOeSv7V63FgqMz6+kEmb6005 3ShbYGe4CL4MIyULIlgqAn+VeGT4Vd+HztA6tOhhgpFHqxKd0is8vg/q3PHvGmihQlQ4U rJSuncA8UmqNBidabVwkSoI8CISy9buDChojxrasBuFu03n9/IqTZDGGV2xaFU8V0pw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=DI+MTgbP; arc=none smtp.remote-ip=100.103.45.18 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 DC9E0606A322; Fri, 4 Dec 2026 12:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=DI+MTgbP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CC041F000C2; Fri, 4 Dec 2026 12:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387173; bh=mvfUkUrB2kaBT7y3YUVT/LZ8A7n8xNe6HdscuoHm6s4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DI+MTgbPco9Pp8fK4vUFT2AbZpL1/5umnVonSAGsb1+zU+FiWs70T995sKLzjyxRV ywfPd3lt42mnCCTOSDY1xcMZUDBAyxVspX/kCksH7HvEp8C0XryHXNFq89tS7m/TG2 jMJjWcalQmf+hdrracuTFnFaOyu5JkVZwe5IiMW4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Laveesh Bansal , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 6.1 0132/1059] netfilter: bridge: use DEBUG_NET_WARN_ON_ONCE in nf_ct_bridge_refrag() Date: Fri, 4 Dec 2026 18:54:23 +0900 Message-ID: <20261204100647.640052144@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Laveesh Bansal [ Upstream commit 683ff28ab18accb25268741a724645eee839d41a ] nf_ct_bridge_refrag() warns when skb->protocol is neither IPv4 nor IPv6. A vlan filtering bridge can get there with a vlan ethertype: if the protocol of the tag of a frame differs from the vlan_protocol of the bridge, br_allowed_ingress() moves the tag back into the packet after NF_BR_PRE_ROUTING, where bridge conntrack has already defragmented it. Anyone who can send fragments into a port of such a bridge can trigger the warning, which takes the machine down with panic_on_warn. The packet is dropped either way, so only warn on kernels built with CONFIG_DEBUG_NET. This only avoids the warning. Such fragmented packets are still dropped. syzbot reported the warning. It keeps triggering on CONFIG_DEBUG_NET kernels until the vlan tag is handled, which is left for a follow-up: https://syzkaller.appspot.com/bug?extid=a8ba738fe2db6b4bb27f Fixes: 3c171f496ef5 ("netfilter: bridge: add connection tracking system") Assisted-by: LLM Signed-off-by: Laveesh Bansal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/bridge/netfilter/nf_conntrack_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/netfilter/nf_conntrack_bridge.c b/net/bridge/netfilter/nf_conntrack_bridge.c index 10b8134c22e40..e73477f5a83d2 100644 --- a/net/bridge/netfilter/nf_conntrack_bridge.c +++ b/net/bridge/netfilter/nf_conntrack_bridge.c @@ -359,7 +359,7 @@ nf_ct_bridge_refrag(struct sk_buff *skb, const struct nf_hook_state *state, nf_br_ip6_fragment(state->net, state->sk, skb, &data, output); break; default: - WARN_ON_ONCE(1); + DEBUG_NET_WARN_ON_ONCE(1); return NF_DROP; } -- 2.53.0