mptcp: annotate lockless accesses to sk->sk_err
authorEric Dumazet <edumazet@google.com>
Wed, 15 Mar 2023 20:57:45 +0000 (20:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2023 08:25:05 +0000 (08:25 +0000)
commit9ae8e5ad99b8ebcd3d3dd46075f3825e6f08f063
tree3091b5beb21935da2d44eebc4489f59102a64161
parente13ec3da05d130f0d10da8e1fbe1be26dcdb0e27
mptcp: annotate lockless accesses to sk->sk_err

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: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c
net/mptcp/protocol.c
net/mptcp/subflow.c