linux-stable/net/unix
Kuniyuki Iwashima 0c41412330 af_unix: Annotate data-race of gc_in_progress in wait_for_unix_gc().
[ Upstream commit 31e0320711 ]

gc_in_progress is changed under spin_lock(&unix_gc_lock),
but wait_for_unix_gc() reads it locklessly.

Let's use READ_ONCE().

Fixes: 5f23b73496 ("net: Fix soft lockups/OOM issues w/ unix garbage collector")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20240123170856.41348-2-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:22:35 -04:00
..
af_unix.c af_unix: fix lockdep positive in sk_diag_dump_icons() 2024-02-23 08:12:52 +01:00
diag.c af_unix: fix lockdep positive in sk_diag_dump_icons() 2024-02-23 08:12:52 +01:00
garbage.c af_unix: Annotate data-race of gc_in_progress in wait_for_unix_gc(). 2024-03-26 18:22:35 -04:00
Kconfig net: split out functions related to registering inflight socket files 2021-07-31 08:22:37 +02:00
Makefile net: split out functions related to registering inflight socket files 2021-07-31 08:22:37 +02:00
scm.c af_unix: Fix data-races around user->unix_inflight. 2023-09-23 10:48:13 +02:00
scm.h net: split out functions related to registering inflight socket files 2021-07-31 08:22:37 +02:00
sysctl_net_unix.c