tcp: annotate lockless access to sk->sk_err
[ Upstream commit e13ec3da ] tcp_poll() reads sk->sk_err without socket lock held/owned. We should used READ_ONCE() here, and update writers to use WRITE_ONCE(). Signed-off-by:Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Stable-dep-of: 853c3bd7 ("tcp: fix race in tcp_write_err()") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading