From nobody Thu Oct 22 13:40:51 2026 X-Original-To: dev-commits-src-main@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 4j9S380kpvz6x1Rr for ; Thu, 22 Oct 2026 13:40:52 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4j9S3773YPz3CXP for ; Thu, 22 Oct 2026 13:40:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792676452; 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=j2GOcdh2OMIa9GgLgYfTxL9SKOIjes7mcexQS5swHLU=; b=O1F7nAOzsf1vnZ+HWEdEFAGzVd7z75EUzO03pIqvkcyoJnaRIXRiXHxK8zROpai1TL8Q6Z 0OJsK7UsWwy7Au3t9f4VGxPCUv1OjTGT9XG8JPWr6vLOTL+Bk0VF0E2fQ+RQV7k+6N9QZM xq5Iz+nZ7/QAOJOgXW+pfXfCeQFaj7wAnYs75Vov9NErC0SBXAj3n7C14rL1Fs2lT34lOG mLLzZXcmP5HmRpaGUs1enf13EWp+wHMP8wO5hZ1zoBqen+25Cf/dBHWPcoB6+zeicuzhuH TpWJMoE8y5GdiN2PNIQlPLS1ykh494IAIHu30MmIgbO4DNyeSDfXYtXf7q3s1A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792676452; b=mSg4L0aOquDHYqqSEu3Po9WJwRmfzwBktAVHXY7olEki+vupzYIP/X2KgrA+pZNG/+fQ3a piBrOVEyicPJNdof46bTBnZnj3LZkwBZiGhbwPWLCUMTFd+CUEJew6rWinSWGUIaCiAdHE JrQwrLrpEIFOe5lijZy3CcXG+F+7LSqEIU9gg+BJwUTjWQiFJ9WMVvi68en5vErfqFVU80 Otzlk583mPN3Mkd9L86Ad44uiO+/kjO4sn7F+4OuIxnyhOOvH36KZPsRtbRHRo2qaMF362 OW7ES/mR5mO1LMK5rLlBZbQ2fLtbzlE8XS86srW9XqtoE8Ca54c6GK5+tqitCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792676452; 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=j2GOcdh2OMIa9GgLgYfTxL9SKOIjes7mcexQS5swHLU=; b=Gbug2fsnwNC1SfXQ6DFja2DMu9eHYLCWs/d625dZ5B3+jWpzJDPMufnlBPipvFDgNjhKWD UhlRlfizE17NdThO7CddYQL46Lx1pRYZTvf7Kklg2337HXEDZKs83DOh5UhW4RqQHynNuO jADNiq/22ZCkcJF5KZ93qSaNEpbKQNXQAo0fvHCLeI652/gVutyphcO+2AX66FjgSdBQO/ I0buOt1XZzBJ6zUjZaz4yKwU2Rt9fX7quQWFQfJ9gYcYp+j5LzTagEL7BFEr3wNJQnsiG2 0KDAb60E0Zc2fR1RXmOMEO/3b0poQP3S6RP152Wv1KxUqviXrrn0JXiOIuMT8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j9S376jsPzlBH for ; Thu, 22 Oct 2026 13:40:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c24e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 22 Oct 2026 13:40:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: c7523e8cfbd0 - main - tcp: fix incorrect assertion List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7523e8cfbd0fa8f8a9dc6c8864bf138b7cffde8 Auto-Submitted: auto-generated Date: Thu, 22 Oct 2026 13:40:51 +0000 Message-Id: <6ada1263.1c24e.36b110e@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=c7523e8cfbd0fa8f8a9dc6c8864bf138b7cffde8 commit c7523e8cfbd0fa8f8a9dc6c8864bf138b7cffde8 Author: Kristof Provost AuthorDate: 2026-10-22 13:38:31 +0000 Commit: Kristof Provost CommitDate: 2026-10-22 13:40:29 +0000 tcp: fix incorrect assertion tcp_autosndbuf() asserts that the buffer is locked, but it should assert this about the send buffer, not the receive buffer. Fixes: 7146ad04f18e ("tcp: refactor tcp_autosndbuf() and associated sysctls") Reviewed by: tuexen Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netinet/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index d11a2b745382..b5f36d83f5a2 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -2154,7 +2154,7 @@ tcp_autosndbuf(struct tcpcb *tp, u_int sendwin) struct socket *so = tptosocket(tp); u_int lowat, newsize; - SOCK_RECVBUF_LOCK_ASSERT(so); + SOCK_SENDBUF_LOCK_ASSERT(so); if (!V_tcp_do_autosndbuf || (so->so_snd.sb_flags & SB_AUTOSIZE) == 0) return;