]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: annotate tp->urg_seq lockless reads
authorEric Dumazet <edumazet@google.com>
Fri, 11 Oct 2019 03:17:43 +0000 (20:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2019 17:13:08 +0000 (10:13 -0700)
commit45185ef15ed29d5e90eae874ddf5e9c3abfa6782
tree428615c37202b0d44173735a2efe04651aff469b
parentf94b4fd8a708355df6ec6fdad2d304fe3ae09115
tcp: annotate tp->urg_seq lockless reads

There two places where we fetch tp->urg_seq while
this field can change from IRQ or other cpu.

We need to add READ_ONCE() annotations, and also make
sure write side use corresponding WRITE_ONCE() to avoid
store-tearing.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c
net/ipv4/tcp_input.c