Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1560895imw; Tue, 5 Jul 2022 11:33:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vld2ebuf4r0LN0YlT6bk/LLIR73rtSrguVnFlBArn4tahQTLEg5Bt8Aspl39a2YSTjs51b X-Received: by 2002:a05:6402:ea2:b0:43a:1278:533c with SMTP id h34-20020a0564020ea200b0043a1278533cmr22655264eda.77.1657046024607; Tue, 05 Jul 2022 11:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657046024; cv=none; d=google.com; s=arc-20160816; b=vvB0sv4jVxL0msnlmv/trUYL5vddIghMA+/85Vhf/O9+8xNcAtW6CkJT75Zz/QV51w e7TpqmodFKRU7b82ZSsyxq365Yk0SVRAyJ8JXnWOPzK4oE3QKaPGm/kP/pirX8iS3DkC OIVle85xea656y/kJntmJeqx4DAjjhHNDBqdWAg+lpi4wlt0b3sgys++0slhcZvAeHqm m42Tng5SKziyr/0Mvj29bzsDmKZ91a5EV1oV5yFnPL/vzhw0JsI2elm9glLnMjmAE57x ukA4LfYcHS0vwFvIDoNft62Wg0oNy/amQfZhM2GIQlxWiwxojU2KKlpNT7DAZWVs/m+J WF+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=voKD0PVW55LrHn3JFvlJkL2Q75/V1cqB9TLKRQUPGTY=; b=KjDYqPa++66bA4lbUtsNjKEYegZAc8ZWivVDONGyVmGmxAfDfM+v493wTR3ZfhC+aV a+F29P1kfEcMiXeICDnkf6Nel/XPyBu03byzXBrX1MZtZc5GeFjUk5ZeCERoGHY7H9D1 D7+2rDiKla3CFJ3UTygz0mfj9MTjCyzLq2TH9i092F1XRlcAvpDtMV0ULGWOEWizCw22 M47Y3WbN0XQ2Ew9cVXNZHy/MY+1m6D82wihur0T+0wl+OhxPagRVJaKNJiORg0jyJLsV 44vKgOqIvwEKVeey0JpbCxduHLc21gIXceOFAqyQfBDykMYOqEfFvkR3Yh+ZfwAi1hJ8 0Y2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U3qKnsZ6; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a05640242c800b0042d91401df0si20583994edc.133.2022.07.05.11.33.08; Tue, 05 Jul 2022 11:33:44 -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=@kernel.org header.s=k20201202 header.b=U3qKnsZ6; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230119AbiGESaS (ORCPT + 99 others); Tue, 5 Jul 2022 14:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231764AbiGESaR (ORCPT ); Tue, 5 Jul 2022 14:30:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75ADF1A806 for ; Tue, 5 Jul 2022 11:30:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F2FE9B818C6 for ; Tue, 5 Jul 2022 18:30:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id A5F58C341CE; Tue, 5 Jul 2022 18:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657045813; bh=TeUecqSICSnRRpzt8mjIXz9YEWCTnMP75aMFIG25e+Y=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=U3qKnsZ6iTyYlcRmrBATV+HSbzY+9KhmE16/w7+dISREZ12tMJswsctrhm1pNFZOe sK/2eYvSGsxO0UfixNfzNOeaezyPUyVaW18lo4Lt+BPSzWOKEyaZWGQYDkG2quYi2D ZJnLz/b9R6eItWbupQultPc0NW00EWrjxw6/EgebBif5vOkGQVqnu9q6W1xBQcLDdR YFaGWZd3tfVWgcOlfkt8SDz9ZcGMQfUZ5N3JgMMmkcJH1KS5t67LJ4uLu2+bfNWNqr grW+pvcD8Qfk86AVFWZ2eHYvxXflvFEjRWYETXW0ZZ9OtqByHDjU+ofGZQpP77zUbO RTCfxNKzJqoMA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 8C549E45BDD; Tue, 5 Jul 2022 18:30:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: core: Fix deadlock on hci_power_on_sync. From: patchwork-bot+bluetooth@kernel.org Message-Id: <165704581357.4649.14518954440800878534.git-patchwork-notify@kernel.org> Date: Tue, 05 Jul 2022 18:30:13 +0000 References: <20220705172501.1610923-1-luiz.dentz@gmail.com> In-Reply-To: <20220705172501.1610923-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Tue, 5 Jul 2022 10:25:01 -0700 you wrote: > From: Vasyl Vavrychuk > > `cancel_work_sync(&hdev->power_on)` was moved to hci_dev_close_sync in > commit [1] to ensure that power_on work is canceled after HCI interface > down. > > But, in certain cases power_on work function may call hci_dev_close_sync > itself: hci_power_on -> hci_dev_do_close -> hci_dev_close_sync -> > cancel_work_sync(&hdev->power_on), causing deadlock. In particular, this > happens when device is rfkilled on boot. To avoid deadlock, move > power_on work canceling out of hci_dev_do_close/hci_dev_close_sync. > > [...] Here is the summary with links: - Bluetooth: core: Fix deadlock on hci_power_on_sync. https://git.kernel.org/bluetooth/bluetooth-next/c/bf909caec390 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html