Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2515682pxb; Mon, 18 Jan 2021 21:54:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxYszH3XPySt3dGZOdWp4+vzs7yyEjfYSTEP+1ZL5RREWL4bElFzATB1Y52lcRWycbUV/Z X-Received: by 2002:aa7:d511:: with SMTP id y17mr2159101edq.112.1611035639956; Mon, 18 Jan 2021 21:53:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611035639; cv=none; d=google.com; s=arc-20160816; b=0E8KnH+QEAR00cWU745wXIROuuuQypiaI5ZfkaBXGcfS7j9tqtR2RpehGmF4pWzcdl UOwaZCqaMF2a9JzqSJKXaerg3r4SZ2v5G5ap5M35RCN0/2HnydYXXUk9em65W12WrIat 1PsHHCLWIP8o74L70j8+5RdoJhEyj+5HZIRiyv5awaUyO7S7T+t5XbIkBIqBjswdfHMt UsBVWgUR9ZPNeicvGNcVtSJoGunIUErkLPnaLrm+ct5yqfJCv58VxfXKZLQU6jM9GVU5 TpXFNMGZ306N+040/9QLXqz9UGpAR2gYjiLtFvQE6Di52lsAXtsUJWX/DbyPgLd3eYVY xN2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7SQ+TdpsIB/M1d/hoT2lzojgWTa2ANegqAecdm8BWJk=; b=QL1ZuWQiTOuxWmrIUHsqmZ5z3mgptLumBNF4uHW1HCJQBRkyofeLAtqr68rRU00bdv N6fC+2lpTGrIRNuoBrdbToS97zZZIEv87uqLkzrEuhOSMnn/8+aa1auUln2RvUewKrEn M4GO9LUarc4jqGdxVWhuAazM9PpGM7NXR6F/SxDIvxqxWoJXoSfw12cgGe/GVwMeUL1P Oi3RhhvNn1xmgs20oliWPpJIyJ9Y6ZNhNXN9n89QBdzivVg7SMSuNQy+vvr7+N4W8F4c 2sQ+qJjq8li2Tp32BqmZiY41Oraz4w8zjRSPAhF+UAHoe6tdI2RjkMDl/SMixQbiu/Fx QMaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=INI1rIcG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si853820edr.547.2021.01.18.21.53.37; Mon, 18 Jan 2021 21:53:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=INI1rIcG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729988AbhASEDu (ORCPT + 99 others); Mon, 18 Jan 2021 23:03:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:32908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729899AbhASEDE (ORCPT ); Mon, 18 Jan 2021 23:03:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0ECC920867; Tue, 19 Jan 2021 04:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611028943; bh=xx6k3yUK3ETlUzVTgZakpoq+cUzB70gWfPejY4ApzAE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=INI1rIcG/YgwrlXfSOa04rfIkxP4X8Fs8LpxjdkAFJPaTwZbo1YIkQCc4/DRQhMen BGxZMV8qErgpRJY1YgUNNWMDLX03CSVlgtrELFDtRlaeQzNv/MG76Ywy3eoKdaKUa0 /EXmYcVvKKgauyLN9V0c5PsL3hipiwFBeZeTg19IIwTx0rhZYtfgRLscReEhxFZ5jJ NcKuTI56qKg7ESuDl0ZW/BTmjCLzbJYzgAwjcItrcvLvJSrS5h3Rs0EaNFSIy24heT S7o6mX/YHJaTSjUKLUbpYJo7xj8yD9Eoik3D1V9VR/hcUA7helBWsfASovBJiB+Q7s S/gXkuo6B7pGA== Date: Mon, 18 Jan 2021 20:02:21 -0800 From: Jakub Kicinski To: Enke Chen Cc: "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Eric Dumazet , Yuchung Cheng , Soheil Hassas Yeganeh , Neal Cardwell , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Maxwell , William McCall Subject: Re: [PATCH net v2] tcp: fix TCP_USER_TIMEOUT with zero window Message-ID: <20210118200221.73033add@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210115223058.GA39267@localhost.localdomain> References: <20210115223058.GA39267@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Jan 2021 14:30:58 -0800 Enke Chen wrote: > From: Enke Chen > > The TCP session does not terminate with TCP_USER_TIMEOUT when data > remain untransmitted due to zero window. > > The number of unanswered zero-window probes (tcp_probes_out) is > reset to zero with incoming acks irrespective of the window size, > as described in tcp_probe_timer(): > > RFC 1122 4.2.2.17 requires the sender to stay open indefinitely > as long as the receiver continues to respond probes. We support > this by default and reset icsk_probes_out with incoming ACKs. > > This counter, however, is the wrong one to be used in calculating the > duration that the window remains closed and data remain untransmitted. > Thanks to Jonathan Maxwell for diagnosing the > actual issue. > > In this patch a new timestamp is introduced for the socket in order to > track the elapsed time for the zero-window probes that have not been > answered with any non-zero window ack. > > Fixes: 9721e709fa68 ("tcp: simplify window probe aborting on USER_TIMEOUT") > Reported-by: William McCall > Co-developed-by: Neal Cardwell > Signed-off-by: Neal Cardwell > Signed-off-by: Enke Chen > Reviewed-by: Yuchung Cheng > Reviewed-by: Eric Dumazet I take it you got all these tags off-list? I don't see them on the v1 discussion. Applied to net, thanks!