netlink: annotate data races around dst_portid and dst_group
authorEric Dumazet <edumazet@google.com>
Fri, 20 Jan 2023 12:59:54 +0000 (12:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:44 +0000 (08:34 +0100)
commit13edec44a5f52cb52e31520edab3df392650584c
tree9de765a6d9b5375ad6f64334152ae8bb4cee7a2f
parentb181c31fe893adaa18a607f337aff2fe0b557ddf
netlink: annotate data races around dst_portid and dst_group

[ Upstream commit 004db64d185a5f23dfb891d7701e23713b2420ee ]

netlink_getname(), netlink_sendmsg() and netlink_getsockbyportid()
can read nlk->dst_portid and nlk->dst_group while another
thread is changing them.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netlink/af_netlink.c