Skip to content

net: another round of data-race annotations

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 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5net: use sk_forward_alloc_get() in sk_get_meminfo()net/core/sock.c+1 -10 repliesApplied
2/5net: annotate data-races around sk->sk_forward_allocinclude/net/sock.h net/core/sock.c net/ipv4/tcp_output.c +2 more+20 -140 repliesApplied
3/5mptcp: annotate data-races around msk->rmem_fwd_allocnet/mptcp/protocol.c+13 -60 repliesApplied
4/5net: annotate data-races around sk->sk_tsflagsinclude/net/ip.h include/net/sock.h net/can/j1939/socket.c +10 more+40 -320 repliesApplied
5/5net: annotate data-races around sk->sk_bind_phcnet/core/sock.c net/socket.c+3 -30 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 0/5] net: another round of data-race annotations

Series inspired by some syzbot reports, taking care of 4 socket fields that can be read locklessly.

Eric Dumazet (5):
net: use sk_forward_alloc_get() in sk_get_meminfo()
net: annotate data-races around sk->sk_forward_alloc
mptcp: annotate data-races around msk->rmem_fwd_alloc
net: annotate data-races around sk->sk_tsflags
net: annotate data-races around sk->sk_bind_phc

 include/net/ip.h       |  2 +-
 include/net/sock.h     | 29 +++++++++++++++++++----------
 net/can/j1939/socket.c | 10 ++++++----
 net/core/skbuff.c      | 10 ++++++----
 net/core/sock.c        | 18 +++++++++---------
 net/ipv4/ip_output.c   |  2 +-
 net/ipv4/ip_sockglue.c |  2 +-
 net/ipv4/tcp.c         |  4 ++--
 net/ipv4/tcp_output.c  |  2 +-
 net/ipv4/udp.c         |  6 +++---
 net/ipv6/ip6_output.c  |  2 +-
 net/ipv6/ping.c        |  2 +-
 net/ipv6/raw.c         |  2 +-
 net/ipv6/udp.c         |  2 +-
 net/mptcp/protocol.c   | 23 +++++++++++++++--------
 net/socket.c           | 15 ++++++++-------
 16 files changed, 76 insertions(+), 55 deletions(-)
Signature · 1 line
2.42.0.rc2.253.gd59a3bf2b4-goog