🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6185

Re: [PATCH net-next v4 1/2] tcp: keep the route window metric when SO_RCVBUF is set before connect

#6185
From: Jakub Kicinski
Date: Wed, 21 Oct 2026 20:51
30 lines
9016 bytes
On Wed, 21 Oct 2026 21:27:14 +0530 Shashank Mohan Jain wrote:
> The problem was found by code inspection, assisted by an LLM (Claude
> Code, Claude Opus 5.5), while reviewing the commit above. It was
> confirmed with a reproducer in a qemu guest (two netns joined by a veth
> pair, "ip route ... window 4096", tcpdump of the SYN and SYN-ACK, and
> TCP_INFO of both ends, including a SYN cookie case), and with the
> packetdrill tests added by the next patch, which fail without this
> patch and pass with it.

Sounds like a genuine net-next material. Please drop the Fixes tag
completely, and repost after net-next reopens

If someone disagrees please speak up.


## Form letter - net-next-closed

The merge window for Linux v7.4 has begun, and the net-next
tree is now closed for new drivers, features, code refactoring
and optimizations. We are currently accepting bug fixes only.

Please repost when net-next reopens. There is some uncertainty
about how long this merge window will last, so please check
https://netdev.bots.linux.dev/net-next.html
before reposting. net-next _may_ reopen on Nov 2nd.

See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
-- 
pw-bot: defer
Technical Details
Message-ID: <20261021135110.785bb935@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350245-linux-kernel-netdev=dewy.ru
References: <20261021155715.30094-1-jain.sm@gmail.com> <20261021155715.30094-2-jain.sm@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350245-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 1/2] tcp: keep the route window metric when
 SO_RCVBUF is set before connect
