Skip to content

tcp: take better care of tw_substate and tw_rcv_nxt

Eric Dumazet netdev 1 version 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

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2tcp: remove volatile qualifier on tw_substateinclude/net/inet_timewait_sock.h net/ipv4/inet_diag.c net/ipv4/tcp_ipv4.c +2 more+8 -81 replyApplied
2/2tcp: annotate data-races around tcptw->tw_rcv_nxtnet/ipv4/tcp_ipv4.c net/ipv4/tcp_minisocks.c net/ipv6/tcp_ipv6.c+18 -141 replyApplied

Reviews trailers per patch

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

PatchJason Xing
1/2R-b
2/2R-b

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 net-next 0/2] tcp: take better care of tw_substate and tw_rcv_nxt

While reviewing Jason Xing recent commit (0d9e5df4a257 "tcp: avoid reusing FIN_WAIT2 when trying to find port in connect() process") I saw we could remove the volatile qualifier for tw_substate field, and I also added missing data-race annotations around tcptw->tw_rcv_nxt.

Eric Dumazet (2):
tcp: remove volatile qualifier on tw_substate
tcp: annotate data-races around tcptw->tw_rcv_nxt

 include/net/inet_timewait_sock.h |  2 +-
 net/ipv4/inet_diag.c             |  4 ++--
 net/ipv4/tcp_ipv4.c              |  6 +++---
 net/ipv4/tcp_minisocks.c         | 31 +++++++++++++++++--------------
 net/ipv6/tcp_ipv6.c              |  5 +++--
 5 files changed, 26 insertions(+), 22 deletions(-)
Signature · 1 line
2.46.0.295.g3b9ea8a38a-goog