net: annotate data-races around sk->sk_lingertime
sk_getsockopt() runs locklessly. This means sk->sk_lingertime can be read while other threads are changing its value. Other reads also happen without socket lock being held, and must be annotated. Remove preprocessor logic using BITS_PER_LONG, compilers are smart enough to figure this by themselves. v2: fixed a clang W=1 (-Wtautological-constant-out-of-range-compare) warning (Jakub) Fixes: 1da177e4 ("Linux-2.6.12-rc2") Signed-off-by:Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/bluetooth/iso.c 1 addition, 1 deletionnet/bluetooth/iso.c
- net/bluetooth/sco.c 1 addition, 1 deletionnet/bluetooth/sco.c
- net/core/sock.c 9 additions, 9 deletionsnet/core/sock.c
- net/sched/em_meta.c 1 addition, 1 deletionnet/sched/em_meta.c
- net/smc/af_smc.c 1 addition, 1 deletionnet/smc/af_smc.c
Loading
Please register or sign in to comment