Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6852943rwn; Tue, 13 Sep 2022 09:52:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XCxYZi3esPQ+uOK9rlrbdWQNwkkhKpNqSCwizcir0IxvUJkViD3mDBnNGf5dhO13RueYK X-Received: by 2002:a17:906:2245:b0:715:7c81:e39d with SMTP id 5-20020a170906224500b007157c81e39dmr23515438ejr.262.1663087939755; Tue, 13 Sep 2022 09:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663087939; cv=none; d=google.com; s=arc-20160816; b=JSf5hBuQhqmIaIzNThNeQa9sr5OJT1Py2k4Z4sOCrCXtw6qULZVJXLfUdHMWOXNysL P0B6pxaBd0mpe1gmgQPEbQtaqHIkE1G64PHNQ/UVSHiAxOuMRAcfBM3gq15U9shUxmtx ah9UB7l/SPvDT0g9Fr9WdnDuP+eBAsmrENZxsksc8uzecKNdJNeWCDqHbXX4YKA3+Urb 3WjUi50DuGhE2bH+VBILh7/xbrFFfYGqk/qmAZpUosskXvV6lYt++vVbWY2UVbHClBYl /CCeH1jcCy3a6ZDncTlE+NtDgC587Whly5qlmqwU4msJxxobGnGK9gS7GR1SeL8ErLgx aIwA== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=dBCGD84JOeeZNpwjw7kv9az9lZ4adQ5rW1cduPu0ZCo=; b=F2lIE9++UOBy6GmW0HnDOH2XiPcc4wSwburbwVMZ8wDRHOPmcT18C3uAw1y9wIlXkb sLt09HtoB2IIbtGdxfC0SpBMXoKivcqSuLDtJ2Ggktx2wa+f09MskatlvDsDbQ8yssTs J6h5K7FK2qCuY6hXVIVmNnFU0ULKx5C+7l4pxp6K5OwtnbuqxY4HBX4lhblglIthIMTb 5PrM9mmAgm5L1+wR5OJiJOWmeZQy1ozRI/czpXdkVK+oLI/FjIdM32NhnWszR0sPTLvT Hgyz1MC4h7B0nqQdOf/USPFdkSvug8SOAJ5qGHn/qsC5626rSbvP9XImQFUXmzo+7f4y 6kDQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a17090685d300b0073d9b010074si7248374ejy.824.2022.09.13.09.51.53; Tue, 13 Sep 2022 09:52:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbiIMQms (ORCPT + 99 others); Tue, 13 Sep 2022 12:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231244AbiIMQm1 (ORCPT ); Tue, 13 Sep 2022 12:42:27 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC5F5BB022 for ; Tue, 13 Sep 2022 08:36:58 -0700 (PDT) Received: from [185.122.133.20] (helo=[172.16.40.43]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1oY7UJ-0003Pb-Jo; Tue, 13 Sep 2022 17:06:11 +0200 Message-ID: Date: Tue, 13 Sep 2022 16:06:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Content-Language: en-US, de-DE To: Paul Menzel , Peter Sutton Cc: Desmond Cheong Zhi Xi , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, regressions@lists.linux.dev References: <24e95c8b-dc05-0d00-50bb-58b71c5baf94@molgen.mpg.de> From: Thorsten Leemhuis Subject: Re: [Bug] [Deadlock] Kernel thread deadlock in rfcomm socket release when connect interrupted In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1663083419;7ef54709; X-HE-SMSGID: 1oY7UJ-0003Pb-Jo X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 12.09.22 07:23, Paul Menzel wrote: > [Cc: +regressions] > > #regzbot ^introduced: b7ce436a5d798bc59e71797952566608a4b4626b thx for this > #regzbot title: [Bug] [Deadlock] Kernel thread deadlock in rfcomm socket > release when connect interrupted BTW & JFYI: regzbot will automatically use the mail's subject as title by default, so it seems in this case that "#regzbot title:" is superfluous. > Am 11.09.22 um 17:42 schrieb Peter Sutton: >> Just following this up. Is there anything I can do to help fix this? >> Running a custom kernel is a real pain. I've been running with the >> commit revert and upgrading with Arch Linux kernel releases with no >> issue. > > (Please do not top post.) > > Have you tested bluetooth-next already? Regardless, the offending commit > present in Linux since 5.15-rc1 should be reverted. Well, I'd be a bit more careful here, as reverting commits after so much time easily can cause other regressions. >> On Mon, 30 May 2022 at 12:44, Peter Sutton >> wrote: >>> >>> Commit b7ce436a5d798bc59e71797952566608a4b4626b is the probable cause. >>> I compiled a custom Arch Linux kernel package [1] and the bug was >>> present. Reverting the commit fixed the bug. Below is the reply I was >>> writing before Matt found the suspect commit and I tested with the >>> custom kernel. Anyway, the main reason why I write this: I'm currently traveling and only took a very quick look into this, but 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? >>>> What hardware is that? >>> >>> $ dmesg | grep iwlwifi >>> Me: Intel(R) Dual Band Wireless AC 8260, REV=0x204 >>> Matt: Intel(R) Dual Band Wireless AC 8265, REV=0x230 >>> >>> We both get: >>> >>> $ lsusb | grep Bluetooth >>> Me & Matt: Bus 001 Device 006: ID 8087:0a2b Intel Corp. Bluetooth >>> wireless interface >>> >>>> As a lot of patches are also applied to the stable series, do you know, >>>> if this is a regression? Does it work with Linux 5.15(.0) or 5.10? >>> >>> Bug is present on current Arch Linux LTS kernel: >>> >>> $ uname -a >>> Linux taffer 5.15.43-1-lts #1 SMP Wed, 25 May 2022 14:08:34 +0000 >>> x86_64 GNU/Linux >>> >>> Matt tested on 5.10.115 and the bug is not present. So I guess it's a >>> regression. Anecdotally, we encountered this behaviour 1 yr ago >>> (difficult to say exactly), then it went away but came back about 1 or >>> 2 months ago. All of this is on Arch Linux, I update about once a >>> week. >>> >>> [1] https://wiki.archlinux.org/title/Kernel/Arch_Build_System Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) P.S.: As the Linux kernel's regression tracker I deal with a lot of reports and sometimes miss something important when writing mails like this. If that's the case here, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.