Eric Dumazet 9f30831390 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>
2024-02-12 17:38:52 -08:00
..
2023-11-28 15:48:39 +01:00
2024-01-08 10:26:08 -08:00
2024-01-11 10:07:29 -08:00
2022-11-21 20:36:30 -08:00
2024-01-21 18:09:30 +00:00
2022-12-12 15:04:39 -08:00
2023-12-13 16:16:40 -08:00