Skip to content

inet: more data-race fixes

Eric Dumazet netdev 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 3 repliesApplied 8/8
  2. v18 patches 9 repliesSuperseded

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8inet: implement lockless IP_MULTICAST_TTLnet/ipv4/ip_output.c net/ipv4/ip_sockglue.c net/netfilter/ipvs/ip_vs_sync.c+18 -170 repliesApplied
2/8inet: implement lockless IP_MTU_DISCOVERinclude/net/ip.h net/ipv4/ip_output.c net/ipv4/ip_sockglue.c +4 more+22 -230 repliesApplied
3/8inet: implement lockless IP_TOSinclude/net/ip.h include/net/route.h net/dccp/ipv4.c +7 more+31 -363 repliesApplied
4/8inet: lockless getsockopt(IP_OPTIONS)net/ipv4/ip_sockglue.c+10 -100 repliesApplied
5/8inet: lockless getsockopt(IP_MTU)net/ipv4/ip_sockglue.c+9 -110 repliesApplied
6/8inet: implement lockless getsockopt(IP_UNICAST_IF)net/ipv4/datagram.c net/ipv4/ip_sockglue.c net/ipv4/ping.c +2 more+21 -180 repliesApplied
7/8inet: lockless IP_PKTOPTIONS implementationnet/ipv4/ip_sockglue.c+37 -390 repliesApplied
8/8inet: implement lockless getsockopt(IP_MULTICAST_IF)net/ipv4/datagram.c net/ipv4/ip_sockglue.c net/ipv4/ping.c +2 more+20 -210 repliesApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchDavid Ahern
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v2 thread

Cover letter [PATCH v2 net-next 0/8] inet: more data-race fixes

This series fixes some existing data-races on inet fields:

inet->mc_ttl, inet->pmtudisc, inet->tos, inet->uc_index, inet->mc_index and inet->mc_addr.

While fixing them, we convert eight socket options to lockless implementation.

v2: addressed David Ahern feedback on ("inet: implement lockless IP_TOS")
Added David Reviewed-by: tag on other patches.

Eric Dumazet (8):
inet: implement lockless IP_MULTICAST_TTL
inet: implement lockless IP_MTU_DISCOVER
inet: implement lockless IP_TOS
inet: lockless getsockopt(IP_OPTIONS)
inet: lockless getsockopt(IP_MTU)
inet: implement lockless getsockopt(IP_UNICAST_IF)
inet: lockless IP_PKTOPTIONS implementation
inet: implement lockless getsockopt(IP_MULTICAST_IF)

 include/net/ip.h                              |  16 +-
 include/net/route.h                           |   4 +-
 net/dccp/ipv4.c                               |   2 +-
 net/ipv4/datagram.c                           |   6 +-
 net/ipv4/inet_diag.c                          |   2 +-
 net/ipv4/ip_output.c                          |  13 +-
 net/ipv4/ip_sockglue.c                        | 192 ++++++++----------
 net/ipv4/ping.c                               |   8 +-
 net/ipv4/raw.c                                |  19 +-
 net/ipv4/tcp_ipv4.c                           |   9 +-
 net/ipv4/udp.c                                |  18 +-
 net/mptcp/sockopt.c                           |   8 +-
 net/netfilter/ipvs/ip_vs_sync.c               |   4 +-
 net/sctp/protocol.c                           |   4 +-
 .../selftests/net/mptcp/mptcp_connect.sh      |   2 +-
 15 files changed, 150 insertions(+), 157 deletions(-)
Signature · 1 line
2.42.0.515.g380fc7ccd1-goog