From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40F0D3EBF3F for ; Mon, 23 Feb 2026 00:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771805253; cv=none; b=qJB9TdY+O0oW59SznMUajyKmfPewN8zsZeMmGxzW1yKxm7mBjuNzo82AFvs3rL++fkzSYtuodjaYDYSaukdnNlvzMprOpA0BxIosIL2kdd83M5UOJ2CbKHYO7uFxacw3bps7TFjgi0PNtdSkTlUGMJy5P5mVSD5rLCGZ3J/3iFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771805253; c=relaxed/simple; bh=XL3GK1srBYNctAMCr4LIXYb0AmtCQmrv6sjvkBGn/ug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XRAz2pEv6k3GSYsaJWu26Ep8zft8sfLvCbmjup3eF/SG7faMmNGwNPaJ6hAYb3ymLgyaoh3iXBYFZBsI6R1wcg6PE96FaTbNkbdgo/nxNO5lgoXyW/4EqtTCjyTI4GpPvbbpsg0j8bQ3kJs9CdFsjTVvdzCWue/S2+pK15yf2SA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I6+/6xFa; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I6+/6xFa" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-483770e0b25so35333045e9.0 for ; Sun, 22 Feb 2026 16:07:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771805251; x=1772410051; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=WOqNCHYi5/n2sZSN3I12xrG8kdOz0JTtrUngqbnvPM4=; b=I6+/6xFabuflN1j6IDRGaaAVtNwTj4IWYSrFztIldfykNe7DpIrLOeAVVsws+Pmx1X u6Wnw2MNoDH5HH9gK3vXJaDkva5sJVirUn5ZpiGm9E9hrE1imDiDudpv8BkKU2hqVjgc iTNysnOheIjIRlJHFkywNC+0PH9RRVL2JV9qTXf9QzG1BAcNIQ6r9Kp1947b0Emh46Cu WRcvIUJQKC61ZRxAZR44E9V5Cbg4XBYHfU/Uudkwb7tGPWmqV/EiCZtnpMNSk8DVyJek pVKZGzFFqFlUeuhOjyDXec7SAzIlI04xxI8h3G5AX97QS5NjcnAyxbdnjc2vuYq+yxX0 8b+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771805251; x=1772410051; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WOqNCHYi5/n2sZSN3I12xrG8kdOz0JTtrUngqbnvPM4=; b=lwLrkJ3idJvdLQ/xSpLePFmRoPp0kmod99uzczKjBbRiz8G2LohblG2yICVN+7s16R pK1DjOesSbYD/ZOpgjEe2avuVS5lB3Ugk6ElwenlvyWzt3anLKGGCI70E6pW2sT8yNyb NwMnmJFkDnk8MkNB9Fiu46Kki+RNO5NKMdNxxAusio+B+HDf7lmCQfUWfbp8tJEDm4Jz BwlKmg67aOTFM4eITbJm4DMxLEaxFu0rOz14m/+gCxXCE1K5BuoHcUiLLpm6uclCh4cl GM52ud3g4XD5Zbw3k/5+wllOgDu7h9azx8fMspCgyP7Vuqq9jDPkJejNButc818uQRoT rR3Q== X-Forwarded-Encrypted: i=1; AJvYcCXEWudxBxtKrzqnEKThMUhbqQUgtyfUIRrUuKOsqYEuTmBBUhGzLVABZKaRlkAMGueTb+hU6gtlOVrVHB8=@vger.kernel.org X-Gm-Message-State: AOJu0YwVSlo39vYmME7CeLAAk9Z+XGyHrAK8Je5BdPL66D1AFKkA0gSc Z43LWkck9jwCG7UzDED0lhCsuh1NwlvtdkzA8E01r5ZplMtX7AdEUfzr X-Gm-Gg: AZuq6aIEWv3wG9P8V9obQ6DX5fuaHU97Ak2MJYiKLfbaobpbytEjaLYcGQ1sr44+VUA RzH/lDI9UyvIQduqcI75Hb3jlHaIKo61h09HlgtuxGCWGgTiKUDS6jPdNGYr3QFaEhvr7CxX2EF O+m7x8n84L+undjm6lq8cKo9h+Z5bvufAkWH4mmhgF6Kyho83t4+mfiAm1DB+/NE41Lcb0RPy9n iEf/7ja6cOcnt3HM0s65YOw3F3skepJcmg6ilWSzn2b2pvzXyEZKGZsKs/6fvs3IDjnZjReUmOB FqgTg6a68x1RmMAPKiFuNTHR6A7IBNf5G1d3bjhRwIg9ekiTXoHfQ4k4Uqo0Xew9Fb9G2hSu5B3 4FnDlpzI591NCaFKazalzVBm5trupcJl44vZHIR3f7W1907AKD/Dyg/BAc1H+dYK90cjPm2YpuR jgb4cywxHlTD5HZl1l33A/Gx94zaG721z+FDgNJakR9QECgVVHYi5UcSBgUX+lCw== X-Received: by 2002:a05:600c:450c:b0:480:4be7:4f53 with SMTP id 5b1f17b1804b1-483a963d656mr119551865e9.31.1771805250470; Sun, 22 Feb 2026 16:07:30 -0800 (PST) Received: from gandalf.schnuecks.de (p5b2e2ef5.dip0.t-ipconnect.de. [91.46.46.245]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483a3deb73bsm71630745e9.3.2026.02.22.16.07.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Feb 2026 16:07:29 -0800 (PST) Received: by gandalf.schnuecks.de (Postfix, from userid 500) id 451FC2FD757A; Mon, 23 Feb 2026 01:07:29 +0100 (CET) Date: Mon, 23 Feb 2026 01:07:29 +0100 From: Simon Baatz To: Eric Dumazet Cc: Neal Cardwell , Kuniyuki Iwashima , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Shuah Khan , David Ahern , Stefano Brivio , Jon Maloy , Jason Xing , mfreemon@cloudflare.com, Shuah Khan , Christian Ebner , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH RFC net-next 0/4] tcp: RFC 7323-compliant window retraction handling Message-ID: References: <20260220-tcp_rfc7323_retract_wnd_rfc-v1-0-904942561479@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Eric, On Fri, Feb 20, 2026 at 09:58:00AM +0100, Eric Dumazet wrote: > Hi Simon, thanks for the clean series. > > I would guess you use some AI ? This is fine, just curious. Thank you! Yes, I’ve found AI helpful for getting familiar with a new code base. I also use it to refine or clean up the wording of bigger commit messages. Code generation works quite well for quick, throw‑away code (like reproducers). > Can you add more tests, in memory stress situations ? > > Like : > > A receiver grew the RWIN over time up to 8 MB. > > Then the application (or the kernel under stress) used SO_RCVBUF to 16K. > > I want to make sure the socket wont accept packets to fill the prior > window and consume 8MB I suspect generating 8 MB worth of RX data in packetdrill won't be fun (unless there’s a trick I’m missing). And using regular TCP sockets on both ends would probably be rather uninteresting (no packets sent once RWIN = 0) It might be more practical to extend one of the tests to create two situations in packetdrill: 1. Zero window: 0 == RWIN < 2 * squeezed SO_RCVBUF < tracked max. RWIN < 2 * original SO_RCVBUF 2. Small window: 0 < RWIN < 2 * squeezed SO_RCVBUF < tracked max. RWIN < 2 * original SO_RCVBUF If these limits are sufficiently distinct, we could probe tcp_sequence() and tcp_data_queue() paths in detail using: * pure ACK or data packet * in-order or out-of order * within, partially within, or beyond (max) window If we can show that we can't use more memory than expected for the squeezed buffer, then the original max window size shouldn’t really matter. wdyt? - Simon -- Simon Baatz