Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp61272imw; Mon, 4 Jul 2022 05:19:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uR6liwrm0Va+n46xSrhQjLxJwkQ7iY9/wazDD6Ahb2IMylA3grTwWtkx3gviHvYmhFcmFx X-Received: by 2002:a17:906:846c:b0:72a:4b4f:b1b1 with SMTP id hx12-20020a170906846c00b0072a4b4fb1b1mr24839183ejc.255.1656937153777; Mon, 04 Jul 2022 05:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656937153; cv=none; d=google.com; s=arc-20160816; b=AYJjymnf38Xxh6CJhHK4Wic2iIrh7JoXjShoMbES3k1AERgFu9CDw04MDcIVsnA2ID xLS/g5j86L5AbfqISM4qX2f3kawFOu0DOtpowLyUFDaiiHeYucUy5g0ht/k3//4nvwxO xL0VDPPsKjbJb8162v02HE9eZG8VedXKI/g2cXmyQuAAISIxywaJEgAVAK0/bubDNK1t Bt4ZNsGKZWlgK7bvzoICBtHqKxPIesZuTRf+lePhh/gHRhhnqtTxF6g32OHlNc5pnzw7 3pt9kpTlXIYUHeymBeWuCFROO+AJgfE00GypNW3v90jGCQtmHZNHG6prztPkHlh4gGG3 GE1A== 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=bt/HQs6n/1LOix2N8V1yP1akMWaADoNXnMmzEbQQcHE=; b=vujlOTk5TwfmFbkCyEezGP+D3lbNE6eEFWlI1sOSZX5T8+BvBgUZ5MzMAriL+TI9Fi R1BPQJtzKA2dCiFzztl7HhB5tGtKZIQFDOx0458lJFNiQO76q4Z/tM2DJUB5JWHn0/rU fpSM7vjYvU367siRQRfhxmEnqMvLZuxAbO7xOde1wrTiyyBycVbAHS2O05xS0lbR3WRc 6X4IugVBgR2Hb2VzMtbTjLF0TPQMuV0NtMO1YL2MskNBgI8pjayTCRSVmPFEeQLf/JOy NlnIYFyIfE7VIab2XUsXcoGhuDQc3Zi3X6NQJChPKGcrSYcmtiPWeGfJIBOlbMPD2zwu Lb/g== 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 dn8-20020a17090794c800b007263b593ee9si33734960ejc.526.2022.07.04.05.18.34; Mon, 04 Jul 2022 05:19:13 -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 S232026AbiGDMMx (ORCPT + 99 others); Mon, 4 Jul 2022 08:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233943AbiGDMMm (ORCPT ); Mon, 4 Jul 2022 08:12:42 -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 4500E1260B for ; Mon, 4 Jul 2022 05:11:34 -0700 (PDT) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1o8KvM-0005Uz-ER; Mon, 04 Jul 2022 14:11:32 +0200 Message-ID: Date: Mon, 4 Jul 2022 14:11:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: en-US To: Luiz Augusto von Dentz , Ahmad Fatoum 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: Thorsten Leemhuis Subject: Re: [BUG] BLE device unpairing triggers kernel panic In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1656936694;b5d26f92; X-HE-SMSGID: 1o8KvM-0005Uz-ER X-Spam-Status: No, score=-1.9 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 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 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