linux-stable/net/netlink
Eric Dumazet 59285cbb04 netlink: convert nlk->flags to atomic flags
[ Upstream commit 8fe08d70a2 ]

sk_diag_put_flags(), netlink_setsockopt(), netlink_getsockopt()
and others use nlk->flags without correct locking.

Use set_bit(), clear_bit(), test_bit(), assign_bit() to remove
data-races.

Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 11:14:21 +02:00
..
af_netlink.c netlink: convert nlk->flags to atomic flags 2023-09-23 11:14:21 +02:00
af_netlink.h netlink: convert nlk->flags to atomic flags 2023-09-23 11:14:21 +02:00
diag.c netlink: convert nlk->flags to atomic flags 2023-09-23 11:14:21 +02:00
genetlink.c netlink: support extack in dump ->start() 2023-06-12 11:32:44 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile netlink: add infrastructure to expose policies to userspace 2020-04-30 17:51:42 -07:00
policy.c net: genl: fix error path memory leak in policy dumping 2022-08-18 10:20:48 -07:00