From nobody Thu Aug 6 08:34:08 2026 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hG0tn5xnvz6mcyL for ; Thu, 06 Aug 2026 08:34:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hG0tn25Vzz3RPh for ; Thu, 06 Aug 2026 08:34:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786005249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9mBqeg//0JH/4PA39EBHNYzWzbnhYCB27BxRCn1H0bE=; b=RTjt9I5dXukmPJcrNLExIBe8ZVih+JspubauJfe04OA+Y01zTsr72ZVa07lRRBD0FLYE6D nVVGn8P6tUEf+091+WKGHv04HCC4EVQucLXSKdg/SZ3GPQS9627LVpg8m4HSF/NEJ+tGa6 P6cud9he03lee+Kmg9Ujhfjia2U+4gi0lfNv7pzu2Qb65YgMas9uPsMpTeiWh69Ep0SE8E x+GSoc5Q7IhWtxqSAsFogbZrB2Ta3r7gRwx6hEockyi6sPkUvqjPskVlOUM1PpNOMsj0Gk Iw0AxCFoshfETbCJRceOxf1Oao7Y+/myQynctLUYH8qY+UPUewi2ijmPBNHHtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786005249; a=rsa-sha256; cv=none; b=edGI81Yday/nzMRzDHDVY5ZK9lPiHyZLHy48rV27ZpOD5z0bzwUoRaMV1lpfsVrLt0yRHw porivcPzEukqBWYESLgrgfRB42GZx8sLERUkTN1ZSuYkrlGDV1/N5FnSrb5Lrl12m8G/rH C46qiU06uc3pNxcl2Ac/4TRDgMpb4Qt6NnaZeJwQO+QrVKxjHkkQFTu2nzg5tMHRyYK4BT 2MEoH5aK2vwl7hXWshouaty65mRWoFIy5jschgYqbW47MpgzhkEITo78iSNwBb4yBiV3iq qays9uQaaFeleH5OW4kSTJVrcD5EcmmHKudefsW6DHNGXiP9xOvVVu8HNDhydg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786005249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9mBqeg//0JH/4PA39EBHNYzWzbnhYCB27BxRCn1H0bE=; b=gQ3P/D7wY9E2Ck9WGvlcsglgWUGdwxrE7pHT9XpXk9rw3D1/N35eUozpZqsNy2w4WuNBgb 57Q5iFFiWGi9AKZ51fFomWotJ3QBahkftxFrjnKL4B1ZXGqGl6ID1sfO1h44NTpNg6dyhw p31RdEtVT/dmybrCMQP3h89CzX1oIRfLAUmJcAxJJkEaLyZYsVTMTJbMd1GxPLO/oEGZaG t3icXxnvZcKTm2MEe60AaaYM4RwEALkgZwrInjzyQkXZ0IyCMaiimMJ1upyU0eD7Ov4bMD PyzsYlM+6Q7txy9V2afBizj9QQuwSWOoOA+QsUVK+vHhavixVURL9SBCQLyhbA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4hG0tn0kbFz1C3P for ; Thu, 06 Aug 2026 08:34:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6768Y9ko025351 for ; Thu, 6 Aug 2026 08:34:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6768Y92S025350 for net@FreeBSD.org; Thu, 6 Aug 2026 08:34:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 296594] TCP: RFC 5961 sends a challenge ACK instead of resetting when a valid RST arrives with SEG.SEQ == RCV.NXT and the receiver has delayed-ACKed data, leaving the connection half-open Date: Thu, 06 Aug 2026 08:34:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tuexen@freebsd.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296594 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1c62c8bac5ae5ede9b65d32b08e10ae05= aa955ac commit 1c62c8bac5ae5ede9b65d32b08e10ae05aa955ac Author: Michael Tuexen AuthorDate: 2026-08-03 11:07:32 +0000 Commit: Michael Tuexen CommitDate: 2026-08-06 05:56:07 +0000 tcp: improve SEG.SEQ validation for RST segments A RST segment can be sent in response to (a) received segment or (b) by the upper layer protocol. The SEG.SEQ validation consists of two checks: (1) the in-window check of SEG.SEQ and (2) the exact match check of SEG.SEQ. For the in-window check (1), the left edge of the window needs to be based on tp->last_ack_sent to cover the delayed ACK case, whereas the right edge needs to be based on tp->rcv_nxt + tp->rcv_wnd. This both assumes that tp->rcv_wnd is not zero. For the special case of tp->rcv_wnd being zero, add checks against tp->last_ack_sent for (a) and on tp->rcv_nxt for (b). This applies to all TCP stacks. When the exact match (2) of SEG.SEQ is performed, it should be based on tp->last_ack_sent for (a) and on tp->rcv_nxt for (b). To cover both, check for both. Add this only to the base stack, since the RACK and BBR stacks already do this. PR: 296594 Reviewed by: rscheff Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D58594 (cherry picked from commit c9df1a6cf9be9d44eacc8616ebba1cd19010c7fc) sys/netinet/tcp_input.c | 18 ++++++++++++------ sys/netinet/tcp_stacks/rack_bbr_common.c | 22 ++++++++++++++-------- 2 files changed, 26 insertions(+), 14 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=