Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1338165rwn; Thu, 15 Sep 2022 14:16:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4GKT4/tF3hlCwhAzRmF8FiDC/hHk0ld1I5XfK/eh5TdXdFipqOv+cRvJsPgORJscEKmJmT X-Received: by 2002:a17:90b:1c8f:b0:1fb:9d43:8ecf with SMTP id oo15-20020a17090b1c8f00b001fb9d438ecfmr13191619pjb.160.1663276570823; Thu, 15 Sep 2022 14:16:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663276570; cv=none; d=google.com; s=arc-20160816; b=mm32o6RH4e/pUtsD1vNJdPdl/SInkLGHvt5clswcfvbbYrQ6wn0PZw11HXLHf07mLs zxbBzqRakMnTGQBHP0lqQPDhcnJfsBp4CNeQiWhh9t8Cmn+jJ7XcneOVka7ma9kdvyf/ mYl8Gth8QjZkzWcQeUCijLpgIz/4Xot4eVn5oV9pBbzme99ynHEYKZM2ty8ZW8L72hZx YeWb5tE3GkArbU0xS3v8WA29hnNY87lr6LdvorAekzfgq5HMIyUOPkw9TGjPLcXL6U8L vRlBHden8SiwAk5a2vRUXoTv9E/BqALqTXRl35sPu1jKZY92CyTU4XsOvLJUA3maPUj5 HGbQ== 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=ZYHUQaQlBqWINaO1ov4j0/HMEtw/O6X/eeUhInSZPbc=; b=Jnetq/rZRxh+AO4xGktL3fubBgxtUB/fPZAx9ZvwWs61rja1mF4w2jNtmknQ4UC3Dh 4jU9Gs1wi1eyyFrMYvQxvjMzRZ+NtFP47e7qkSOanvGTX29oSrdk+e6f/yNjOs/vx7Bt FJqDqAoEWwA8M2Py001Z7WmiIORl95cnND8eGrUjj+lYipd+judeiNZUxVq/5lwY376R QBkFWcWr4FsywEcVL5PrEAdFVhF+tCyNvECWn3aNVmteeYkfEQO7eV7/27R2wXOs6+yJ s5SMRJd6XFv/YtIM+Nt+v7hYKvjATiPwqPbHrkIJbva16H0wvPiiiJdn8E6M3nIGBhyb q4+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P6w5LyGi; 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 i10-20020a170902c94a00b001754bb3be28si3507081pla.415.2022.09.15.14.15.56; Thu, 15 Sep 2022 14:16:10 -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=P6w5LyGi; 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 S229629AbiIOVKS (ORCPT + 99 others); Thu, 15 Sep 2022 17:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiIOVKS (ORCPT ); Thu, 15 Sep 2022 17:10:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E9EF49B41 for ; Thu, 15 Sep 2022 14:10:17 -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 dfw.source.kernel.org (Postfix) with ESMTPS id DE3256269A for ; Thu, 15 Sep 2022 21:10:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 496F9C433C1; Thu, 15 Sep 2022 21:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663276216; bh=rj7Hqc8UDIDhpgBP3O51vPhKrSTJe2n0YOiTAR6SeKU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=P6w5LyGisxLQapwVPe82nS/XIw7ihTRREwq1rgDGhA1b1zJKdhxblv6cM1eoL21KK ae0bSRoijdfjFUc6Fh1eu7Wna+ghBFYuqekFXtWL2Z+ETTCgAI3boRwko87WNb0YVD mASlo7mbd6Vsl1QBBkCp8f1C6h9ejmykMwD2YUNdAmyyEHEtirvhsTOp/3TrCb0oiJ qk48LLUiSMfuFjqaVq1Hizh+hdvHUHiP6piRnvcXItitCBh04n+HQp5cC5vKGaiSXc 65CEztfYH+p6QQRGsxolbXVG6e+y20QcXDlpH69Tpt6atD+tSyjLtJeNwO8+E4VYkH ttt/Hcg4cf8dw== 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 2FD7BC73FEB; Thu, 15 Sep 2022 21:10:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: RFCOMM: Fix possible deadlock on socket shutdown/release From: patchwork-bot+bluetooth@kernel.org Message-Id: <166327621619.17907.17699080247763339009.git-patchwork-notify@kernel.org> Date: Thu, 15 Sep 2022 21:10:16 +0000 References: <20220913233157.526041-1-luiz.dentz@gmail.com> In-Reply-To: <20220913233157.526041-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-7.1 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 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, 13 Sep 2022 16:31:57 -0700 you wrote: > From: Luiz Augusto von Dentz > > Due to change to switch to use lock_sock inside rfcomm_sk_state_change > the socket shutdown/release procedure can cause a deadlock: > > rfcomm_sock_shutdown(): > lock_sock(); > __rfcomm_sock_close(): > rfcomm_dlc_close(): > __rfcomm_dlc_close(): > rfcomm_dlc_lock(); > rfcomm_sk_state_change(): > lock_sock(); > > [...] Here is the summary with links: - Bluetooth: RFCOMM: Fix possible deadlock on socket shutdown/release https://git.kernel.org/bluetooth/bluetooth-next/c/812e92b824c1 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html