UPSTREAM: af_unix: Do not use atomic ops for unix_sk(sk)->inflight.
[ Upstream commit 97af84a6 ] When touching unix_sk(sk)->inflight, we are always under spin_lock(&unix_gc_lock). Let's convert unix_sk(sk)->inflight to the normal unsigned long. Bug: 336226035 Bug: 338515068 Signed-off-by:Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by:
Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240123170856.41348-3-kuniyu@amazon.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Stable-dep-of: 47d8ac01 ("af_unix: Fix garbage collector racing against connect()") Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit 301fdbaa) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I0d965d5f2a863d798c06de9f21d0467f256b538e (cherry picked from commit 65e0a92c) Signed-off-by:
Pindar Yang <pindaryang@google.com> (cherry picked from commit 65e0a92c)
Loading
Please sign in to comment