mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
af_unix: Annotate data-race of sk->sk_shutdown in sk_diag_fill().
[ Upstream commitefaf24e30e] While dumping sockets via UNIX_DIAG, we do not hold unix_state_lock(). Let's use READ_ONCE() to read sk->sk_shutdown. Fixes:e4e541a848("sock-diag: Report shutdown for inet and unix sockets (v2)") Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bdb5e4fbad
commit
d34d3b3f92
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue