[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250711114006.480026-1-edumazet@google.com>
Date: Fri, 11 Jul 2025 11:39:58 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Neal Cardwell <ncardwell@...gle.com>
Cc: Simon Horman <horms@...nel.org>, Kuniyuki Iwashima <kuniyu@...gle.com>,
Willem de Bruijn <willemb@...gle.com>, netdev@...r.kernel.org, eric.dumazet@...il.com,
Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH net-next 0/8] tcp: receiver changes
Before accepting an incoming packet:
- Make sure to not accept a packet beyond advertized RWIN.
If not, increment a new SNMP counter (LINUX_MIB_BEYOND_WINDOW)
- ooo packets should update rcv_mss and tp->scaling_ratio.
- Make sure to not accept packet beyond sk_rcvbuf limit.
This series includes three associated packetdrill tests.
Eric Dumazet (8):
tcp: do not accept packets beyond window
tcp: add LINUX_MIB_BEYOND_WINDOW
selftests/net: packetdrill: add tcp_rcv_big_endseq.pkt
tcp: call tcp_measure_rcv_mss() for ooo packets
selftests/net: packetdrill: add tcp_ooo_rcv_mss.pkt
tcp: add const to tcp_try_rmem_schedule() and sk_rmem_schedule() skb
tcp: stronger sk_rcvbuf checks
selftests/net: packetdrill: add tcp_rcv_toobig.pkt
.../networking/net_cachelines/snmp.rst | 1 +
include/net/dropreason-core.h | 9 +++-
include/net/sock.h | 2 +-
include/uapi/linux/snmp.h | 1 +
net/ipv4/proc.c | 1 +
net/ipv4/tcp_input.c | 48 ++++++++++++++-----
.../net/packetdrill/tcp_ooo_rcv_mss.pkt | 27 +++++++++++
.../net/packetdrill/tcp_rcv_big_endseq.pkt | 44 +++++++++++++++++
.../net/packetdrill/tcp_rcv_toobig.pkt | 33 +++++++++++++
9 files changed, 152 insertions(+), 14 deletions(-)
create mode 100644 tools/testing/selftests/net/packetdrill/tcp_ooo_rcv_mss.pkt
create mode 100644 tools/testing/selftests/net/packetdrill/tcp_rcv_big_endseq.pkt
create mode 100644 tools/testing/selftests/net/packetdrill/tcp_rcv_toobig.pkt
--
2.50.0.727.gbf7dc18ff4-goog
Powered by blists - more mailing lists