Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6850247rwn; Tue, 13 Sep 2022 09:49:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4DQFn5R30Acpw3NbgIxcdWUMd1VeSEE+Hku+yp4J8UMYSOjlbyU2bmE8gVsvWtNDrjM3E1 X-Received: by 2002:a63:e516:0:b0:434:9462:69cd with SMTP id r22-20020a63e516000000b00434946269cdmr26829207pgh.503.1663087787550; Tue, 13 Sep 2022 09:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663087787; cv=none; d=google.com; s=arc-20160816; b=OdAbRhCMtdHKbVgJFl7xXx+fuWtLcNtPIQe5Cv36GJ9esiQBVRJ8u5V20oo2RdyPuI qT+SBZ4eM+OLCPiJ7TIsbohr+r7BXff+Eo8lAECusfTbUAPArTP32TI5uvi0/hnpYIPN /ITsE2O+K5/qoHig5ldGsm5Z3n9/b6CMJQYyJshOmasUzjUjFsLJ3zGhHZBH6nDdyTKB dSMdRvkZzS9jxdxo3RFxo1PtQjbA5x+CD6IHkp3ctia8acqtz1Xo0eP3oo7QIUNWy+8R O/joavAs0mPYlKPYnESo8tikihuuXzBrWrft1gwj4amJYwtg3va666dr9EVgZN1lozUi 0Lxw== 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=iJYXgpyoM4W9FbPBjOJQ/lNpfrEnMjCmpPpyo4wVWhM=; b=rilAXnma799J4i4TY0xiWZTk0V0p8rkntWXHmq/W78yF4w+kzAcrJyP+/EsJDPb3FG io3wc4oDSru7A2zuseYHxKKv+rbRU6Lvle8OkY8AmA6yZgY0HFewezzN2v/XT71lNVx6 5W5Zi/m3rkf7E6QPuYN4cHJ6+HpU1iDU3+gi5PhCAn4q0fwKFi6zY+RW02n+FhXtApG2 LtGupAkIt6QICQClc+pKkI5O7mzR1hEwlnnAUBkZxOArAMg/KrSE/4yIr1QDZ4bSXI0W FfX2VPEuCx3xKHMHO9w4eJgn79gVsoPu0NktrO96534mWhjU+h1bAbeYgKyKS+97R4vp CF/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c1sxEX2I; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oj1-20020a17090b4d8100b00202d76372b3si6914837pjb.9.2022.09.13.09.49.28; Tue, 13 Sep 2022 09:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@gmail.com header.s=20210112 header.b=c1sxEX2I; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbiIMQkH (ORCPT + 99 others); Tue, 13 Sep 2022 12:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbiIMQjo (ORCPT ); Tue, 13 Sep 2022 12:39:44 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DF0953D01 for ; Tue, 13 Sep 2022 08:34:36 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id y136so12126879pfb.3 for ; Tue, 13 Sep 2022 08:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=iJYXgpyoM4W9FbPBjOJQ/lNpfrEnMjCmpPpyo4wVWhM=; b=c1sxEX2Ib8z9hy2piq5AZbUupPNtEWY5GhTSAfoPwJ/iq27se+S5LxgASuB12efoH1 4NNYkKka+Bq5ElJjsyyQa2XSlhzb6rePXZS3R994skzfukmmXL9jWV9Fx+Zut/LxvNR+ 4GvEyBdFttKdxZtYt8DOF8cqihyOY/MhhwxL5/anWQdmoIi75r9W61EaEzN8dMoy8Kql XkCHv3gZcPCADXCPBO7G5nFxIirEnZWzSzEJawyygMDYJIfcGzPvMd2NJ+qqRaGAXN11 RBhCmwfRUtZm8fGNL2XRT+Bq+iq8Kj+Lu2ieuXUiG7ed6sAu539zldX5e5XtkDycEBXP UNqg== 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=iJYXgpyoM4W9FbPBjOJQ/lNpfrEnMjCmpPpyo4wVWhM=; b=fw7EDMpVNMzzIYlsOurpgvhy3NgU5VC+rQsRdbOKj+BZdw6/LmiXit1/Rbf7/4rNsw hjTNeuO2pAmRLYiR6asnX7hHJm/9Sr5h+gV4AUbNSPUDTXvCiF9vJaKMOHQUxmX4mKBd ITtMYTOzBAluCmIjFRpeDajyLvx3YTz2rBDuroSH2Kw24VGgK+6mRX50lZnRqi1KIBdf soQDqWi47B/+c9UJr8/tbNxtVWskPnt+tPrQSNlt6vCiISx2GJI0NBEZ/Q+ceqaPpyY3 gOBEjVrziJHesSQulqSBxkXq9gf+KA9AybQxx7gWxa1cdkBXFjlI8pw/JViBYGLNRZIr 1cdA== X-Gm-Message-State: ACgBeo36iJwDGOiA3ZLVgw1ivt3sK5+0M/QZh/9djb8rj77pxLXxJ3wQ ZeS0TYiPwz5XRuleO/tBQsI= X-Received: by 2002:a63:3d3:0:b0:439:4408:246 with SMTP id 202-20020a6303d3000000b0043944080246mr2859412pgd.563.1663083202845; Tue, 13 Sep 2022 08:33:22 -0700 (PDT) Received: from [192.168.0.131] (198-27-223-25.fiber.dynamic.sonic.net. [198.27.223.25]) by smtp.gmail.com with ESMTPSA id d2-20020a170902cec200b0015e8d4eb219sm8624175plg.99.2022.09.13.08.33.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Sep 2022 08:33:22 -0700 (PDT) Message-ID: Date: Tue, 13 Sep 2022 08:33:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [Bug] [Deadlock] Kernel thread deadlock in rfcomm socket release when connect interrupted Content-Language: en-US To: Peter Sutton , Thorsten Leemhuis Cc: Paul Menzel , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, regressions@lists.linux.dev References: <24e95c8b-dc05-0d00-50bb-58b71c5baf94@molgen.mpg.de> From: Desmond Cheong Zhi Xi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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-bluetooth@vger.kernel.org Hi all, On 13/9/22 08:20, Peter Sutton wrote: >> a fix for a deadlock for RFCOMM sk state change was posted last year already: >> >> https://lore.kernel.org/all/20211004180734.434511-1-desmondcheongzx@gmail.com/ >> >> It seems it never went anywhere, unless I'm missing something. Is that >> maybe the same problem or somehow related? > > I mentioned this on the Arch Linux Matrix channel. The `linux` package > maintainer said they had encountered the same and added the linked > patch to the Arch Linux kernel package but removed it because it > wasn't merged (which explains why my issue went way then came back). > Anyway, we compiled a 5.19.8 `linux` package with the patch (which > fixes my issue) and they said they'll add the patch back to the linux > package. Thanks for following up on this issue. I'd completely missed it until recently, and Luiz has suggested an alternative approach to fixing the problem here: https://lore.kernel.org/lkml/CABBYNZJxzA0U5bL6d0KtAkZw6yfUSNcpaH3Oh=xZFZdER8FCog@mail.gmail.com/ I'm planning to take a crack at it, but probably don't have the cycles for another week or so. Best wishes, Desmond