]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: multicast: use rcu to access port list from br_multicast_start_querier
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Thu, 11 Apr 2019 12:08:25 +0000 (15:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 18:13:51 +0000 (11:13 -0700)
commitd4a8e8de543a40cafd4c52aaca1cce11852da9db
tree8681dcc4d5fb2a31d72d5c3a5f3f5ba9b8a8a757
parent3937ca03249e342e6fb6d96f6b0684d0a70f881d
net: bridge: multicast: use rcu to access port list from br_multicast_start_querier

br_multicast_start_querier() walks over the port list but it can be
called from a timer with only multicast_lock held which doesn't protect
the port list, so use RCU to walk over it.

Fixes: 3497905d97b5 ("bridge: Restart queries when last querier expires")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c