From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88F07242935; Fri, 17 Oct 2025 15:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760714233; cv=none; b=F37lyIu/ItzNdvurUSN5LCMCImcvCzD+ENApqjpvzwuSgWtczfSzUk85B/QDJ70J8ZyRP8XXldvOGba/FY0+v2JUVqfaJCpKwky19G5TNfX7VSrKV7TxLgqeDhhiJJczanxr2MiHvjaub6Qrwv/3xb0cEZO555uPkC0VQWCK8iU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760714233; c=relaxed/simple; bh=Yuf2+TiE8+jXWYl39TGWsLfqRsBUuADy5rEIbVeGu/k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PTG4BbUHF/yd6Ozqm8tdbCjPF/q9gXhu++kt8AO4DDA4XDKohJWpVHu63rV/UNcOAyPH/pPGEJ8lnZGcxdINMQbB2FDrfuF5Fjx2gzKQpI3vbZAm6o+OrxL4NBpPDq1NZTWW6ieC8h9uxbSe9QODv88U1HeqVIz5SBebCjkUhBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x/nGsSYi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x/nGsSYi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CB68C4CEE7; Fri, 17 Oct 2025 15:17:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760714233; bh=Yuf2+TiE8+jXWYl39TGWsLfqRsBUuADy5rEIbVeGu/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x/nGsSYiNH45r0KwEMDiZ7qWP3Sp6HB3NfozOzxUheSsA/6FPyQ2oit3Jf2vXZcBa DUXPCuSvekGcD9Rl9XpJlOmEeQcmYCrHjaW7FCfdmHRwpm4xW8xgDwWtMJ5kJVaJlG JYGvJX7jAxiGESejISyDCn7eAL3tnQ6ZmfTfHwBo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Eric Woudstra , Florian Westphal , Sasha Levin Subject: [PATCH 6.12 074/277] bridge: br_vlan_fill_forward_path_pvid: use br_vlan_group_rcu() Date: Fri, 17 Oct 2025 16:51:21 +0200 Message-ID: <20251017145149.841901979@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145147.138822285@linuxfoundation.org> References: <20251017145147.138822285@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Woudstra [ Upstream commit bbf0c98b3ad9edaea1f982de6c199cc11d3b7705 ] net/bridge/br_private.h:1627 suspicious rcu_dereference_protected() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 7 locks held by socat/410: #0: ffff88800d7a9c90 (sk_lock-AF_INET){+.+.}-{0:0}, at: inet_stream_connect+0x43/0xa0 #1: ffffffff9a779900 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x62/0x1830 [..] #6: ffffffff9a779900 (rcu_read_lock){....}-{1:3}, at: nf_hook.constprop.0+0x8a/0x440 Call Trace: lockdep_rcu_suspicious.cold+0x4f/0xb1 br_vlan_fill_forward_path_pvid+0x32c/0x410 [bridge] br_fill_forward_path+0x7a/0x4d0 [bridge] Use to correct helper, non _rcu variant requires RTNL mutex. Fixes: bcf2766b1377 ("net: bridge: resolve forwarding path for VLAN tag actions in bridge devices") Signed-off-by: Eric Woudstra Signed-off-by: Florian Westphal Signed-off-by: Sasha Levin --- net/bridge/br_vlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index f2efb58d152bc..13d6c3f51c29d 100644 --- a/net/bridge/br_vlan.c +++ b/net/bridge/br_vlan.c @@ -1455,7 +1455,7 @@ void br_vlan_fill_forward_path_pvid(struct net_bridge *br, if (!br_opt_get(br, BROPT_VLAN_ENABLED)) return; - vg = br_vlan_group(br); + vg = br_vlan_group_rcu(br); if (idx >= 0 && ctx->vlan[idx].proto == br->vlan_proto) { -- 2.51.0