Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef036a05 authored by Kuniyuki Iwashima's avatar Kuniyuki Iwashima Committed by Sasha Levin
Browse files

af_unix: Annotate data-race of gc_in_progress in wait_for_unix_gc().



[ Upstream commit 31e03207119a535d0b0e3b3a7f91983aeb2cb14d ]

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: 5f23b734 ("net: Fix soft lockups/OOM issues w/ unix garbage collector")
Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20240123170856.41348-2-kuniyu@amazon.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4bdfc38a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment