Files
linux-stable-mirror/net
Eric Dumazet 70f5ab8e46 netlink: hold nlk->cb_mutex longer in __netlink_dump_start()
[ Upstream commit b559027006 ]

__netlink_dump_start() releases nlk->cb_mutex right before
calling netlink_dump() which grabs it again.

This seems dangerous, even if KASAN did not bother yet.

Add a @lock_taken parameter to netlink_dump() to let it
grab the mutex if called from netlink_recvmsg() only.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-04 13:23:25 +02:00
..
2024-08-19 05:45:36 +02:00
2024-06-16 13:39:33 +02:00