Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp666274rwn; Thu, 8 Sep 2022 07:13:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Z3gFFP8na4Em8+XYWq+zF4C9aV2wdSmc2Aj5E0vBR5huJw8ZabnQc+O8SuFz6uZN2lnr7 X-Received: by 2002:a63:f50c:0:b0:430:41b3:4470 with SMTP id w12-20020a63f50c000000b0043041b34470mr8026099pgh.83.1662646398557; Thu, 08 Sep 2022 07:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662646398; cv=none; d=google.com; s=arc-20160816; b=uAy/mkc69QsLfoq5Ni8/jWDdPp8yZcyDv64NjHfbBF0oZewAsHGOTikkVs4wueTh0E 7qd5gSAuq/o/EK9Z+C6WpnqgBQ+7zNr2MV3e8hHcG/ipWiF4D/S9spxqd5f8mqN+RZyO ApZ5MxREIqdKUmL9oeFoqppZ4PwrgFacG/IilJnFaRat7z6I5gbYzwjVkn+UA+L8kgnV x6/7Td+nxsDvr9G70HCCLzUmdozjeb4V2/18BQezZwQ/feIsa9rDmAWl680pU9vSCyCD X4odgg3ZeZ+TCI4KrHbOQpEU8EAGWWTD1l+e7/NWuYIjBLW9QKt6pDADMCwdJPHIpMcu MS/g== 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=oU7r9URdkHR4hFtjwb+DGbO5ThpZ489lVmOF+LZfRK0=; b=WELgTnjCuM8oNKRP6k/RO5SgcB2VzMBfCN8zAodT4VqhLfCmoM/hpRBmPCJWg5OEUZ qRpmWa+kecfvLsGixpJ+GfWXS2cMFhGQ5vYxUWzg2FJuaIzkUtP/5M4vCRncFZBYjMfe 2yQAJjBOrPk8woNvECrcL+KtK3yVT/evzb2EGciHTULPXg6SjUzmoE2J0ZGMI9cUF4dX Nb4hVEh+YYYaWEGu8iacstAXYEkpqSn6aGGN1+x609B4e2vJ2lJJOOv1kGZeWvQeruRY CNStunGXP6rjd0hMLlznucw0Iy2vpjfwCuACebLlZ00N+cqc/1P/l0e04D/ncxbeYdRI D6kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=UQlzr6tC; 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 b18-20020a170902e95200b00177ed74e9e1si3217215pll.619.2022.09.08.07.13.06; Thu, 08 Sep 2022 07:13:18 -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 header.s=google header.b=UQlzr6tC; 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 S232163AbiIHN4r (ORCPT + 99 others); Thu, 8 Sep 2022 09:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbiIHN4m (ORCPT ); Thu, 8 Sep 2022 09:56:42 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB2A1F8255 for ; Thu, 8 Sep 2022 06:56:36 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id r18so11007467eja.11 for ; Thu, 08 Sep 2022 06:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=oU7r9URdkHR4hFtjwb+DGbO5ThpZ489lVmOF+LZfRK0=; b=UQlzr6tCetqVbCOOX2ttQ/neOUnakbzGJShT7CCa07IJuqxjOzl+EOWl/kv99025Iy rCDQcVk1pCFItNZQ/tvHphz+S7cmtNw9x42goeylzffmomGRsueAsM7xcL8I3cfWC/qF KFfnufPnVdlKSc22AbRxrP5tMpvvRvvTo+BR7MBP2Sqkf/1IFL8fMcKO/hSe+W6+tlNR SgbSCHx09n1Y8nXPKoM4arIoWokszvDSY94Pjn4G38V08HlvuJzx6+lHIeUVbqekZd1m FF5F/dlhvn8S82lH7Y00yvifqIo+ANWsQ466ROvddquwTgi1TrDwIgKG2jZtyzlNqMtf mY1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=oU7r9URdkHR4hFtjwb+DGbO5ThpZ489lVmOF+LZfRK0=; b=tKGdtu13lr684H4jEniJbTarg8rMBmK6DcaplVahdhnSk18Gzy8jPvB0hSn2U/RxQB AaPtT6ljVJksonxEmeEgZgzVJX9shIlTvLZe7d2g2c8JZux8yR1P7nUPI43aSBxCVnGX UHkiFCtvOwgiOfJvGSD7Y+nds5WAs7TN2FJtyFCFD0KfA2yVQM+rwqT0aD1EliG9SNLo rHeQvsTDkPc/R3pofbbL3koMBeHMTVZQEKc60S0j3rUAULnS5xmb/Te6tzimRzVwE+2w P0XH7WzorjAmRFNmAEFqZmZi1O1Aeg8sGB/JdDvaQqMZVAxLimThyseVZOH6nhok07qU Yt6w== X-Gm-Message-State: ACgBeo3B5bcXeB0CpTx2TbsrpDotgbub5Zi4G3A/zzvDcXJqlkpnQPiG to2b7E+RLAWEE1TbIwkn2Vch0Q== X-Received: by 2002:a17:906:974f:b0:778:ce93:38e3 with SMTP id o15-20020a170906974f00b00778ce9338e3mr588170ejy.644.1662645395092; Thu, 08 Sep 2022 06:56:35 -0700 (PDT) Received: from ?IPV6:2a02:578:8593:1200:8618:9875:a93a:7063? ([2a02:578:8593:1200:8618:9875:a93a:7063]) by smtp.gmail.com with ESMTPSA id u24-20020a056402111800b0044ebe6f364csm6002652edv.45.2022.09.08.06.56.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 06:56:16 -0700 (PDT) Message-ID: Date: Thu, 8 Sep 2022 15:56:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH net v3] net: mptcp: fix unreleased socket in accept queue Content-Language: en-GB To: menglong8.dong@gmail.com, pabeni@redhat.com Cc: mathew.j.martineau@linux.intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, fw@strlen.de, peter.krystad@linux.intel.com, netdev@vger.kernel.org, mptcp@lists.linux.dev, linux-kernel@vger.kernel.org, Menglong Dong , Jiang Biao , Mengen Sun References: <20220907111132.31722-1-imagedong@tencent.com> From: Matthieu Baerts In-Reply-To: <20220907111132.31722-1-imagedong@tencent.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Menglong, On 07/09/2022 13:11, menglong8.dong@gmail.com wrote: > From: Menglong Dong > > The mptcp socket and its subflow sockets in accept queue can't be > released after the process exit. > > While the release of a mptcp socket in listening state, the > corresponding tcp socket will be released too. Meanwhile, the tcp > socket in the unaccept queue will be released too. However, only init > subflow is in the unaccept queue, and the joined subflow is not in the > unaccept queue, which makes the joined subflow won't be released, and > therefore the corresponding unaccepted mptcp socket will not be released > to. Thank you for the v3. Unfortunately, our CI found a possible recursive locking: > - KVM Validation: debug: > - Unstable: 1 failed test(s): selftest_mptcp_join - Critical: 1 Call Trace(s) ❌: > - Task: https://cirrus-ci.com/task/5418283233968128 > - Summary: https://api.cirrus-ci.com/v1/artifact/task/5418283233968128/summary/summary.txt https://lore.kernel.org/mptcp/4e6d3d9e-1f1a-23ae-cb56-2d4f043f17ae@gmail.com/T/#u Do you mind looking at it please? Also, because it is not just a simple fix, may you send any new versions only to MPTCP mailing list please? So without the other mailing lists and netdev maintainers to reduce the audience during the development. Once the patch is ready, we will apply it in MPTCP tree and send it to netdev. That's what we usually for MPTCP related patches. Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net