Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp480430ioo; Thu, 26 May 2022 07:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxWnhbvVHsVZaGUwn/z4gQRnpYFgZEkwu+JH3gcJ57Wpew8NKj1u3ARI+F5DRbNPOFYEdt X-Received: by 2002:a17:90a:ba0b:b0:1e0:97b4:e0ad with SMTP id s11-20020a17090aba0b00b001e097b4e0admr3037755pjr.19.1653576695692; Thu, 26 May 2022 07:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653576695; cv=none; d=google.com; s=arc-20160816; b=NnzReKAwsGu1oko5hlBZQlxedWrxzHoDWksSYVBrWUM1bcPP4JanxCjIqDc7rSbdfY WzjtE4FUnqjk7xchzhW4U4jTqAi54V1LQpqJP7nMBu7tPLMITN4cw8MFwzJoKz3dNH70 VzRjbnVpiKqbpAt0bN1hhlFw0vDe7rSII3uT1C5vh6Xuvc5rpjaAJBvMLOXywvb0uxuG W6NjtFrZWoZwVsxijjzlc9mGje2BihjQX81zJRd/3cT1M8HI2FvzRcfZMLgrdf226qO2 agEkSi5DzfTfgd284tj1u9tDwpOvAITszJlGH/b8WLmN3CqxRTyZ/JRL/66vS56ya/sY FfMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CWcbS5L85/mEeW1mF6bU3WMw7UT8O3cm3JT79L0gTxk=; b=p0e03TG4f/+HCVWC5BYvqMQjIcqly7zNb2qGUn4VVPKygqCiCbZSIxCJNllRtAgo+A hmQi7MyaqXgPFVWLbriPdzc+vCc4rkEwum3/qMenIBZC9ag1XPgNnpstoLDK5Wu4GAFu jZfEPyaKq8ZxfVYYtCbijHUCnDyjYLlwlC3CiwW8YjA899QIqjXjggIZ/DdC0nd4CoOK qpOqRg5NIFPFhZAZHrllO7NhSnORiWGlhiAQJYV8/C6eFZXic6qn060qv7M1zwH72886 7II54vCpffPgPhpYBwoV256voVjWvK+fGxEQ3CQ3DrSditaRgy9a7PFOSYu2LfyDf0Cz PjxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares-net.20210112.gappssmtp.com header.s=20210112 header.b=v4BbHDiS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m11-20020a170902d18b00b00153bc4c8388si1866646plb.499.2022.05.26.07.51.23; Thu, 26 May 2022 07:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tessares-net.20210112.gappssmtp.com header.s=20210112 header.b=v4BbHDiS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239728AbiEYKSF (ORCPT + 99 others); Wed, 25 May 2022 06:18:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238650AbiEYKSE (ORCPT ); Wed, 25 May 2022 06:18:04 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF16F95A21 for ; Wed, 25 May 2022 03:18:01 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id s3so26382967edr.9 for ; Wed, 25 May 2022 03:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares-net.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=CWcbS5L85/mEeW1mF6bU3WMw7UT8O3cm3JT79L0gTxk=; b=v4BbHDiSDvL5R73FWR5xbtJy6LNxqmlEePT1FtrfGJ6UkSFioQszcA8rOIeRxf6iHL 0+BN0eR8A3ge/2dyAKxSIiwOOmWmxKixLr7vIcI4r97yybZLeJzbp2dfYgZ204c2idzK rmC9K9er1G3Cl5FEEMABQXaepeopRG/evCzlzWUAieWV+DXmRv4sDU5hU3nnp1g7Mpb6 He5z/JQV4zJT2NOYtfE1pzQG/7lfdOxPHCrKBk+p/cAqGl3rKL871evgBEGfRGPN3hm2 jbV5O54mDau6gzvomfvJpi5gqd2jHaKo03uVpZWZKJuwBOkAUqEhaKHAMCBI/S931Rfj iHig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=CWcbS5L85/mEeW1mF6bU3WMw7UT8O3cm3JT79L0gTxk=; b=Xq3+oexTIcd8tUZuqahOrbX7b2kPk077Dn5dC3q6NdED+r/qKf2fxUZFlBhe3DxQLS 1PWZl8lulgFax6g9d9SuvoXxOAib2zAgww16hllXv+ZD5WGh06Y1gNhK5UfPNwJTg7B2 stU3GKxqgpoga96no62t/ieWyQjPgU9DQVxkCnqT/Bhtnbo2Nvka5TvD7KwF3+xRIlWw O6bkJp2q5WQSnwzND5sDGXJc5rZhSF7FXrYw2MzkguCuD2mUevvPXtWKY53E/3KHK2v4 gtOc0+6TaTDPfpqfUyQNX+YaU8bqcA9LvqVidxw7gPTW0IQ2otJfbcFtmL0uorLNgwGl RfWw== X-Gm-Message-State: AOAM532L9L9mXDaCYpbK+5CmyeQV/OQh2cZvfcULslqMH4MxTk+8UPrJ wdQWNoo2kzaioO+bDjU5q3u7QA== X-Received: by 2002:a05:6402:2996:b0:42b:49a:6d24 with SMTP id eq22-20020a056402299600b0042b049a6d24mr30849124edb.145.1653473880217; Wed, 25 May 2022 03:18:00 -0700 (PDT) Received: from ?IPV6:2a02:578:8593:1200:2c21:b442:2fc3:f06f? ([2a02:578:8593:1200:2c21:b442:2fc3:f06f]) by smtp.gmail.com with ESMTPSA id y20-20020aa7c254000000b0042ac4089dabsm10334757edo.17.2022.05.25.03.17.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 May 2022 03:17:59 -0700 (PDT) Message-ID: <6207feca-1cd2-be15-e1cf-0ae2ff680b48@tessares.net> Date: Wed, 25 May 2022 12:17:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 5.17 114/158] mptcp: strict local address ID selection Content-Language: en-GB To: Greg Kroah-Hartman , Mat Martineau Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Paolo Abeni , Jakub Kicinski , Sasha Levin References: <20220523165830.581652127@linuxfoundation.org> <20220523165849.851212488@linuxfoundation.org> From: Matthieu Baerts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, Mat, On 25/05/2022 09:51, Greg Kroah-Hartman wrote: > On Mon, May 23, 2022 at 08:51:52PM -0700, Mat Martineau wrote: >> On Mon, 23 May 2022, Greg Kroah-Hartman wrote: >> >>> From: Paolo Abeni >>> >>> [ Upstream commit 4cf86ae84c718333928fd2d43168a1e359a28329 ] >>> >>> The address ID selection for MPJ subflows created in response >>> to incoming ADD_ADDR option is currently unreliable: it happens >>> at MPJ socket creation time, when the local address could be >>> unknown. >>> >>> Additionally, if the no local endpoint is available for the local >>> address, a new dummy endpoint is created, confusing the user-land. >>> >>> This change refactor the code to move the address ID selection inside >>> the rebuild_header() helper, when the local address eventually >>> selected by the route lookup is finally known. If the address used >>> is not mapped by any endpoint - and thus can't be advertised/removed >>> pick the id 0 instead of allocate a new endpoint. >>> >>> Signed-off-by: Paolo Abeni >>> Signed-off-by: Mat Martineau >>> Signed-off-by: Jakub Kicinski >>> Signed-off-by: Sasha Levin >>> --- >>> net/mptcp/pm_netlink.c | 13 -------- >>> net/mptcp/protocol.c | 3 ++ >>> net/mptcp/protocol.h | 3 +- >>> net/mptcp/subflow.c | 67 ++++++++++++++++++++++++++++++++++++------ >>> 4 files changed, 63 insertions(+), 23 deletions(-) >>> >> >> Greg, Sasha - >> >> Is it possible to drop this one patch? It makes one of the mptcp selftests >> fail (mptcp_join.sh, "single address, backup"). > > Does that mean the backport is incorrect, or that the selftest is wrong? The backport is correct but the commit that is backported here was part of a series that was changing the behaviour. This modification is visible in the selftests. If I'm not mistaken, we would need these two commits to fix the regression in the selftests: 69c6ce7b6eca selftests: mptcp: add implicit endpoint test case d045b9eb95a9 mptcp: introduce implicit endpoints But we don't want to change the behaviour in stable and it is better to drop this patch ("mptcp: strict local address ID selection"), it is not needed for stable from what I see. Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net