Skip to content
Commit c1432ece authored by Eric Dumazet's avatar Eric Dumazet Committed by Greg Kroah-Hartman
Browse files

mptcp: annotate lockless accesses to sk->sk_err



[ Upstream commit 9ae8e5ad ]

mptcp_poll() reads sk->sk_err without socket lock held/owned.

Add READ_ONCE() and WRITE_ONCE() to avoid load/store tearing.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: d5fbeff1 ("mptcp: move __mptcp_error_report in protocol.c")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 09b6fdf7
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