summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-10-09 14:51:20 -0700
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-10-09 21:34:31 -0700
commit60b173ca3d1cd1782bd0096dc17298ec242f6fb1 (patch)
tree63dcac48023790e1acfb33271d47d5d4132ca55c /net/ipv4/tcp.c
parent503978aca46124cd714703e180b9c8292ba50ba7 (diff)
downloadlinux-60b173ca3d1cd1782bd0096dc17298ec242f6fb1.tar.gz
linux-60b173ca3d1cd1782bd0096dc17298ec242f6fb1.tar.bz2
linux-60b173ca3d1cd1782bd0096dc17298ec242f6fb1.zip
net: add {READ|WRITE}_ONCE() annotations on ->rskq_accept_head
reqsk_queue_empty() is called from inet_csk_listen_poll() while other cpus might write ->rskq_accept_head value. Use {READ|WRITE}_ONCE() to avoid compiler tricks and potential KCSAN splats. Fixes: fff1f3001cc5 ("tcp: add a spinlock to protect struct request_sock_queue") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions