Skip to content

tcp: do not accept ACK of our ISS on active opens

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 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2tcp: do not accept ACK of our ISS on active opensDocumentation/networking/net_cachelines/tcp_sock.rst include/linux/tcp.h net/ipv4/tcp.c +1 more+12 -30 repliesApplied
2/2selftests/net: packetdrill: add tests for ACK of ISStools/testing/selftests/net/packetdrill/tcp_rfc5961_ack-iss-client.pkt tools/testing/selftests/net/packetdrill/tcp_rfc5961_ack-iss-fastopen-client.pkt tools/testing/selftests/net/packetdrill/tcp_rfc5961_ack-iss-server.pkt +1 more+173 -00 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-next 0/2] tcp: do not accept ACK of our ISS on active opens

Michael Tuexen asked on the tcpm list whether, after a completed handshake, a segment with SEG.ACK == ISS is a duplicate ACK or a ghost ACK [1]. Flavius-Romeo Mazilu noted that Linux gives a different answer on each side of the connection [2]: passive opens send a challenge ACK, active opens silently accept the segment.

The first patch makes active opens (including Fast Open and simultaneous opens) behave like passive ones, without changing the value of tcpi_bytes_acked seen by user space and BPF.

The second patch adds packetdrill tests for the four ways a socket can be established.

This closes one extra acceptable ACK value on active opens, so this is targeting net-next.

[1] https://mailarchive.ietf.org/arch/msg/tcpm/ZbjDTFQSHeKSVHAToyAnKBr3TpU/
[2] https://mailarchive.ietf.org/arch/msg/tcpm/ym6lb-UkrW2298LRnTLxCysoo0g/

Eric Dumazet (2):
tcp: do not accept ACK of our ISS on active opens selftests/net: packetdrill: add tests for ACK of ISS

 .../networking/net_cachelines/tcp_sock.rst    |  1 +
 include/linux/tcp.h                           |  3 +-
 net/ipv4/tcp.c                                |  1 +
 net/ipv4/tcp_input.c                          | 10 +++-
 .../tcp_rfc5961_ack-iss-client.pkt            | 46 +++++++++++++++++++
 .../tcp_rfc5961_ack-iss-fastopen-client.pkt   | 40 ++++++++++++++++
 .../tcp_rfc5961_ack-iss-server.pkt            | 45 ++++++++++++++++++
 .../tcp_rfc5961_ack-iss-simultaneous-open.pkt | 42 +++++++++++++++++
 8 files changed, 185 insertions(+), 3 deletions(-)
 create mode 100644 tools/testing/selftests/net/packetdrill/tcp_rfc5961_ack-iss-client.pkt
 create mode 100644 tools/testing/selftests/net/packetdrill/tcp_rfc5961_ack-iss-fastopen-client.pkt
 create mode 100644 tools/testing/selftests/net/packetdrill/tcp_rfc5961_ack-iss-server.pkt
 create mode 100644 tools/testing/selftests/net/packetdrill/tcp_rfc5961_ack-iss-simultaneous-open.pkt

base-commit: d6816d9a93b66a12bf01e10037e377f3333ad6cc

Signature · 1 line
2.53.0