]> git.proxmox.com Git - mirror_ubuntu-disco-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 2 Jul 2019 10:07:53 +0000 (12:07 +0200)
commitdcfd147ac5209e4449e18dd42ba969e6897fb557
tree041243f6bf255cbe3250dbaaceeef83e932bacf3
parentb8e03b6a89ce8bc8410c395fcadf78bea98949b3
net: bridge: multicast: use rcu to access port list from br_multicast_start_querier

BugLink: https://bugs.launchpad.net/bugs/1830922
[ Upstream commit c5b493ce192bd7a4e7bd073b5685aad121eeef82 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/bridge/br_multicast.c