From nobody Fri Sep 26 09:55:55 2025 X-Original-To: dev-commits-src-all@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 4cY5Z34VwGz683HV; Fri, 26 Sep 2025 09:55:55 +0000 (UTC) (envelope-from git@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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cY5Z33z47z3FYC; Fri, 26 Sep 2025 09:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758880555; 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; bh=mMVWyt0uChTFxJC2g7YCTbkR80QvBy7ewN1w0YB2i0o=; b=P/V0sCa+zTR9yiqh6wR5tZoEQNPQMowNygJpQdx93ZfSEjieasdUIndtZkWZxZbgGLspkU /leWH60IkeccPI9PwP5ziQjp7/I9xKjCmaCTmp6TeW/psLP1WZll81/bT+46h2dLMuOnHq FoI9BQGuOZ3/Y8KMRe4cbjRPvonWkdVsvWgF+6jasb/MyNUPXAyVc+sP/UWSNc8R1iBkMa kvcPc4fR1olttZAPy3HDJa5irXjczJ/4IRSuAKlp7oOgBBsjNvDpjHjICjhN2MCZazhZdE oeGuhEnUCo2rQIUnI4IWFErzMBgdcbyU43DezNuiTtRi+G4XmwQQRin4H4blWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758880555; 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; bh=mMVWyt0uChTFxJC2g7YCTbkR80QvBy7ewN1w0YB2i0o=; b=MfG3CLJROel7CPP2FNODutE0zhEVT9FE5tPiZzyN6FeQwYw/7fVOGGW0It8WGekYRtFlBg YDFozmcRkO3IO/RNWD2kSGidS+sDL72QN5w0lzChGAGGY85itaYOBB/DQVX9LSTnNupoHV l94eXZ7rZ1+Xp1bAUqUiBltharfaRek5xubRW5JHtVMCgtZEZDcJmdvdDjrB03MLtyjkbG rhfe7su2tBO9rs2M/wa45OstVPVmKEkBth8bkPrH30X5dIpH88KQhQIEB3rvBxYuuT9pK3 EBwxng0VJGXQWtEPr0QlWDSaRZlIYUDdZqKpSbF9orUisOYnf8ZU9+Y4iaoPJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758880555; a=rsa-sha256; cv=none; b=sMRZ9bQzjueR96bFkLr+s6NoJxMdksBbvLNHG77UjRqwmXD00ux/surM2rEZi27AfE6pS/ 2hFipqDjrzUYQX/psjWZPVVtsPMfXQSlHQebREBvUMtBC3Bq7kjzp8xTSMpdpmG9mDgPV5 G0sqKhbziTFIT5OdTisFdupcRD2WrlbBUZhs5iW3wH/Uje2KiuHjUwcfUf9ErKd1UYx8Sk zQTYMV8vKe3vEkvYD2EvmtgUXUkb8duoqpnhWuCW415zRZ+JD6jd5qUt+eJiZtyUonEXar dDiO5K18RaD1UBJ4fxWvk3vN8tQ962r/CXWTmy+xhBXnB6869Ibx1psg8cl7kA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4cY5Z339vVzjyn; Fri, 26 Sep 2025 09:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58Q9ttpo080336; Fri, 26 Sep 2025 09:55:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58Q9ttpk080333; Fri, 26 Sep 2025 09:55:55 GMT (envelope-from git) Date: Fri, 26 Sep 2025 09:55:55 GMT Message-Id: <202509260955.58Q9ttpk080333@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: a41b0e52ab90 - stable/15 - tcp: fix sending of RST segments List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: a41b0e52ab90920ba3c136d95661d624aeb67147 Auto-Submitted: auto-generated The branch stable/15 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=a41b0e52ab90920ba3c136d95661d624aeb67147 commit a41b0e52ab90920ba3c136d95661d624aeb67147 Author: Michael Tuexen AuthorDate: 2025-09-23 17:29:48 +0000 Commit: Michael Tuexen CommitDate: 2025-09-26 09:55:41 +0000 tcp: fix sending of RST segments Take endpoint parameters into account when available. Fixes: 463b5aed0d62 ("tcp: retire rstreason") Sponsored by: Netflix, Inc. (cherry picked from commit ab17974c12033c6ff3bae27458efcd13584438ba) --- sys/netinet/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index d5dc516c28aa..dd27ec77c1af 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -3412,7 +3412,7 @@ dropafterack: return; dropwithreset: - tcp_dropwithreset(m, th, NULL, tlen); + tcp_dropwithreset(m, th, tp, tlen); if (tp != NULL) { INP_WUNLOCK(inp); }