Commit 4c64c3e2 authored by Eric Dumazet's avatar Eric Dumazet Committed by Greg Kroah-Hartman
Browse files

af_unix: annotate lockless accesses to sk->sk_err



[ Upstream commit cc04410a ]

unix_poll() and unix_dgram_poll() read sk->sk_err
without any lock held.

Add relevant READ_ONCE()/WRITE_ONCE() annotations.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 83690b82 ("af_unix: Use skb_queue_empty_lockless() in unix_release_sock().")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f5c42766
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment