]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: annotate data races around sk_state
authorEric Dumazet <edumazet@google.com>
Fri, 20 Jan 2023 12:59:55 +0000 (12:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:45 +0000 (07:52 +0100)
commitc2f59dc7b2ecdf3bc0f72875b6ab3d4e6f02453f
treea1697521ad7b4c4d21aa475bad66208b8364dc6b
parenta048d790fa521be2c9b760aa7ce9e984820fdb02
netlink: annotate data races around sk_state

[ Upstream commit 9b663b5cbb15b494ef132a3c937641c90646eb73 ]

netlink_getsockbyportid() reads sk_state while a concurrent
netlink_connect() can change its value.

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