Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp963090pxb; Fri, 22 Apr 2022 15:26:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwevXesgZ527ycZ/39zUhjnh7XJsk9SCKq0mjceNIINV74CNohNSteOJAtCAO0l+7aM9xdB X-Received: by 2002:a17:903:2284:b0:15c:e552:5071 with SMTP id b4-20020a170903228400b0015ce5525071mr584328plh.73.1650666365429; Fri, 22 Apr 2022 15:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650666365; cv=none; d=google.com; s=arc-20160816; b=MFm/1vsHEQpTyxE4LeMGYqAEvhrTdHInuCGi5kzZiyliIrooIe4tiokMEYeM8xPuDh 9J6lHz7D3Z10Q6IGtxJ0mGG1ocTK5htPsOkAWxYsN+41kUH2uhNxgDJVzcueOyx5gwFh qlmGpEnLJhyMiSq59cwFY2qfdEgfu/74Dpcv0wkhHHqeO7J+O8ww5aPWkpKBWlQcL/u+ 6Wh06JAKI7JEwNFCdWAFrVMKigFMprLE9OF1fDRH1bkc0iJlpspjoRuidMLXpUKidV0g ky1+HooX4t7rPCZxDkRY1bErcfZI5kb92k5j5DSi5u+ynRhBjnIy7R8IxVs+skuYZw8i K78g== 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=N9tREQVA+yORBQkfTVbRJEKvUEKrAKubHVE4e6ID9/s=; b=ysAZZQFqoac9VjiCKppgUJdgKA/XfIWMUw3hdmtnFzd3fTDoXXwujPzMU6GjTC5hMG lihQD9RX0HZbym6SewMswPW/SLWbgJdCrDYSH5L9NECjzDsrRYZ5OCX6JN070IJQ5dxl tDnQ3m1CJ9mDJIME520HxjwMqsv2vB/1lxKLXTMW0Xpm/uU74N9CsvIjrnuwIIwp5584 8XV/ALbZeeAzDQULwdsmr5uXaWOOGAD6bBlViEG/OtKwq8mDZQpKqrn0mBqNRycsZFQo ol2Vru3RKTCEqGhZuPxmlsOMl521OGAAIErjsxzCOJPvmv0WVkHP3440ULwAHrn/XkYf vJJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gv1gckuu; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t140-20020a635f92000000b003aa97daad85si5262853pgb.208.2022.04.22.15.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:26:05 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gv1gckuu; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 446F23DE136; Fri, 22 Apr 2022 13:31:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446104AbiDVJdN (ORCPT + 99 others); Fri, 22 Apr 2022 05:33:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446098AbiDVJdF (ORCPT ); Fri, 22 Apr 2022 05:33:05 -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 880DD4EF6E for ; Fri, 22 Apr 2022 02:30:13 -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 212B361D94 for ; Fri, 22 Apr 2022 09:30:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 7E2E9C385B6; Fri, 22 Apr 2022 09:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650619812; bh=oHj9UzeX5TTh/jY7tBFy4tmuwcotJtPCjmQ1aT5XzoE=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=gv1gckuuZs8QIb96kQLhST4Mw/MVoNudcL5zfhgz8fic7diA+fp4op2T0eiIvsblt 4rys4RtPTsFuD6lO7MXwHK2MKpdiTL6kYfLdFXJdsy7raL2iL0stimJ/eSJt73p9GL NUXsz0MeWjYbNkOt0N76eWhvt/wGGp5XyDq7ZdUKW6w7lMbm5xWweWv92QiYXuH8Fo H8m24A2XRLvBlYD5LFBWxPKeSQY5jrmG0qHXfcnPMl8XLGPkTGF2i0W24VWnPpiH42 aknt3lP4BfYxZJrkBB1Fg4CSM4ryyFE11p7bagG/ZnfONDqJLHtxuBUt+8et2Dvs/L tbODs9L7Ih8Xg== 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 5C157E8DD85; Fri, 22 Apr 2022 09:30:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: use hdev lock in activate_scan for hci_is_adv_monitoring From: patchwork-bot+bluetooth@kernel.org Message-Id: <165061981237.24106.5638198039269621064.git-patchwork-notify@kernel.org> Date: Fri, 22 Apr 2022 09:30:12 +0000 References: <20220407180651.14871-1-dossche.niels@gmail.com> In-Reply-To: <20220407180651.14871-1-dossche.niels@gmail.com> To: Niels Dossche Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, howardchung@chromium.org X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 Marcel Holtmann : On Thu, 7 Apr 2022 20:06:52 +0200 you wrote: > hci_is_adv_monitoring's function documentation states that it must be > called under the hdev lock. Paths that leads to an unlocked call are: > discov_update => start_discovery => interleaved_discov => active_scan > and: discov_update => start_discovery => active_scan > > The solution is to take the lock in active_scan during the duration of > the call to hci_is_adv_monitoring. > > [...] Here is the summary with links: - Bluetooth: use hdev lock in activate_scan for hci_is_adv_monitoring https://git.kernel.org/bluetooth/bluetooth-next/c/e05c3c0e1b45 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html