]> git.dujemihanovic.xyz Git - linux.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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Jan 2023 05:35:53 +0000 (21:35 -0800)
commit9b663b5cbb15b494ef132a3c937641c90646eb73
treed5dd28e7a9bb8b9fb52c64c19979a6256ba0954c
parent004db64d185a5f23dfb891d7701e23713b2420ee
netlink: annotate data races around sk_state

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