Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1543266rdd; Thu, 11 Jan 2024 02:17:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWrbDh5wCjp7fzKqn9y/nTlj2+zU20/rfBQrN0bvdDBnxOLtFvgZXvU2VVsWAwmDh4of33 X-Received: by 2002:a92:cdae:0:b0:35f:eba8:4e5b with SMTP id g14-20020a92cdae000000b0035feba84e5bmr1130737ild.20.1704968260901; Thu, 11 Jan 2024 02:17:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704968260; cv=none; d=google.com; s=arc-20160816; b=GI/nRvzLl9dJ0Yqym8OHepxv/Wn8fkWUdMDY4jDnIwDmwoWVyAhNHbdibwo2R8rGJG LUOSifXqghAgw832/wAmZJst6rcrItU+wo54OSzjR5vO5Q9evariwtv/oV05nut5F0EO 2hn5etrusuR/EUXENOk8HE1i/Xp59lOKgiPxB+LqfC/PYVaGEN+4xOC64CCuI8IRAT5p Gb5WyNJaXMQQkONLlH+Y2so7+xn3yXgmZOPMN4DwCzRpJ4SzD/h7gODDRrEk8gEoAp5X 5ZC24nDTfo0qvNAgF5lwVyelrVrj88Q9eA9fzrVEHM/hhIPbvcCxdT3xhNbLmukwh9Om B0lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=unRXO3bgzqCCGiqSMIo1ZdR+Jk1lzWVg4UVCVYa4eOE=; fh=86OJ1lVOpGYnPNjf1g8aqgDXPw6P9ie/EdQns5FOmKw=; b=m1nTHoOEWm8D0UzYEbALN3U9Ja8/h8KMhuOJThaJjebYMuImmsHieSge1ChNs9e7x6 RWwsiLxtDF+viFBnl1HqEBshfPCyuyiiPPd77PQnjL9xvJ4JKEHQVOVC0fC4VSCdx3Mr FlN/XgX7nzEdCtVBml6JZxNjNB2dPENkTXj0C/JY5MZfC7HGAqPlRPiBJTyB/2xe6NJn g7H0OY1fa49oRK3AJ+e6Mc5I2WBkMb9MNATqDbOUYcmMNwTJf5cFD73Wvg8qXmlY5xf8 iZjumzoJm6cqcP4dSuie3spB2T1FY3LXWzvCyso5seeP1K1Dax50gfPf06Yzibh5wH7C e2oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=xKGMeEMi; spf=pass (google.com: domain of linux-kernel+bounces-23374-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b14-20020a63d30e000000b005cef24b3f87si795815pgg.400.2024.01.11.02.17.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:17:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23374-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=xKGMeEMi; spf=pass (google.com: domain of linux-kernel+bounces-23374-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 48D43286E44 for ; Thu, 11 Jan 2024 10:16:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D06612E70; Thu, 11 Jan 2024 10:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="xKGMeEMi" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 5566B1426A for ; Thu, 11 Jan 2024 10:16:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-557bbcaa4c0so6339a12.1 for ; Thu, 11 Jan 2024 02:16:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704968205; x=1705573005; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=unRXO3bgzqCCGiqSMIo1ZdR+Jk1lzWVg4UVCVYa4eOE=; b=xKGMeEMiLjAIaSfB9KVnefiD/cvQbAP0mBzusMOYYx0pN5A2Htd+SEf0344fAEBmEE rcBxrHudLe0sR9+P2MbVT4NCgymnmFpV0djHVXhTR1GNs3fOTTORPjjzI6f8qgfg/9wc Dfpnf969MWSjH44aBa8OrbMlpL8T8OaXDQHz5UthXBfdUojeO5cyldDt9QRctYJOW52s mL1r7VVS6I8MKgsRiwPk0nQqnyQF3efwTFNBC3iLZjDcQm6IhqeQpobsXOGddFo0L5WQ 6RfYcNQyf0krGfd7HF9xMV9bzxdnUK5G6diB63504PR0WVN6Gn2LIV1F3Tnd9DpQd8o7 ZbfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704968205; x=1705573005; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=unRXO3bgzqCCGiqSMIo1ZdR+Jk1lzWVg4UVCVYa4eOE=; b=OCNK3UCikgGkvbq+p4ZPGrypw+YvXX9scFUuGabdu0gfpjBrwdSXN+QGCu4CEHbE6k GCai8rnzntz7HSxpgCuWILZ2eyHKci0h9F/Kjp389LhkZLNJjvXeD1L/6sJKUdiOscyI 0OZmNyJ7jcL4uLINffdYw9LPMS2GDRS19DZCpwc2F6ZINgBzxTQEsHo6muxoVHpPpd6R PDxkKPkLcTKnSDp6DMl3eGdEb8fGcK2GeK3CxrZbbHrxkTEXSZjZYOPwEbc/KdX01voG Oi+hx9PibSgUidA0Oo6eAY1ZgkAJaUezfyuO44p6BleSuHPiYqrPTHYOOH6wtj23WQP3 Up1Q== X-Gm-Message-State: AOJu0Yw4G1fFXIy7gUF7erbsCohKx+OxPMsdJgoq1MBH1LN5AyEaNyG/ smbK8UioeOM2XEZv+v/XpXvOa/M98IPfyZmTHnNlyKws32Ca X-Received: by 2002:a05:6402:34c9:b0:558:8016:b347 with SMTP id w9-20020a05640234c900b005588016b347mr59573edc.5.1704968205361; Thu, 11 Jan 2024 02:16:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109031204.15552-1-menglong8.dong@gmail.com> In-Reply-To: From: Eric Dumazet Date: Thu, 11 Jan 2024 11:16:34 +0100 Message-ID: Subject: Re: [PATCH] net: tcp: accept old ack during closing To: Menglong Dong Cc: davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 11:06=E2=80=AFAM Menglong Dong wrote: > > On Wed, Jan 10, 2024 at 6:41=E2=80=AFPM Eric Dumazet wrote: > > > > On Wed, Jan 10, 2024 at 11:25=E2=80=AFAM Eric Dumazet wrote: > > > > > > On Wed, Jan 10, 2024 at 4:08=E2=80=AFAM Menglong Dong wrote: > > > > > > > > > > > > > > > Oops, It should be "SKB_DR_SET(reason, NOT_SPECIFIED);" here. > > > > Sorry that I shouldn't be too confident to compile it. > > > > > > > > > > net-next is closed, come back in ~two weeks, thanks. > > Okay, I'll send the V2 after two weeks. > > > > > Also look at commit d0e1a1b5a833b625c ("tcp: better validation of > > received ack sequences"), for some context. > > Yeah, I already analyzed this commit before. I think that the return > value of tcp_ack() mean different thing to SYN_SEND and FIN_WAIT1 > if it is zero, and should be handled separately. > > Anyway, we can discuss this part when the net-next is opened. Discussion can start now, but make sure to add RFC tag so that netdev maintainers can prioritize accordingly ;)