-
- Downloads
tcp: ensure proper barriers in lockless contexts
Some functions access TCP sockets without holding a lock and might output non consistent data, depending on compiler and or architecture. tcp_diag_get_info(), tcp_get_info(), tcp_poll(), get_tcp4_sock() ... Introduce sk_state_load() and sk_state_store() to fix the issues, and more clearly document where this lack of locking is happening. Signed-off-by:Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/sock.h 25 additions, 0 deletionsinclude/net/sock.h
- net/ipv4/inet_connection_sock.c 2 additions, 2 deletionsnet/ipv4/inet_connection_sock.c
- net/ipv4/tcp.c 11 additions, 10 deletionsnet/ipv4/tcp.c
- net/ipv4/tcp_diag.c 1 addition, 1 deletionnet/ipv4/tcp_diag.c
- net/ipv4/tcp_ipv4.c 8 additions, 6 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv6/tcp_ipv6.c 15 additions, 4 deletionsnet/ipv6/tcp_ipv6.c
Loading
Please register or sign in to comment