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)
commitc5b493ce192bd7a4e7bd073b5685aad121eeef82
tree8681dcc4d5fb2a31d72d5c3a5f3f5ba9b8a8a757
parent9a4dda81f1d377ff98e82f019e07a6f2a1db34f3
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: c83b8fab06fc ("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