Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1144281rwr; Wed, 3 May 2023 10:44:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oVEtxQB+p1Oxvq03uDJs0VPlJa6pGyjb2CWZlLexKzO9VhUfV4Yfkt6quFSZLqMIw6pGz X-Received: by 2002:a05:6a00:9a9:b0:63d:641f:5048 with SMTP id u41-20020a056a0009a900b0063d641f5048mr30992660pfg.16.1683135842685; Wed, 03 May 2023 10:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683135842; cv=none; d=google.com; s=arc-20160816; b=gLv9gO6gmuDvrHjSsxKxjd+QVbJt3KKCSzDIjgwuzxo3EHTXj0GbgDXr/chMLVB3xb xfb4Mf/CwKE9VV6RBCcmI4DdxwD4u595ZnXj/b4Cjnp79v8aBEtkNedJy7ShJ/Hw0c1p ugC+pRGpr7rIY4CX3hjLubAZGiV809Y2602WrHWlCz6k80N0p68yG7SAtvJe3Y5mund6 1HgNP3lovu9io/CneCdPOLL1tOZxMKuqgHMgKpVSFEW4ppmXptGoN/Wrf5/0BfZYoJlB k+D6XOVTyWPbMxW9KVB3q7Xod4w2rmSe7sURrmy+JeYGvQY0MYiAsfSLov+d/YXX3+BH J82Q== 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=mfPFOWQZ4WFLCpPAbvcMahSTZRXK2qIpjCwv7KnRWJE=; b=Kv9lW4hSU45XKBQ6zXOjQnA3voerUjJCK7qpFb8NRcXZqrugfcNqpvN+kaZkiUuPVo 2ZQIMOYp9OuONgedAqX+4W1inrXMUY/UZ7Kxdzyig1aLpVn70ICGl0FhO0Z+4wDanJ2a cUepI+F5AAdnDzZDiv8WQ5+qupz4ePJpRxU8lTSn3XWfNOuQpKY1vHD+GkPohSQVq1xo vAP+R/u0C/Bbmv/rKHLt1Yyj0QXio7zDsN5iw7O4MeNCzzrxA0HWQIRBHzDpOrhqPhDF f/gmO14Xsvx1kGZsMHY1IWByjXGcHdsXhXbqzZ5myxIZpbTcyf4owD9UbckAEe/vj3HO WGzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hF/Q/4sC"; 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 x15-20020aa79a4f000000b0063d3aed5eb8si33165415pfj.140.2023.05.03.10.43.39; Wed, 03 May 2023 10:44:02 -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="hF/Q/4sC"; 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 S229470AbjECRab (ORCPT + 99 others); Wed, 3 May 2023 13:30:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjECRa1 (ORCPT ); Wed, 3 May 2023 13:30:27 -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 7531CBF for ; Wed, 3 May 2023 10:30:23 -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 10E0A62F09 for ; Wed, 3 May 2023 17:30:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 5B10FC433EF; Wed, 3 May 2023 17:30:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683135022; bh=WPFN1i+PrSAxQF2fjjcNzCn8rPVXDYKnmq1torjyX60=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=hF/Q/4sC4JaH9+YjI8/3zYELfMmnpvRoyHIF3SqwA0tk0ODI48aJ+HLwP5YzTilBi SsybuR3NDO/9hsVcYBD1927p8wDFE0fvaSxmyh9BYJGK+Kv6jc5Vq4HRp6xHQv+Vs+ AprZ0T8yXsBDIB6uBGemgn3T/MccyU5zDIQXbuOw3Bb57f8qYTluF2huBVyynZdvUo 8viiXdeoyHOliuLqBQn+/oyPVtHN2Gd935ijlqe7z5qxn6qKWRVz/HYAH++NWfGsxy IDHJ3BvUsB4u/IM95WrS/2EVwpF6cF3K5KkhasN0UcAW8auxxR0NDnnKU4Dr8yjGFc viNpIUnfk2LlA== 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 406CAE5FFC9; Wed, 3 May 2023 17:30:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v3 1/4] Bluetooth: Fix potential double free caused by hci_conn_unlink From: patchwork-bot+bluetooth@kernel.org Message-Id: <168313502225.19283.10886307523744996705.git-patchwork-notify@kernel.org> Date: Wed, 03 May 2023 17:30:22 +0000 References: <20230502212527.1662896-1-luiz.dentz@gmail.com> In-Reply-To: <20230502212527.1662896-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 series was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Tue, 2 May 2023 14:25:24 -0700 you wrote: > From: Ruihan Li > > The hci_conn_unlink function is being called by hci_conn_del, which > means it should not call hci_conn_del with the input parameter conn > again. If it does, conn may have already been released when > hci_conn_unlink returns, leading to potential UAF and double-free > issues. > > [...] Here is the summary with links: - [v3,1/4] Bluetooth: Fix potential double free caused by hci_conn_unlink https://git.kernel.org/bluetooth/bluetooth-next/c/3214238e9dc7 - [v3,2/4] Bluetooth: Refcnt drop must be placed last in hci_conn_unlink https://git.kernel.org/bluetooth/bluetooth-next/c/38e9b45310de - [v3,3/4] Bluetooth: Fix UAF in hci_conn_hash_flush again https://git.kernel.org/bluetooth/bluetooth-next/c/29f883dcbfd0 - [v3,4/4] Bluetooth: Unlink CISes when LE disconnects in hci_conn_del https://git.kernel.org/bluetooth/bluetooth-next/c/e6e576ec4e72 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html