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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Jan 2023 05:35:53 +0000 (21:35 -0800)
commit004db64d185a5f23dfb891d7701e23713b2420ee
tree18367904d8bc5f54706633c4d783374b5bba3bc6
parentc1bb9484e3b05166880da8574504156ccbd0549e
netlink: annotate data races around dst_portid and dst_group

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>
net/netlink/af_netlink.c