neighbour: fix neigh_master_filtered()
authorEric Dumazet <edumazet@google.com>
Sun, 21 Apr 2024 18:57:53 +0000 (18:57 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Apr 2024 02:04:50 +0000 (19:04 -0700)
commit1c04b46cbdddc7882eeb671521035ea884245b9f
treec03158f6b37510e28670d38d60a5e1188efc76f3
parent8d03c1534d4ae136fd2c9e27f026157cb244b212
neighbour: fix neigh_master_filtered()

If we no longer hold RTNL, we must use netdev_master_upper_dev_get_rcu()
instead of netdev_master_upper_dev_get().

Fixes: ba0f78069423 ("neighbour: no longer hold RTNL in neigh_dump_info()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240421185753.1808077-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/neighbour.c