aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-06-04 16:52:35 +0000
committerPaolo Abeni <[email protected]>2024-06-06 10:57:15 +0000
commit0aa3be7b3e1f8f997312cc4705f8165e02806f8f (patch)
treea8b4eb18a920cabd991a98032090ec8ca9f61f65 /net/unix/af_unix.c
parentaf_unix: Annotate data-race of sk->sk_state in unix_stream_read_skb(). (diff)
downloadkernel-0aa3be7b3e1f8f997312cc4705f8165e02806f8f.tar.gz
kernel-0aa3be7b3e1f8f997312cc4705f8165e02806f8f.zip
af_unix: Annotate data-races around sk->sk_state in UNIX_DIAG.
While dumping AF_UNIX sockets via UNIX_DIAG, sk->sk_state is read locklessly. Let's use READ_ONCE() there. Note that the result could be inconsistent if the socket is dumped during the state change. This is common for other SOCK_DIAG and similar interfaces. Fixes: c9da99e6475f ("unix_diag: Fixup RQLEN extension report") Fixes: 2aac7a2cb0d9 ("unix_diag: Pending connections IDs NLA") Fixes: 45a96b9be6ec ("unix_diag: Dumping all sockets core") Signed-off-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions