Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp956983rbd; Fri, 23 Feb 2024 08:36:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlp+hW1qofyOHp76Lmyl5kdz3UUAZYfyc70OrsKgz1cPKPwsm9/4m1YHbynh3jXY8cWKLgtCkn451a1gDbJFAb0ZULJvlfczm3bRA0xA== X-Google-Smtp-Source: AGHT+IE03z7jCXgCMdNW6RHCHeIRcYRdNTq2DMbKIrs34Hu8Nkox4EZWYRd+xntlqn1G5kHWGs95 X-Received: by 2002:a0c:f38c:0:b0:68f:477e:5e64 with SMTP id i12-20020a0cf38c000000b0068f477e5e64mr311879qvk.45.1708706213316; Fri, 23 Feb 2024 08:36:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708706213; cv=pass; d=google.com; s=arc-20160816; b=0axefl8mQH2lMMfHLFjRvS3esM/90WpGWvqllGl5zC45z4OwkJC3U72xvLKAg0FlRr RvpO3o46Uy20+5rC29TFC3a5HZNW34Iw3E5iJp9ezep7dbRcKuBfKUCy3RvgWS1QOCW0 3C3IVJcSrWkq7Fatm2M1x6RHNdeMvJKzJWpCYrJ8CYSw5dbI6bEajoCFmV1cCnqcKoWM igZsZSdvvNx/xQBRsEFBfgT0EK68nNXlS8fftj35S/pAlBH2moY1mj6yDuvaegzi+XlK UWdJOyHKf/N5h3nWToj57mJoBiONr8iQeeXwTVNe/h4oZWRUx/LF+XMoI/KS7tPEf8U9 hvBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:organization:autocrypt:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=daoqzDl/AlkZZztyDHQxQYGlTESryxujKE9cYptmzwk=; fh=OO+sYXJcJVZxlh7gA5aTOW2PPi7yJg7eRi3pduvLTys=; b=LbfUqd0DTJ6zls9JzXvUEZ7aMrmfn0NizpiVYcQxpqkvsJ6ZzHP2TK2RVfmzMcYTzp gCisNzNWOUiiypTOmcRyAtofHV5r9zxbeALqSPWz9G4dU9BzCcFoDoNWfswTqX0Z4iF0 XFKXCC76E4DqdR1nRDtBAOoin3LkdgK+rS4gwsjWB9iRVdHZyNwvSYbxA1r8XCSwPYfB ErfIUmLMcv3ln72jcAomVPUifQpF6b6xwVqvMRIDnyKo+aPhkyczxSsPU61SzW3Twa7K bJe3zYfrRqdYYotL1lGbIRu9uDSm2/ncz1jCSMglIrNFD9LEy55oJ/IL0O18kZ5Wkhe6 7l/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b80dq8jX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iy4-20020a0562140f6400b0068f5322184dsi14963117qvb.354.2024.02.23.08.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b80dq8jX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 05DB81C2569D for ; Fri, 23 Feb 2024 16:35:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDA4C129A87; Fri, 23 Feb 2024 16:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b80dq8jX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBBF883A0D; Fri, 23 Feb 2024 16:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708706136; cv=none; b=DGWSUQ8QhzIrxVDM/FfSE/1rb1962EohaXB4qeVz2Xhz9HAxP7bQq5HV2z24nLkQt9hEVn6jhMGZUOwlN46ERcmnhcTCwyXCcKj6K+N1rVpYrVY6FuTAPxhudcKb2WDK5koa3E1NVpTg8E8UHSjtUSKJvnDuX0+CL8DLu6QSsec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708706136; c=relaxed/simple; bh=RPr5WYlLx6M3L4Dw9KUBr4Cz5XuyraokgeEyTWWJV1Y=; h=Content-Type:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To; b=qLEb7hviXvZbJbdJno2tgbmE7BcSofEkmOaXIG7qCWSoSQT2xCGwd9u2YDso2tTwrlRr4YRg2E2CL25xNM1nBy0Z2cZgderWhRmvGpWv0lnb3CrrTytypNLDtAAVMcJTP7K6kTsE7y/6Nau67cqfqNWFFHEuYCIGzmwhJAmgdzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b80dq8jX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0A03C433F1; Fri, 23 Feb 2024 16:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708706136; bh=RPr5WYlLx6M3L4Dw9KUBr4Cz5XuyraokgeEyTWWJV1Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=b80dq8jX/zrX40B3maeIYgDYTOGPui2gaqVvhE9KIH7jYSsHfZY3IIJ+TIvY8rGDC AAKs59P+pd21UVPmZNrZ63AQXjsCvGjBuWHFDLXwvKDkZhpl1L1dh+AHTCL9MIFGt3 gUcldfAJZP/QxiZVyk/kAmNlkeXNB/yyGIxnX6whlMlG1gyBe1LA3K/NU4m1ZUOa/t ZJypPqRsedt7t5Vzmo20eQiYTA0Ez4G7VgImUoECRRdR2EQbizO5gNBMZFNcnCkgTm NDydEzmnx7Ou24bHXuBzfM1CGaTafCopsv05SBSCIiZz5JgTJJjWexY1gm5blFLpOI ORzs+l5spTPUQ== Content-Type: multipart/mixed; boundary="------------iOB1UcdNFo69IXo0qRTmA46w" Message-ID: <0585f8a1-e0ca-483d-a21f-20617192cb28@kernel.org> Date: Fri, 23 Feb 2024 17:35:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net 05/10] mptcp: fix snd_wnd initialization for passive socket: manual merge Content-Language: en-GB, fr-BE To: Jakub Kicinski , Paolo Abeni , Stephen Rothwell Cc: mptcp@lists.linux.dev, Mat Martineau , Geliang Tang , "David S. Miller" , Eric Dumazet , Florian Westphal , Kishen Maloor , Shuah Khan , Peter Krystad , Christoph Paasch , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, stable@vger.kernel.org References: <20240223-upstream-net-20240223-misc-fixes-v1-0-162e87e48497@kernel.org> <20240223-upstream-net-20240223-misc-fixes-v1-5-162e87e48497@kernel.org> From: Matthieu Baerts Autocrypt: addr=matttbe@kernel.org; keydata= xsFNBFXj+ekBEADxVr99p2guPcqHFeI/JcFxls6KibzyZD5TQTyfuYlzEp7C7A9swoK5iCvf YBNdx5Xl74NLSgx6y/1NiMQGuKeu+2BmtnkiGxBNanfXcnl4L4Lzz+iXBvvbtCbynnnqDDqU c7SPFMpMesgpcu1xFt0F6bcxE+0ojRtSCZ5HDElKlHJNYtD1uwY4UYVGWUGCF/+cY1YLmtfb WdNb/SFo+Mp0HItfBC12qtDIXYvbfNUGVnA5jXeWMEyYhSNktLnpDL2gBUCsdbkov5VjiOX7 CRTkX0UgNWRjyFZwThaZADEvAOo12M5uSBk7h07yJ97gqvBtcx45IsJwfUJE4hy8qZqsA62A nTRflBvp647IXAiCcwWsEgE5AXKwA3aL6dcpVR17JXJ6nwHHnslVi8WesiqzUI9sbO/hXeXw TDSB+YhErbNOxvHqCzZEnGAAFf6ges26fRVyuU119AzO40sjdLV0l6LE7GshddyazWZf0iac nEhX9NKxGnuhMu5SXmo2poIQttJuYAvTVUNwQVEx/0yY5xmiuyqvXa+XT7NKJkOZSiAPlNt6 VffjgOP62S7M9wDShUghN3F7CPOrrRsOHWO/l6I/qJdUMW+MHSFYPfYiFXoLUZyPvNVCYSgs 3oQaFhHapq1f345XBtfG3fOYp1K2wTXd4ThFraTLl8PHxCn4ywARAQABzSRNYXR0aGlldSBC YWVydHMgPG1hdHR0YmVAa2VybmVsLm9yZz7CwZEEEwEIADsCGwMFCwkIBwIGFQoJCAsCBBYC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QoHaz lzVbFe7fduHbABmYz9cefQpO7wDE/Q== Organization: NGI0 Core In-Reply-To: <20240223-upstream-net-20240223-misc-fixes-v1-5-162e87e48497@kernel.org> This is a multi-part message in MIME format. --------------iOB1UcdNFo69IXo0qRTmA46w Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Jakub, Paolo, Stephen, On 23/02/2024 5:14 pm, Matthieu Baerts (NGI0) wrote: > From: Paolo Abeni > > Such value should be inherited from the first subflow, but > passive sockets always used 'rsk_rcv_wnd'. > > Fixes: 6f8a612a33e4 ("mptcp: keep track of advertised windows right edge") > Cc: stable@vger.kernel.org > Signed-off-by: Paolo Abeni > Reviewed-by: Mat Martineau > Signed-off-by: Matthieu Baerts (NGI0) > --- > net/mptcp/protocol.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c > index 442fa7d9b57a..2c8f931c6d5b 100644 > --- a/net/mptcp/protocol.c > +++ b/net/mptcp/protocol.c > @@ -3211,7 +3211,7 @@ struct sock *mptcp_sk_clone_init(const struct sock *sk, > msk->write_seq = subflow_req->idsn + 1; > msk->snd_nxt = msk->write_seq; > msk->snd_una = msk->write_seq; > - msk->wnd_end = msk->snd_nxt + req->rsk_rcv_wnd; > + msk->wnd_end = msk->snd_nxt + tcp_sk(ssk)->snd_wnd; Please note that this patch will conflict with the following commit from net-next: 3f83d8a77eee ("mptcp: fix more tx path fields initialization") That's because this commit modifies the same line as the one modified here. We cannot avoid a conflict here. To fix it, please use 'WRITE_ONCE()' with the new line from -net: WRITE_ONCE(msk->wnd_end, msk->snd_nxt + tcp_sk(ssk)->snd_wnd); A 3-way diff has been attached to this email. > msk->setsockopt_seq = mptcp_sk(sk)->setsockopt_seq; > mptcp_init_sched(msk, mptcp_sk(sk)->sched); > > Cheers, Matt -- Sponsored by the NGI0 Core fund. --------------iOB1UcdNFo69IXo0qRTmA46w Content-Type: text/x-patch; charset=UTF-8; name="conflict-mptcp-fix-more-tx-path-fields-initialization.diff" Content-Disposition: attachment; filename*0="conflict-mptcp-fix-more-tx-path-fields-initialization.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWNjIG5ldC9tcHRjcC9wcm90b2NvbC5jCmluZGV4IDc4MzNhNDlmNjIxNCw5ZGY0 ZWFkZGZkNDguLjAwMDAwMDAwMDAwMAotLS0gYS9uZXQvbXB0Y3AvcHJvdG9jb2wuYworKysg Yi9uZXQvbXB0Y3AvcHJvdG9jb2wuYwpAQEAgLTMyNDIsMjUgLTMyMDQsMTggKzMyNDcsMjUg QEBAIHN0cnVjdCBzb2NrICptcHRjcF9za19jbG9uZV9pbml0KGNvbnN0IAogIAogIAlfX21w dGNwX2luaXRfc29jayhuc2spOwogIAogKyNpZiBJU19FTkFCTEVEKENPTkZJR19NUFRDUF9J UFY2KQogKwlpZiAobnNrLT5za19mYW1pbHkgPT0gQUZfSU5FVDYpCiArCQltcHRjcF9jb3B5 X2lwNl9vcHRpb25zKG5zaywgc2spOwogKwllbHNlCiArI2VuZGlmCiArCQltcHRjcF9jb3B5 X2lwX29wdGlvbnMobnNrLCBzayk7CiArCiAgCW1zayA9IG1wdGNwX3NrKG5zayk7Ci0gCW1z ay0+bG9jYWxfa2V5ID0gc3ViZmxvd19yZXEtPmxvY2FsX2tleTsKLSAJbXNrLT50b2tlbiA9 IHN1YmZsb3dfcmVxLT50b2tlbjsKKyAJV1JJVEVfT05DRShtc2stPmxvY2FsX2tleSwgc3Vi Zmxvd19yZXEtPmxvY2FsX2tleSk7CisgCVdSSVRFX09OQ0UobXNrLT50b2tlbiwgc3ViZmxv d19yZXEtPnRva2VuKTsKICAJbXNrLT5pbl9hY2NlcHRfcXVldWUgPSAxOwogIAlXUklURV9P TkNFKG1zay0+ZnVsbHlfZXN0YWJsaXNoZWQsIGZhbHNlKTsKICAJaWYgKG1wX29wdC0+c3Vi b3B0aW9ucyAmIE9QVElPTl9NUFRDUF9DU1VNUkVRRCkKICAJCVdSSV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