mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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:c9da99e647("unix_diag: Fixup RQLEN extension report") Fixes:2aac7a2cb0("unix_diag: Pending connections IDs NLA") Fixes:45a96b9be6("unix_diag: Dumping all sockets core") Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
af4c733b6b
commit
0aa3be7b3e
1 changed files with 4 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue