aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-05-13 11:55:42 -0700
committerDavid S. Miller <davem@davemloft.net>2022-05-16 10:31:06 +0100
commita20ea298071f46effa3aaf965bf9bb34c901db3f (patch)
tree7a871cb0b15e5e73b3a77b794e29380f3290cb39 /net/core/sock.c
parentnet: annotate races around sk->sk_bound_dev_if (diff)
downloadwireguard-linux-a20ea298071f46effa3aaf965bf9bb34c901db3f.tar.xz
wireguard-linux-a20ea298071f46effa3aaf965bf9bb34c901db3f.zip
sctp: read sk->sk_bound_dev_if once in sctp_rcv()
sctp_rcv() reads sk->sk_bound_dev_if twice while the socket is not locked. Another cpu could change this field under us. Fixes: 0fd9a65a76e8 ("[SCTP] Support SO_BINDTODEVICE socket option on incoming packets.") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Neil Horman <nhorman@tuxdriver.com> Cc: Vlad Yasevich <vyasevich@gmail.com> Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions