diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-09 21:12:48 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-13 04:38:52 +0300 |
commit | 9f30831390ede02d9fcd54fd9ea5a585ab649f4a (patch) | |
tree | 70b567aaec747d3817da0e850aacc8967d2e9ae8 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3e36031cc0540ca97b615cbb940331892cbd3d21 (diff) | |
download | linux-9f30831390ede02d9fcd54fd9ea5a585ab649f4a.tar.xz |
net: add rcu safety to rtnl_prop_list_size()
rtnl_prop_list_size() can be called while alternative names
are added or removed concurrently.
if_nlmsg_size() / rtnl_calcit() can indeed be called
without RTNL held.
Use explicit RCU protection to avoid UAF.
Fixes: 88f4fb0c7496 ("net: rtnetlink: put alternative names to getlink message")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240209181248.96637-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions