Skip to content

sysctl: Fix data-races around ipv4_net_table (Round 3).

Kuniyuki Iwashima netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 1 replyApplied 15/15

Patches in v1 All 15 applied

#Subject and filesSizeRepliesApplied
1/15igmp: Fix data-races around sysctl_igmp_llm_reports.net/ipv4/igmp.c+13 -80 repliesApplied
2/15igmp: Fix a data-race around sysctl_igmp_max_memberships.net/ipv4/igmp.c+1 -10 repliesApplied
3/15igmp: Fix data-races around sysctl_igmp_max_msf.net/ipv4/igmp.c net/ipv4/ip_sockglue.c+4 -40 repliesApplied
4/15igmp: Fix data-races around sysctl_igmp_qrv.drivers/net/amt.c net/ipv4/igmp.c+15 -130 repliesApplied
5/15tcp: Fix data-races around keepalive sysctl knobs.include/net/tcp.h net/smc/smc_llc.c+7 -40 repliesApplied
6/15tcp: Fix data-races around sysctl_tcp_syn(ack)?_retries.net/ipv4/inet_connection_sock.c net/ipv4/tcp.c net/ipv4/tcp_timer.c+11 -50 repliesApplied
7/15tcp: Fix data-races around sysctl_tcp_syncookies.net/core/filter.c net/ipv4/syncookies.c net/ipv4/tcp_input.c +1 more+18 -120 repliesApplied
8/15tcp: Fix data-races around sysctl_tcp_migrate_req.net/core/sock_reuseport.c+2 -20 repliesApplied
9/15tcp: Fix data-races around sysctl_tcp_reordering.net/ipv4/tcp.c net/ipv4/tcp_input.c net/ipv4/tcp_metrics.c+10 -50 repliesApplied
10/15tcp: Fix data-races around some timeout sysctl knobs.include/net/tcp.h net/ipv4/tcp.c net/ipv4/tcp_output.c +1 more+9 -80 repliesApplied
11/15tcp: Fix a data-race around sysctl_tcp_notsent_lowat.include/net/tcp.h+1 -10 repliesApplied
12/15tcp: Fix a data-race around sysctl_tcp_tw_reuse.net/ipv4/tcp_ipv4.c+1 -10 repliesApplied
13/15tcp: Fix data-races around sysctl_max_syn_backlog.net/ipv4/tcp_input.c+4 -20 repliesApplied
14/15tcp: Fix data-races around sysctl_tcp_fastopen.net/ipv4/af_inet.c net/ipv4/tcp.c net/ipv4/tcp_fastopen.c+7 -51 replyApplied
15/15tcp: Fix data-races around sysctl_tcp_fastopen_blackhole_timeout.net/ipv4/tcp_fastopen.c+3 -20 repliesApplied

Reviews trailers per patch

1 of 15 patches has a Reviewed-by or Acked-by.

PatchYuchung Cheng
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15A-b
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 net 00/15] sysctl: Fix data-races around ipv4_net_table (Round 3).

This series fixes data-races around 21 knobs after igmp_link_local_mcast_reports in ipv4_net_table.

These 4 knobs are skipped because they are safe.

- tcp_congestion_control: Safe with RCU and xchg().
- tcp_available_congestion_control: Read only.
- tcp_allowed_congestion_control: Safe with RCU and spinlock().
- tcp_fastopen_key: Safe with RCU and xchg()

So, round 4 will start with fib_multipath_use_neigh.

Kuniyuki Iwashima (15):
igmp: Fix data-races around sysctl_igmp_llm_reports.
igmp: Fix a data-race around sysctl_igmp_max_memberships.
igmp: Fix data-races around sysctl_igmp_max_msf.
igmp: Fix data-races around sysctl_igmp_qrv.
tcp: Fix data-races around keepalive sysctl knobs.
tcp: Fix data-races around sysctl_tcp_syn(ack)?_retries.
tcp: Fix data-races around sysctl_tcp_syncookies.
tcp: Fix data-races around sysctl_tcp_migrate_req.
tcp: Fix data-races around sysctl_tcp_reordering.
tcp: Fix data-races around some timeout sysctl knobs.
tcp: Fix a data-race around sysctl_tcp_notsent_lowat.
tcp: Fix a data-race around sysctl_tcp_tw_reuse.
tcp: Fix data-races around sysctl_max_syn_backlog.
tcp: Fix data-races around sysctl_tcp_fastopen.
tcp: Fix data-races around sysctl_tcp_fastopen_blackhole_timeout.

 drivers/net/amt.c               |  4 +--
 include/net/tcp.h               | 14 ++++++----
 net/core/filter.c               |  4 +--
 net/core/sock_reuseport.c       |  4 +--
 net/ipv4/af_inet.c              |  2 +-
 net/ipv4/igmp.c                 | 49 +++++++++++++++++++--------------
 net/ipv4/inet_connection_sock.c |  3 +-
 net/ipv4/ip_sockglue.c          |  6 ++--
 net/ipv4/syncookies.c           |  3 +-
 net/ipv4/tcp.c                  | 13 +++++----
 net/ipv4/tcp_fastopen.c         |  9 +++---
 net/ipv4/tcp_input.c            | 36 +++++++++++++++---------
 net/ipv4/tcp_ipv4.c             |  2 +-
 net/ipv4/tcp_metrics.c          |  3 +-
 net/ipv4/tcp_output.c           |  2 +-
 net/ipv4/tcp_timer.c            | 20 ++++++++------
 net/ipv6/syncookies.c           |  3 +-
 net/smc/smc_llc.c               |  2 +-
 18 files changed, 106 insertions(+), 73 deletions(-)
Signature · 1 line
2.30.2