diff options
author | Paolo Abeni <pabeni@redhat.com> | 2024-11-24 16:40:57 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-11-28 10:23:18 +0100 |
commit | f1553c9894b4dbeb10a2ab15ab1aa113b3b4047c (patch) | |
tree | 049c4aac59b98105b211c0cfd0cf0e2c1446c927 /net/ax25 | |
parent | 11b6e701bce96f98474084f26821157cb0dccf69 (diff) |
ip6mr: fix tables suspicious RCU usage
Several places call ip6mr_get_table() with no RCU nor RTNL lock.
Add RCU protection inside such helper and provide a lockless variant
for the few callers that already acquired the relevant lock.
Note that some users additionally reference the table outside the RCU
lock. That is actually safe as the table deletion can happen only
after all table accesses are completed.
Fixes: e2d57766e674 ("net: Provide compat support for SIOCGETMIFCNT_IN6 and SIOCGETSGCNT_IN6.")
Fixes: d7c31cbde4bc ("net: ip6mr: add RTM_GETROUTE netlink op")
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions