Skip to content

net: annotate data-races

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 1 replyApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11net: annotate data-races around sk->sk_reserved_memnet/core/sock.c+4 -30 repliesApplied
2/11net: annotate data-race around sk->sk_txrehashnet/core/sock.c+5 -20 repliesApplied
3/11net: annotate data-races around sk->sk_max_pacing_ratenet/core/sock.c+6 -30 repliesApplied
4/11net: add missing READ_ONCE(sk->sk_rcvlowat) annotationnet/core/sock.c+1 -10 repliesApplied
5/11net: annotate data-races around sk->sk_{rcv|snd}timeonet/core/sock.c net/sched/em_meta.c+16 -120 repliesApplied
6/11net: add missing READ_ONCE(sk->sk_sndbuf) annotationnet/core/sock.c+1 -10 repliesApplied
7/11net: add missing READ_ONCE(sk->sk_rcvbuf) annotationnet/core/sock.c+1 -10 repliesApplied
8/11net: annotate data-races around sk->sk_markinclude/net/inet_sock.h include/net/ip.h include/net/route.h +20 more+42 -401 replyApplied
9/11net: add missing data-race annotations around sk->sk_peek_offnet/core/sock.c net/unix/af_unix.c+3 -30 repliesApplied
10/11net: add missing data-race annotation for sk_ll_usecnet/core/sock.c+1 -10 repliesApplied
11/11net: annotate data-races around sk->sk_prioritynet/core/sock.c net/ipv4/ip_output.c net/ipv4/ip_sockglue.c +5 more+14 -130 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 00/11] net: annotate data-races

This series was inspired by a syzbot/KCSAN report.

This will later also permit some optimizations, like not having to lock the socket while reading/writing some of its fields.

Eric Dumazet (11):
net: annotate data-races around sk->sk_reserved_mem
net: annotate data-race around sk->sk_txrehash
net: annotate data-races around sk->sk_max_pacing_rate
net: add missing READ_ONCE(sk->sk_rcvlowat) annotation
net: annotate data-races around sk->sk_{rcv|snd}timeo
net: add missing READ_ONCE(sk->sk_sndbuf) annotation
net: add missing READ_ONCE(sk->sk_rcvbuf) annotation
net: annotate data-races around sk->sk_mark
net: add missing data-race annotations around sk->sk_peek_off
net: add missing data-race annotation for sk_ll_usec
net: annotate data-races around sk->sk_priority

 include/net/inet_sock.h    |  7 ++--
 include/net/ip.h           |  2 +-
 include/net/route.h        |  4 +--
 net/can/raw.c              |  2 +-
 net/core/sock.c            | 69 ++++++++++++++++++++++----------------
 net/dccp/ipv6.c            |  4 +--
 net/ipv4/inet_diag.c       |  4 +--
 net/ipv4/ip_output.c       |  8 ++---
 net/ipv4/ip_sockglue.c     |  2 +-
 net/ipv4/raw.c             |  2 +-
 net/ipv4/route.c           |  4 +--
 net/ipv4/tcp_ipv4.c        |  4 +--
 net/ipv6/ping.c            |  2 +-
 net/ipv6/raw.c             |  6 ++--
 net/ipv6/route.c           |  7 ++--
 net/ipv6/tcp_ipv6.c        |  9 ++---
 net/ipv6/udp.c             |  4 +--
 net/l2tp/l2tp_ip6.c        |  2 +-
 net/mptcp/sockopt.c        |  2 +-
 net/netfilter/nft_socket.c |  2 +-
 net/netfilter/xt_socket.c  |  4 +--
 net/packet/af_packet.c     | 12 +++----
 net/sched/em_meta.c        |  4 +--
 net/smc/af_smc.c           |  2 +-
 net/unix/af_unix.c         |  2 +-
 net/xdp/xsk.c              |  2 +-
 net/xfrm/xfrm_policy.c     |  2 +-
 27 files changed, 94 insertions(+), 80 deletions(-)
Signature · 1 line
2.41.0.585.gd2178a4bd4-goog