Date: Wed, 21 Oct 2026 13:51:10 -0700
Organization: Usenet Network
Message-ID: <20261021135110.785bb935@kernel.org>
References: <20261021155715.30094-1-jain.sm@gmail.com>
	<20261021155715.30094-2-jain.sm@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="59634"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:J1Ows69dDQkmkAgoRa3bqD7dm1E= sha256:Yl1Wik8fEJj7TxkDPwwIMQN1E8UgDj+NSsL8us31LOY=
	sha1:KRSH+2o17evBSbmEKK7hJRtdMc4= sha256:oiOmWwodeTPd7f29ugmuQ8Uu3bNe38eov5hgJMy61pk=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 1D4D411110E; Wed, 21 Oct 2026 23:51:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id s-l3BI1c9Nfx;
	Wed, 21 Oct 2026 23:51:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350245-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 9A4F51110E4; Wed, 21 Oct 2026 23:51:18 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 09B302ED9D; Wed, 21 Oct 2026 20:51:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792615876;
	b=YJRh/qoRIP9/MblZxcbyzwuA1rrvahhqpfmWJgOfGJTbALM6rBTLIB8yF5l7MmjEY88Z
	 97tqKr8DfnsjTnlpVzLi8rfHFIDF9T7BCRYErKWGvU7ZVsA/CKYSu5QZJE2f0l2MqqeWe
	 5R8fRZCcF7XS/jBQ1LXOKIWtIy4u02EgzUVeAcpBDA5o6Nak1q+ZooIKi8NuYzHztqX9D
	 TbVTKUU0HlKHEgoiV8NyZeD6i+fp0hYgYAh3G27z/xd0tqWES74+nFv58+KQJ1/KEl6KR
	 l5N7T25xYA9dztx7vhHK6iJJMNMKCu71dLjVdb/XNiSpNXLRnIbjWDIjR/ZjRYic46g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792615876;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=8oR1TDc30vS42tVdKEBQYLBfET+uiNtd4gBWPh5UKow=;
	b=nGX+0FH4S9Fi9FLvlYS/aPuJQSBsu/ZdONzRVJjaNaDIqNBCuF1/qW2BL6VZL3xxVARe
	 lYwiPyxRAdkjtalkx4V48gpM5SIxLeqb2zA2s5mN/lQyA29Wt109rJZKxe73fzGW4tykb
	 hiBzkw5m3a/rlDDyIymJQ8nBw+s+fGdNqdW4qnbo30T7DlVaZ/N+e/r4O23SRBbSD3XRR
	 loyLd5ccsiDDX3HdJTCEOvPMHZe0SHf7GwsdvKwSGsSA7xGmM74jXnKM6IuJ+Xx6Ys5N9
	 h8fawo/1V937ldKnC7T5tK6Sr/BglQFyncSSQPCxa5DLH1BWz8kBGkCCAhsRMDQgo4g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ie2mhpbe;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D48A606A321;
	Wed, 21 Oct 2026 20:51:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ie2mhpbe
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792615872;
	b=UgO9sn5uWX4nqqOhhyajuRdGAo6C/wep8n0v3spH6Ue513cg25N6OiX8s8LMLnijFFkc
	 YBQmz8y2UXf+qMkftVjyIygT+rRJrhLfjyohmNeWyIRjIwE01zigCsZci+0/rcNPll6pK
	 0xV749AfTnyxpe1ITLPUM0DK6L1lOE33JGSxVjMO9RCuK6pqu1Sf/wl4CO3yuEXYjKy9G
	 OLPenmJlkgnuCo8ZRk5/tSnsBXimNpR5/NJH9hDnE9eIhzq/Qg1t3rcG1FMW6j+st91T9
	 pjILKP2e1+KGI43FgFQbm5uLrL04Oz+MR87dY61LdMcrc6xVIEy2HJredqukxLt/ELw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792615872;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=8oR1TDc30vS42tVdKEBQYLBfET+uiNtd4gBWPh5UKow=;
	b=My5sCENIe6lt8FrXE4Yz1nUSS/lcFnykU9maGvZ2U7lcBVWQ9RDsdXUyGkV17AAedT1T
	 oVmftYMfZJX/EPpOFlNr3SsVwz1g3MIHpMm9wzV17YQYW4fT8Teyptt+cWEIYgcBzonDN
	 mC1uZ9/l0ELQFrXVqFRsTXZZpAvF2Wm+1Dwj13ideO/zgYUdS4yWELjqEuXV15i+ySXwZ
	 F61XW6qB8J6A2pYKn8GRRoHokcR3N2h8rAXmhLSeMkiw9eMqDJLOuYpCl5h5roGBV2QWJ
	 9+HMB427syt0rL+OSCHOnNhXvr35CcL+cKiW6fIaPkeIoMsL/9hAdFjxL4aWOVXB5yQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ie2mhpbe;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 038AC606A319;
	Wed, 21 Oct 2026 20:51:11 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E1441F000C1;
	Wed, 21 Oct 2026 20:51:11 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792615871;
	bh=8oR1TDc30vS42tVdKEBQYLBfET+uiNtd4gBWPh5UKow=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=Ie2mhpbeMqHER1Kb0zy9CbOWwdmNdVCT2pegFhnoiWhETvGcs56rXEPOBIbk0kytj
	 5TT4aXQK7MFhS3IIRwu/xRr91TaNjMIdd5PT3JYDTr/OK6RgPqplR2tylMQQJa1ATI
	 Ggqu+vi5UhVy2aCfaLpK+VGAKwpw7Xish6Nt2I28mw0M4pGwvsA0IXRkFKypCdY1lq
	 8DL8BSXSFEva2uPUZeJHOPau6w1vNULCYrGhhFcJ5B1rrySfBjSX6D/aOhxnCNkUjz
	 F6T2ijz0ZFDFImMbwjTWTC13HAvc+hg7TyFVmTlN97oZdAuRb1cUKhBbh/IcohsTw1
	 5Ej6XMQl89fIg==
X-Cc: Eric Dumazet <edumazet@kernel.org>, Neal Cardwell
 <ncardwell@google.com>, Paolo Abeni <pabeni@redhat.com>, "David S. Miller"
 <davem@davemloft.net>, Kuniyuki Iwashima <kuniyu@google.com>, Simon Horman
 <horms@kernel.org>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <20261021155715.30094-2-jain.sm@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list