Skip to content

tcp: Misc fixes for tcp_v[46]_err().

Kuniyuki Iwashima netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tcp: Don't accept ICMP for SND.NXT in TCP_SYN_SENT.net/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c+12 -62 replies
2/8tcp: Don't use inner IP TTL for IP_MINTTL in tcp_v4_err().net/ipv4/tcp_ipv4.c+1 -12 replies
3/8tcp: Don't bypass GTSM check for reqsk.net/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c+22 -162 replies
4/8tcp: Fix reqsk abort condition on ICMP errors.net/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c+4 -62 replies
5/8tcp: Check ip_sk_accept_pmtu() in tcp_v4_err().net/ipv4/tcp_ipv4.c+3 -11 reply
6/8selftest: net: packetdrill: Add ICMP and ICMPv6 tests.tools/testing/selftests/net/packetdrill/tcp_icmp_ipv4.pkt tools/testing/selftests/net/packetdrill/tcp_icmp_ipv6.pkt+209 -02 replies
7/8tcp: Pass inet_sdif() to __inet_lookup_established() in tcp_v4_err().net/ipv4/tcp_ipv4.c+2 -12 replies
8/8tcp: Pass inet6_iif() to __inet6_lookup_established() in tcp_v6_err().net/ipv6/tcp_ipv6.c+1 -12 replies

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by.

PatchEric DumazetDavid Ahern
1/8
2/8R-b
3/8R-b
4/8
5/8R-b
6/8
7/8R-b R-b
8/8R-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 v1 net 0/8] tcp: Misc fixes for tcp_v[46]_err().

A packetdrill-equipped LLM found a bunch of bugs with repro.

This is the first series fixing bugs in tcp_v4_err() and tcp_v6_err().

Patches 1-5, 7, and 8 are fixes, and Patch 6 is a selftest for the bugs fixed by Patches 1-5.

Kuniyuki Iwashima (8):
tcp: Don't accept ICMP for SND.NXT in TCP_SYN_SENT.
tcp: Don't use inner IP TTL for IP_MINTTL in tcp_v4_err().
tcp: Don't bypass GTSM check for reqsk.
tcp: Fix reqsk abort condition on ICMP errors.
tcp: Check ip_sk_accept_pmtu() in tcp_v4_err().
selftest: net: packetdrill: Add ICMP and ICMPv6 tests.
tcp: Pass inet_sdif() to __inet_lookup_established() in tcp_v4_err().
tcp: Pass inet6_iif() to __inet6_lookup_established() in tcp_v6_err().

 net/ipv4/tcp_ipv4.c                           |  42 ++++---
 net/ipv6/tcp_ipv6.c                           |  33 ++++--
 .../net/packetdrill/tcp_icmp_ipv4.pkt         |  98 ++++++++++++++++
 .../net/packetdrill/tcp_icmp_ipv6.pkt         | 111 ++++++++++++++++++
 4 files changed, 253 insertions(+), 31 deletions(-)
 create mode 100644 tools/testing/selftests/net/packetdrill/tcp_icmp_ipv4.pkt
 create mode 100644 tools/testing/selftests/net/packetdrill/tcp_icmp_ipv6.pkt
Signature · 1 line
2.56.0.679.gc527c65306-goog