diff options
author | Eric Dumazet <edumazet@google.com> | 2023-05-09 17:31:31 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-05-10 19:06:49 -0700 |
commit | 5bca1d081f44c9443e61841842ce4e9179d327b6 (patch) | |
tree | 6fec4fcf2fe9fa1d406551fd8097c29a582412f6 /net/unix/af_unix.c | |
parent | cdc2e28e214fe9315cdd7e069c1c8e2428f93427 (diff) | |
download | linux-5bca1d081f44c9443e61841842ce4e9179d327b6.tar.gz linux-5bca1d081f44c9443e61841842ce4e9179d327b6.tar.bz2 linux-5bca1d081f44c9443e61841842ce4e9179d327b6.zip |
net: datagram: fix data-races in datagram_poll()
datagram_poll() runs locklessly, we should add READ_ONCE()
annotations while reading sk->sk_err, sk->sk_shutdown and sk->sk_state.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20230509173131.3263780-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions