Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2443132rda; Wed, 25 Oct 2023 02:59:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGR/pTd2Uigzm+xvoS8ozEpxI3hOikWzTulIz7igQIWqD5xx4160XLMlhme3Mlwjwi+FJP9 X-Received: by 2002:a25:b94b:0:b0:da0:228e:9cc5 with SMTP id s11-20020a25b94b000000b00da0228e9cc5mr5851017ybm.42.1698227987669; Wed, 25 Oct 2023 02:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698227987; cv=none; d=google.com; s=arc-20160816; b=yHW8+bkqBxmnvX6NEc4XwWvARAz+nRhUMhjsOMt2G2PiTnDB3fcitKa9o2OgBe4Tns rEPSmdLoZOL3ab1vNK/Bt+pEdAa9icpqsWGs1RZRyi9qmxA2x0mMAuBgBCenDDnGn3MR UNdWATWtyo7QQTKsITDLUOBoLZjDJEYvFt4zmkeTIMopEwMFUUDGkLUwt0W/LZaQyVrN aqf6vo5aJwmx0RuVBZOzTMKfQVBVnwSYbW9UzTkkd5yr4NFRXgV5tB5bO5VsR9OZkJm5 iMakcO9hOhG8QvRdjsCfJyUpfgTbNYICza6IFuQ4WEXniCSdlQEP9LnwFfiPXD2vxmil GleA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=ZHbuK8kqZ38QmT6TzBv7TdnkKtEuHB4npwABH86VnCE=; fh=SWWS9gzUlUn+EEFw/nfeHBbHprpL6999iHU/g6RNh78=; b=Ll+T378kZtbJq3p6/MZhJQAu35hylIu6xu3M7g+fK7/vLeafr/+D+7Grfc7mm/IvkA ISRsO2hYKd+vHjZOEF3Y/qPt2l4TeOhRd3Js2HdpNE+vM8mdpZN8yih3m1ZX3sKBiP1B p2el9PC9pZm63V1tpXKNFioEkcrVdwaSpmUZ0gp+PyCjPC+aJmxtx5siBm6UiPhADDOD cX1DJo6UjtD+Dv10jVZM5+rxH4KBLjwmRKEJTOQzzY3q+STCMr2ZIxKqwpRYSEbH1yyH 8Np3qe+ADAlu0Ul4VhKqCvBVGJ/JHqXQwjD79OqJwTl1xirfZi89o1tM/WvjAAXoLGI9 SecA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="E/TIj8kT"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n196-20020a25dacd000000b00d8d3b7161casi10466991ybf.636.2023.10.25.02.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="E/TIj8kT"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EA907801B817; Wed, 25 Oct 2023 02:59:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234338AbjJYJ7n (ORCPT + 52 others); Wed, 25 Oct 2023 05:59:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbjJYJ7l (ORCPT ); Wed, 25 Oct 2023 05:59:41 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1445FDD; Wed, 25 Oct 2023 02:59:40 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F09EC433C7; Wed, 25 Oct 2023 09:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698227979; bh=015JNksl5/RLSxX1un00vsL2YWb8KGSC/yS8zTmEXAs=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=E/TIj8kTBcY31vwevcUSuJDF5aKI1Pl6gtHQ0d9a6bq8KbPTBzhvKcgAjawLAv7Ao IqUCfnD1Wa6JkV3gA9x1YqimDgIp76R9G2EEzaU6D9rdkKnkSQkaUjQewlY46MvXZS USEImOHpqpFP3jK2oGitUfkDGsyQEFXGxC685qI0+mnOq4VOtl1ioB6PgFPng10E6h oo7qmIoaSZD53X9TBdxGZgK8hzdJ6z+1zfb56isxwgh71Xbo2HFrbemTM9lKZDPUSN azrpllh63UEggIgh1PARC4tW7AAs3QNb5J3gaLMxnWUHj62g8XoCd+WXWUD6DxWHHw jVpTEe+DKT1ZA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 1/2] wifi: ath11k: fix temperature event locking From: Kalle Valo In-Reply-To: <20231019153115.26401-2-johan+linaro@kernel.org> References: <20231019153115.26401-2-johan+linaro@kernel.org> To: Johan Hovold Cc: Jeff Johnson , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169822797640.891844.4871182636116201125.kvalo@kernel.org> Date: Wed, 25 Oct 2023 09:59:37 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:59:44 -0700 (PDT) Johan Hovold wrote: > The ath11k active pdevs are protected by RCU but the temperature event > handling code calling ath11k_mac_get_ar_by_pdev_id() was not marked as a > read-side critical section as reported by RCU lockdep: > > ============================= > WARNING: suspicious RCU usage > 6.6.0-rc6 #7 Not tainted > ----------------------------- > drivers/net/wireless/ath/ath11k/mac.c:638 suspicious rcu_dereference_check() usage! > > other info that might help us debug this: > > rcu_scheduler_active = 2, debug_locks = 1 > no locks held by swapper/0/0. > ... > Call trace: > ... > lockdep_rcu_suspicious+0x16c/0x22c > ath11k_mac_get_ar_by_pdev_id+0x194/0x1b0 [ath11k] > ath11k_wmi_tlv_op_rx+0xa84/0x2c1c [ath11k] > ath11k_htc_rx_completion_handler+0x388/0x510 [ath11k] > > Mark the code in question as an RCU read-side critical section to avoid > any potential use-after-free issues. > > Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 > > Fixes: a41d10348b01 ("ath11k: add thermal sensor device support") > Cc: stable@vger.kernel.org # 5.7 > Signed-off-by: Johan Hovold > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. 1a5352a81b47 wifi: ath11k: fix temperature event locking 3b6c14833165 wifi: ath11k: fix dfs radar event locking -- https://patchwork.kernel.org/project/linux-wireless/patch/20231019153115.26401-2-johan+linaro@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches