Skip to content

net: bridge: multicast: fix automatic router port marking races

Nikolay Aleksandrov bridge netdev stable 1 version Applied

Status from this message: This series was applied to netdev/net.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: bridge: multicast: fix PIM hello router port marking racenet/bridge/br_multicast.c+2 -00 repliesApplied
2/2net: bridge: multicast: fix MRD advertisement router port marking racenet/bridge/br_multicast.c+4 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] net: bridge: multicast: fix automatic router port marking races

From: Nikolay Aleksandrov <[email protected]>

Hi,
While working on per-vlan multicast snooping I found two race conditions when multicast snooping is enabled. They're identical and happen when the router port list is modified without the multicast lock. One requires a PIM hello message to be received on a port and the other an MRD advertisement. To fix them we just need to take the multicast_lock when adding the ports to the router port list (marking them as router ports). Tested on an affected setup by generating the required packets while modifying the port list in parallel.

Thanks,
Nik

Nikolay Aleksandrov (2):
net: bridge: multicast: fix PIM hello router port marking race
net: bridge: multicast: fix MRD advertisement router port marking race

 net/bridge/br_multicast.c | 6 ++++++
 1 file changed, 6 insertions(+)
Signature · 1 line
2.31.1