Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3661930ioo; Mon, 30 May 2022 07:04:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3Rqol+mGrSLpApSuJ1p32LeCG2S4wauEuopohgNepnVUBi88n/tCrJkLzR/4LET+oUFdp X-Received: by 2002:a17:90b:1c8f:b0:1b8:c6dc:ca61 with SMTP id oo15-20020a17090b1c8f00b001b8c6dcca61mr23200561pjb.13.1653919480238; Mon, 30 May 2022 07:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653919480; cv=none; d=google.com; s=arc-20160816; b=LLWe4D0xC0CNfMfvR7JD6mKz6RG4YZXndlFMO7g18eBjwvNCqYPLXqEpc8HFN5DYU0 YOWNgdNtVZq/a/srJW11wIn9ZlLcgJD23ddQq6S9qdHAbIU4XwL5K5NWl0F08s1bGfmW e3MH9A1yUWnYRfHz2QVUmFt5nuY4KIssrsFb9Ok+KBYkFiDgdt+ntkyXZ/BXGum6GKey 8QPmri4Q+NJOVnHz8k1I7dIcXYFSZ8RfwqJfrZMEOfEShUwCKHi+n5KuqWDi0SxRYX5M srERQiSkbz+Qh/EwpwVwML4wfDmkIX9uwuD4JawncrVb4bcuZLbbPjFogW9f3PzbKstF JsLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=C+U803PsD05rTNoisE+ikzBWtw7fVVtUPD6fXlsX50E=; b=c1sF7Lmc+VhuUEArXbFR16cyyPxVLFmrtqj9ZUxu2cGHVt7q7d1+ehjPzRZFOYyrkc 2Wi9L1rHC7A0DFOe1eVxXuEmbESwd1u5s8iIMIl+ReF8ZbovZb3MxxEFMXvSDNHy4Pb2 EyQJD+rMv9akMT+YNB7QBONyXgaOXL5y5Wxdh8ITjj4ZBX+eiUlHMYR7qfYF18hPWmWc 8go0HorfN41FVkyx6XE0wEGiIRrOuet+ddJbqh7aoY+yBEQo/TQBDSCdKeU/v0o+JNZb NTIQ2AKII3722Zh1lFZeziP+qcoO4TjD+Rs6kxwhgdI/9EzKPxqzACoDdDXto/62RpPB Ombw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxdogstudios-com.20210112.gappssmtp.com header.s=20210112 header.b="ULb/k7Bi"; 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 h3-20020a056a00230300b005189558de07si11163423pfh.291.2022.05.30.07.04.25; Mon, 30 May 2022 07:04:40 -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=@foxdogstudios-com.20210112.gappssmtp.com header.s=20210112 header.b="ULb/k7Bi"; 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 S232817AbiE3LoY (ORCPT + 99 others); Mon, 30 May 2022 07:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbiE3LoX (ORCPT ); Mon, 30 May 2022 07:44:23 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CA8299 for ; Mon, 30 May 2022 04:44:21 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id b7so10590822vsq.1 for ; Mon, 30 May 2022 04:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxdogstudios-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C+U803PsD05rTNoisE+ikzBWtw7fVVtUPD6fXlsX50E=; b=ULb/k7BiJlfwHV9rm6q7f16Gx4e89n+FWWmSXbgHHF4samXHhsZ0+l8itSka5+pcA6 zwkav8dhxp4ibEcQMOj4dPEYb14cWOr7SuekeXbBee1Pmg1DsoX1ShDbFawEYYLH6Rcq LOvb8zfiLY4qiih+pe2j0OfJTmT67EisvgKweQGEkqIBCnnDnKA84nWzLrtiL4juA8n0 OyAMk/CSMn7+OOJF68ji0rYLnecdPAUy0FHT6RFhB3oMy/RqjhqX75bGaUorPprDRWMT tu0KDpowTOfRyhqcb4uLWfryMlRzxqQj+EwqBcLQXFY+fzZ58r8Cha85gkhoF0i5/IQI be6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C+U803PsD05rTNoisE+ikzBWtw7fVVtUPD6fXlsX50E=; b=Aa5emCpH3YIopJu6LvGQ4Y5QoAatxM7vRjsfSkuhTDGP4SgibUVMztmU8Hv7nVdIyl OiW2oeKmYT6vTPGQnfzzuYX7XPJ8xF/Gbrhnayo+UeD8xXuL4nffYDwmOwamp+eSBijJ 9ZfcbMwXm7R9ROsQaEQZ1gA9Ww9Kk99i2rz7yc0zt5Be1upIi00ZCuIn3zn2NZ1GTz5X Sp3tDGhnw4CgR2bEUEB7k/mcTVDGKH/Zg7OD1yDhErWs9B5qXIbSyFh4vzIsEEKN5HYa YkGBk01Vc4Iq3LQlxaumI1BJ8euDkM+byZltbRmyeEcf7fZwsSHhRvx5qfgmKLlkgOdO PNkA== X-Gm-Message-State: AOAM531Qc09JwLyeojfD16ZKxdS2aPEnjTzTNWZ2mu9f4OqInVdAbNbg ox66wdVCCzh/EcRo6hxQwbiBB8C6Ess8Kvxa73Cu8g== X-Received: by 2002:a67:d91e:0:b0:337:935e:517a with SMTP id t30-20020a67d91e000000b00337935e517amr18117504vsj.19.1653911060435; Mon, 30 May 2022 04:44:20 -0700 (PDT) MIME-Version: 1.0 References: <24e95c8b-dc05-0d00-50bb-58b71c5baf94@molgen.mpg.de> In-Reply-To: <24e95c8b-dc05-0d00-50bb-58b71c5baf94@molgen.mpg.de> From: Peter Sutton Date: Mon, 30 May 2022 12:44:09 +0100 Message-ID: Subject: Re: [Bug] [Deadlock] Kernel thread deadlock in rfcomm socket release when connect interrupted To: Paul Menzel Cc: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Matthew Leach , Lloyd Henning , linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 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. > 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