kernel_samsung_a53x/net/unix
Kuniyuki Iwashima 5be46a8247 af_unix: Annotate data-race of sk->sk_shutdown in sk_diag_fill().
[ Upstream commit efaf24e30ec39ebbea9112227485805a48b0ceb1 ]

While dumping sockets via UNIX_DIAG, we do not hold unix_state_lock().

Let's use READ_ONCE() to read sk->sk_shutdown.

Fixes: e4e541a84863 ("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>
2024-11-19 14:19:01 +01:00
..
af_unix.c af_unix: Use unix_recvq_full_lockless() in unix_stream_connect(). 2024-11-19 14:19:01 +01:00
diag.c af_unix: Annotate data-race of sk->sk_shutdown in sk_diag_fill(). 2024-11-19 14:19:01 +01:00
garbage.c af_unix: Suppress false-positive lockdep splat for spin_lock() in __unix_gc(). 2024-11-19 11:32:38 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scm.c af_unix: Do not use atomic ops for unix_sk(sk)->inflight. 2024-11-19 11:32:20 +01:00
scm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysctl_net_unix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00