]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bridge-mc-fixes'
authorDavid S. Miller <davem@davemloft.net>
Sun, 11 Jul 2021 19:11:06 +0000 (12:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jul 2021 19:11:21 +0000 (12:11 -0700)
commit61822d7d23ee99e5b295e26ffa37add1cb234cc3
tree874050214468ea62e59bb2d03071d7e9611d6c4f
parentbf0b5db7eb1dc443a88309cbcced89ecf1cc6be7
parentf43a5cf00a52cf5ee4b7740805278c06008c97d5
Merge branch 'bridge-mc-fixes'

Nikolay Aleksandrov says:

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

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>