-
- Downloads
tcp: annotate sk->sk_rcvbuf lockless reads
For the sake of tcp_poll(), there are few places where we fetch sk->sk_rcvbuf while this field can change from IRQ or other cpu. We need to add READ_ONCE() annotations, and also make sure write sides use corresponding WRITE_ONCE() to avoid store-tearing. Note that other transports probably need similar fixes. Signed-off-by:Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/tcp.h 2 additions, 2 deletionsinclude/net/tcp.h
- include/trace/events/sock.h 1 addition, 1 deletioninclude/trace/events/sock.h
- net/core/filter.c 2 additions, 1 deletionnet/core/filter.c
- net/core/skbuff.c 1 addition, 1 deletionnet/core/skbuff.c
- net/core/sock.c 3 additions, 2 deletionsnet/core/sock.c
- net/ipv4/tcp.c 2 additions, 2 deletionsnet/ipv4/tcp.c
- net/ipv4/tcp_input.c 4 additions, 3 deletionsnet/ipv4/tcp_input.c
Loading