Skip to content

tcp: Small fixes for DEFER_CONNECT.

Kuniyuki Iwashima 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 Latest3 patches 3 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tcp: Clear DEFER_CONNECT before tcp_connect() and in tcp_abort().include/net/inet_common.h net/ipv4/af_inet.c net/ipv4/tcp.c +1 more+17 -93 repliesApplied
2/3tcp: Drop any segments if DEFER_CONNECT is set.net/ipv4/tcp_input.c net/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c+11 -20 repliesApplied
3/3selftest: packetdrill: Add test for DEFER_CONNECT.tools/testing/selftests/net/packetdrill/tcp_fastopen_client_defer-connect.pkt+61 -00 repliesApplied

Reviews trailers per patch

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

PatchMatthieu Baerts (NGI0)
1/3A-b
2/3
3/3

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 0/3] tcp: Small fixes for DEFER_CONNECT.

Chris Mason reported a bug that TFO client socket can accept segments even before it sends SYN.

He provided a patch too, but it needed some adjustments (Patch 2).

Patch 1 is a prereq fix for Patch 2, and Patch 3 is packetdrill test for the reported bug.

Chris Mason (1):
tcp: Drop any segments if DEFER_CONNECT is set.

Kuniyuki Iwashima (2):
tcp: Clear DEFER_CONNECT before tcp_connect() and in tcp_abort().
selftest: packetdrill: Add test for DEFER_CONNECT.

 include/net/inet_common.h                     |  2 +-
 net/ipv4/af_inet.c                            | 10 +--
 net/ipv4/tcp.c                                |  9 ++-
 net/ipv4/tcp_input.c                          |  9 +++
 net/ipv4/tcp_ipv4.c                           |  2 +-
 net/ipv6/tcp_ipv6.c                           |  2 +-
 net/mptcp/protocol.c                          |  5 +-
 .../tcp_fastopen_client_defer-connect.pkt     | 61 +++++++++++++++++++
 8 files changed, 89 insertions(+), 11 deletions(-)
 create mode 100644 tools/testing/selftests/net/packetdrill/tcp_fastopen_client_defer-connect.pkt
Signature · 1 line
2.56.0.455.g6c5a503b38-goog