Thread (3 messages) flat view 3 messages, 3 authors, 1d ago

Re: [PATCH net v3] net: bridge: mcast: don't truncate the port group walk on teardown

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-03 01:31:07
Also in: bridge, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Mon, 31 Aug 2026 19:13:04 +0800 you wrote:
__br_multicast_disable_port_ctx() and br_multicast_del_port() walk
port->mglist with hlist_for_each_entry_safe(). However,
br_multicast_find_del_pg() can also delete other entries from the same
list through br_multicast_fwd_src_remove() or __fwd_del_star_excl().

If such an entry is the iterator's saved next node, hlist_del_init()
clears its ->next and terminates the walk early. The reproducer triggers
this in both teardown walks, leaving port groups in the bridge mdb with
a dangling ->key.port after del_nbp() frees the port:

[...]
Here is the summary with links:
  - [net,v3] net: bridge: mcast: don't truncate the port group walk on teardown
    https://git.kernel.org/netdev/net/c/5a3f7a683aee

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help