android_kernel_motorola_sm6375/net/unix
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kuniyuki Iwashima ba387948b7 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: 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>
2024-07-05 09:08:12 +02:00
..
af_unix.c af_unix: Use unix_recvq_full_lockless() in unix_stream_connect(). 2024-07-05 09:08:12 +02:00
diag.c af_unix: Annotate data-race of sk->sk_shutdown in sk_diag_fill(). 2024-07-05 09:08:12 +02:00
garbage.c af_unix: Suppress false-positive lockdep splat for spin_lock() in __unix_gc(). 2024-05-02 16:18:35 +02:00
Kconfig
Makefile
scm.c af_unix: Do not use atomic ops for unix_sk(sk)->inflight. 2024-05-02 16:18:29 +02:00
scm.h
sysctl_net_unix.c