Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3319111imw; Wed, 6 Jul 2022 22:47:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vZ4KGJoKvWvLq8pMlwZYQSa704hudPtStnbYQyPuQ5TQXh+jIBHZt5rEA4iszs0aDz9izQ X-Received: by 2002:a05:6402:358b:b0:435:828a:a403 with SMTP id y11-20020a056402358b00b00435828aa403mr60186328edc.117.1657172848925; Wed, 06 Jul 2022 22:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657172848; cv=none; d=google.com; s=arc-20160816; b=spcXXmzv+GzH1F3heAuM6qnJ1NbEKfVc8x3JLJMKybV6rssqECuwWm5Iy7QgSMVksy 1V2XZq606kZo0EjqrpL9V4XQYzJX7hsrmmI1TeCTQYVAwKughbFiODiMX06LM/iWbOPk O493oUIdcLIHzv3BW5DfWJ5nIdh4DykdiwqTWVE44U4e/XXWucgikJrFWdhVjNyI1SmU Q+wxQpBrFk9muM1Gb+QOAwZhTRmomwYsfsOYy/eg2iB20zdeKfdL5XvjEpo1G5JOLzZz odGbC40Hww30jir8sOm1vG05iSxDDMrITXruBEfWDULTSlchtLfEfTaeXoCK5IMMh+ZV wDrg== 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; bh=EFmv7AC9FdJXXp5eudCaoFCT4d//cxTDN/nTYcE+isk=; b=HNe5hf2O2QHAEjTbzIPDI23YXyKQuU57AjDlUuGg5pNUvKKaUmVfOVdWT43UEbCuuO 31sXnpQkcz465uPv+XAfJ6kmNvnANP3ZWLyWjBqUNru5n974s5USp+60LepN/OMrAr8A ZD0WH8c3f2X2rPgg0h14HthxOUFAwKeqFEK0J4vEK7Bbg1hM6qOZUEl4pef63QAiD/Rt jlGoAPvYbG9u0XBzXEd6KEVmZPvO3Mk0B1sIwN3Z2av+w5nQffKwMd2NT7uN5QN7k3nx yHIHVmhVV8vihMldF32sAFg7hIRuM0+u2aYV6Vxv6U/tD6B22V5CG2MhZ2luFcwV+j88 d5vA== 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 h8-20020aa7de08000000b0043a6d29e242si3110654edv.198.2022.07.06.22.46.46; Wed, 06 Jul 2022 22:47:28 -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 S229870AbiGGFpZ (ORCPT + 99 others); Thu, 7 Jul 2022 01:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230440AbiGGFpY (ORCPT ); Thu, 7 Jul 2022 01:45:24 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39EE63138F for ; Wed, 6 Jul 2022 22:45:23 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1o9KKG-0001Ic-Dn; Thu, 07 Jul 2022 07:45:20 +0200 Message-ID: <577c7140-a30c-ca06-a81e-c791e44b1321@pengutronix.de> Date: Thu, 7 Jul 2022 07:45:16 +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: [BUG] BLE device unpairing triggers kernel panic Content-Language: en-US To: Thorsten Leemhuis , Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" , Marcel Holtmann , "regressions@lists.linux.dev" , Pengutronix Kernel Team , Tedd Ho-Jeong An References: <8d5c4724-d511-39b1-21d7-116c91cada45@pengutronix.de> <1d1b76cf-df6f-3935-5cd2-c45ea78f2c33@pengutronix.de> <1a5ec80d-690f-285c-3da8-ccdaf5516d85@pengutronix.de> From: Ahmad Fatoum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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, On 04.07.22 14:11, Thorsten Leemhuis wrote: > Hi, this is your Linux kernel regression tracker. Top-posting for once, > to make this easily accessible to everyone. > > Looks like the discussions to fix this regression got stuck. What can be > done to get thing rolling again? Or has progress been made and I just > missed it? Ciao, Thorsten No progress has been made as far as I am aware. I am reverting the commit introducing the regression on my systems and haven't yet had the time to debug this further to help find an alternative solution. Cheers, Ahmad > > On 24.06.22 21:59, Luiz Augusto von Dentz wrote: >> On Fri, Jun 24, 2022 at 5:53 AM Ahmad Fatoum wrote: >>> On 21.06.22 20:52, Luiz Augusto von Dentz wrote: >>>> On Tue, Jun 21, 2022 at 1:32 AM Ahmad Fatoum wrote: >>>>> On 20.06.22 22:18, Luiz Augusto von Dentz wrote: >>>>>> On Mon, Jun 20, 2022 at 3:06 AM Ahmad Fatoum wrote: >>>>>>> Disconnect of connection #1 being processed after new connection #2 >>>>>>> concluded sounds wrong. Would I be able to reconnect >>>>>>> afterwards or would all connections, but the first, be directly >>>>>>> disconnected...? >>>>>> >>>>>> That depends on the order you have queued the commands, it will be >>>>>> processed in the exact order it is received, that why I said it is >>>>>> single queue design, and it is done like that to prevent messing up >>>>>> with states since we know the exact order the commands will be sent. >>>>>> >>>>>>>> otherwise we need a >>>>>>>> different queue to handle command that abort/cancel other already in >>>>>>>> the queue. >>>>>>> >>>>>>> Is the revert an acceptable interim solution or are there issues >>>>>>> I am missing? >>>>>> >>>>>> Afaik there were problem with concurrent connections request, so what >>>>>> would really help us here is to have some tests to emulate this >>>>>> scenario with our CI, in the meantime please check if the following >>>>>> fixes your problem: >>>>>> >>>>>> https://gist.github.com/Vudentz/b4fff292c7f4ad55ca3299fd5ab797ae >>>>> >>>>> Doesn't help unfortunately. First pairing works as before. >>>>> Second still fails: >>>>> >>>>> Bluetooth: hci0: Opcode 0x200d failed: -110 >>>>> Bluetooth: hci0: request failed to create LE connection: err -110 >>>> >>>> Can we try to add a test in mgmt-tester to reproduce the error above? >>> >>> I am not familiar with mgmt-tester. What information do you >>> need to reproduce? In the meantime, can we revert the commit? >>> I understand that this may break other uses, but I believe >>> previously working stuff should have precedence.. >> >> Have a looks at: >> >> https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/test-runner.txt >> >> And then run with: >> >> sudo tools/test-runner -k -- tools/mgmt-tester >> >> Btw, can we have the exact steps to reproduce it using bluetoothctl if possible? >> >>> Cheers, >>> Ahmad >>> >>>> >>>>> Cheers, >>>>> Ahmad >>>>> >>>>>> >>>>>>> Cheers, >>>>>>> Ahmad >>>>>>> >>>>>>>> >>>>>>>>> We've been deploying the revert for a while now and I just posted >>>>>>>>> it to the mailing list[1]. There have been other reports >>>>>>>>> of this issue with different hardware too and fixing sent_cmd >>>>>>>>> would likely be too complicated/time intensive for me. >>>>>>>>> >>>>>>>>> I am happy to test future patches that fix this properly though. >>>>>>>>> >>>>>>>>> [1]: https://lore.kernel.org/linux-bluetooth/20220616092418.738877-1-a.fatoum@pengutronix.de/T/#t > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |