Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3559209rwb; Mon, 7 Aug 2023 16:03:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6ewUr1eJ3GKPBpGKEPQFaVUYguEGXhTXhF2B+d439l1hrNdJe93G+IIzbc0RMzKA/LYgI X-Received: by 2002:a05:6a20:1612:b0:13e:14f9:294d with SMTP id l18-20020a056a20161200b0013e14f9294dmr11003789pzj.58.1691449406074; Mon, 07 Aug 2023 16:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691449406; cv=none; d=google.com; s=arc-20160816; b=lyRWb3XAMw7mTWV+t/yz0/R/7KY7iBA2R3MKXffKQUOd0h4QG1Dzz/YzGOg3tgk1Dq c8YWDcL+Fkd2JIWAzMjdisDCENr9Hon9ohFZ9BO+7ETFLkNd4rx3tyZ82q2xfUaOqdlF dMgJsM4fh7trBYPGUdkaiKCq0PJAJnHlmllxLliD3JXlQAl+o8+DRrRN1izJt3s3e+rl owo77NPes6VwicSE3gtbFNIO+89uteZyqr3pKq1NErKagfQ3TIW5aP7EXNiPhA4CYTvJ KzS8+JhZrnNvmMb7BZKRCPTqkaOl8uLE9Nlq416IlhifToteOS3lcrfTcc5+2Kzzqi1K 0C7Q== 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=TTumFrMHRze/l+PXKbrJlxrAlpGrc/uY71eQG7idd2M=; fh=4G785tpYxh/LEyhtpq1/rSjRMTV+ccJhLrdyMN+1DLs=; b=k6gAuslyzQby+Fkn2e9bYdTJcX1Aow7BExvlyBeL0mEV2Y9EHjwragzJ8isa/17YhQ kLyZp0ihVLuRsKwQ702k/jJJcwAfiUHeo9xoFP/swHdvTpLacco7VlvQ4uZVEvmAEz5J u1pE3TyVl4928k+6W7EUJFNud6od3ISO4DO/x6HspOSS1x9y5xUwEKXnMsUzFFRzQEz9 QR90Ku3TJPqZrltgPz4f7fPatRxxblzV7fo71r0y+60BK8ywXuamfCa6cjaLqVRU8b21 VVizbPBE/NYGuWk+DpYThcVw5/1HbwShHM+Trd9HCcrzsBBMOpjXGCCQHsNUH5GS3BXx PPsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VaFdVtme; 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 f11-20020a056a0022cb00b00686e7b259fcsi3419615pfj.184.2023.08.07.16.03.12; Mon, 07 Aug 2023 16:03:26 -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=VaFdVtme; 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 S229906AbjHGWu2 (ORCPT + 99 others); Mon, 7 Aug 2023 18:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjHGWuY (ORCPT ); Mon, 7 Aug 2023 18:50:24 -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 8BFA0101; Mon, 7 Aug 2023 15:50:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E666B622E8; Mon, 7 Aug 2023 22:50:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 50B39C433CB; Mon, 7 Aug 2023 22:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691448622; bh=p7FlQ1wsuFCbLmkzvILOoJTYAZLXhkyWPIPyOat3lFc=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=VaFdVtmePbkRWMwjfJwr8MFqCVNlE0AZYdrNfRNhggPvrienhrNSNyYmYtUKv7O2w 5eVhUtoyrYKm5mOLVI/EtrcIVGh7nPfXpbO4AzqjrUygqZiqeE8qkNxad988zWCqW/ X4nBZC6YKpEaIlnL9nsFfxTQltW9CGQjdmnyvuNNRO6RirbMVydZKDGGCq5k4kG8az LS0HLAJsFLygt69XQQGm261HOhMfS0bwTVlO9e1Ophu7hGVwEtmNZDHd+bsImuGInK U92rBKOaJ3owA1LpTA2SrCTjsH6KzRKIe64KJXwh95YJGXSlHAAKQplIbl//1C9gwl 2TlKYqjzpwKfQ== 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 35433E270C3; Mon, 7 Aug 2023 22:50:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_add_adv_monitor() From: patchwork-bot+bluetooth@kernel.org Message-Id: <169144862221.1999.14693714879405886120.git-patchwork-notify@kernel.org> Date: Mon, 07 Aug 2023 22:50:22 +0000 References: <20230804111444.1.I43aa4bd799a3cf9102f9de8c365ccb3d8e53a9d1@changeid> In-Reply-To: <20230804111444.1.I43aa4bd799a3cf9102f9de8c365ccb3d8e53a9d1@changeid> To: Manish Mandlik Cc: marcel@holtmann.org, luiz.dentz@gmail.com, chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, johan.hedberg@gmail.com, mcchou@google.com, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.4 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 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 Fri, 4 Aug 2023 11:14:45 -0700 you wrote: > KSAN reports use-after-free in hci_add_adv_monitor(). > > While adding an adv monitor, > hci_add_adv_monitor() calls -> > msft_add_monitor_pattern() calls -> > msft_add_monitor_sync() calls -> > msft_le_monitor_advertisement_cb() calls in an error case -> > hci_free_adv_monitor() which frees the *moniter. > > [...] Here is the summary with links: - Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_add_adv_monitor() https://git.kernel.org/bluetooth/bluetooth-next/c/34d241ece878 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html