Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2180411imn; Mon, 1 Aug 2022 14:17:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7t3xcSrUMPN9BT3dp/QFXWCPSBLUMfUTHOPqBW0kDqAWXF/qC8lZBv5h0gGbw3zAurt0ZG X-Received: by 2002:a17:902:e748:b0:16e:f6c2:3735 with SMTP id p8-20020a170902e74800b0016ef6c23735mr4230397plf.106.1659388665571; Mon, 01 Aug 2022 14:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659388665; cv=none; d=google.com; s=arc-20160816; b=xtYeb7jbg96gUQao9fxogGKT3g8DUORtPHzh59M3GHH8V3mTXiSFw7c/8cU/5/RnFE PgUBXg1EEtpH6HCuv6rjU8iDv6ZsQ60kYtlTc+AE+Nm16Iys9P3Q3hnF9LTKk0ho8Z1u xMRh8XF7VkKT4/vzdbc/z6RtZ7hvWScQl85fquH+PGc94FoMZFw2mfzoTvxnUxbWzDrz 6YHa9F0FrEWkJtqhlq88g7ryI3TcqlZwdJH8F7ot6pwBRuT7uSgB9rICRQ4yuU6z4KBz NqLI8aQVh+qpZ/8cvgNJzf3WGdeA7mQhj0Re0lY+rjiGjDboIPVzS8VfTl1SxLfH2GRO uKMg== 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=k4RVOJF4KwMBTvxYg1t0f4E71Of0Vge4MhD8pdo0KLs=; b=vNc/FawggsY+1YUzP5jG2hJHSWHzzKF/YHFzQjKDmPl5iJeWj7TW4xkNGSnygaSPcC BdyWxiDYJl1olZC6IR1VQqqiDJPgL1zUhXbMDIeCYrBwWHIe7Z9auayM/yK2JghFURO3 vsYhOLW9p7TmCMKW45a1SFFCN+EEYHjA/zMBRwBvqHgG9hw4ZWYCJJaSJO6Du0OASadA C2mDoJY+xjAtIuAG28Edi/aewFPgPpbOi+FCOSZo2ddbO4Z8EiUUD/9OZEX6QNmBCIfN Ul5v0S08q7i71vY4YAgK20OFh3EKO22PmdRWYQQFE5B6fr7a3GldKF1HS/JKA90a18s8 VjLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hgv7BrOp; 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 k12-20020a6555cc000000b0041a1817165csi14699972pgs.191.2022.08.01.14.17.31; Mon, 01 Aug 2022 14:17:45 -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=Hgv7BrOp; 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 S233286AbiHAVP4 (ORCPT + 99 others); Mon, 1 Aug 2022 17:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233378AbiHAVPu (ORCPT ); Mon, 1 Aug 2022 17:15:50 -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 5A8E910CC for ; Mon, 1 Aug 2022 14:15:49 -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 0E31AB8172C for ; Mon, 1 Aug 2022 21:15:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id AC66FC433B5; Mon, 1 Aug 2022 21:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659388546; bh=1OoiG0ZQZ0mG7V3JpmP+wA3GwUY6yR+4wxoVVbBSs7g=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Hgv7BrOpXVWlX+U/yeNeTjlAxNTlN7DpZFut0ceYKXDkbTqQlBYE5GZ+dEWi5jqph 90xQ8nNUGDaveHu11p9HZMYq2tMzSC/Kk5o73X6/rS6kP/y+vF575VCf8spVuvsitf yb2PA7VFh0hKyfQ8YdbYUe1vdeH91TCkkZQpumccytP6o8ni4GtEkC13S0xw2zSINf zn+AHZxe5ilMtWR69b8C/R0z9OhZibATPo669Sws2DtmJ6Yc6DJ/fFfkgjNkrwomjg fW1on04TMZ+YW+lVvQzaGJNKaDMDeSAUCvJhMjwOXKHcPnBV1LwweYnv5G7Sn9twvr SxZMk1kzUJCDw== 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 8D9FBC43143; Mon, 1 Aug 2022 21:15:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] Bluetooth: L2CAP: Fix use-after-free caused by l2cap_chan_put From: patchwork-bot+bluetooth@kernel.org Message-Id: <165938854657.17345.8294073123741026578.git-patchwork-notify@kernel.org> Date: Mon, 01 Aug 2022 21:15:46 +0000 References: <20220721161050.305799-1-luiz.dentz@gmail.com> In-Reply-To: <20220721161050.305799-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-7.7 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 Thu, 21 Jul 2022 09:10:50 -0700 you wrote: > From: Luiz Augusto von Dentz > > This fixes the following trace which is caused by hci_rx_work starting up > *after* the final channel reference has been put() during sock_close() but > *before* the references to the channel have been destroyed, so instead > the code now rely on kref_get_unless_zero/l2cap_chan_hold_unless_zero to > prevent referencing a channel that is about to be destroyed. > > [...] Here is the summary with links: - [v2] Bluetooth: L2CAP: Fix use-after-free caused by l2cap_chan_put https://git.kernel.org/bluetooth/bluetooth-next/c/d0be8347c623 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html