]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 6 Feb 2023 06:52:45 +0000 (07:52 +0100)
commita048d790fa521be2c9b760aa7ce9e984820fdb02
treede650e453aa1e478683329afebb45d3018b71a2c
parent3c5f649bd9070330e9dab18f1446cb6f632ba006
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