Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1905666rda; Tue, 24 Oct 2023 07:00:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFi+Y8tO0kqsxnaJ3xpXBoGSkDbes4rE9VFfqeX+hYkQt3Bnr6czDTE8hBGzlzb3cVpECUR X-Received: by 2002:a17:903:2289:b0:1ca:86db:1d2f with SMTP id b9-20020a170903228900b001ca86db1d2fmr15268105plh.43.1698156002850; Tue, 24 Oct 2023 07:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698156002; cv=none; d=google.com; s=arc-20160816; b=zQHpopJ0mT78lfvBh8UsnlHqHayxt/OgPhGsRvn6AXsr4G80l69/i21ylWaCerNPT7 zj04XiyKUhVmA6aNbW1vFj/SDz9LYVAexBLQ5jIrMwJxmVhIhN8x0Zn/T/K3DlwiQ9Rn D/EIWJHyvfrfACpHFvtHyI5RgWqGwNQxnLG5ifQHvFHgvI6HH6leTd8OzDkzsTjN4XlI nFfgg7yLuIdML14ZNGEvR2A15NGOWSq4paBfqTLdl6OQA73nM2FKFUBDeIknw+FphqiZ LgetI1bMH733EtVN2Y+5+OtJvQFXnWDqnDCqS35SN9nxZT4v1UArGX2lz6i/6/rfCOJp wdMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=6MAx9ypCYSpyGv3wVAMPI6hHL0ytN43wUKFJ1wGKk9w=; fh=BWR5B5ZYaIHpd5cBcG8w4MkWo8SRnqu2FnRjm+slKC0=; b=Xi+RzlTHqFTHlFdBbGbEdi7oQ8SEt7jkoZX+VQdj81zuejhF/WB3rsPxML7gNxQRs1 ULHqnYl3AR9Rq8+q8q8GHHCwNd+nLNz+Abkg/JgDRb7XhJwd5TeXknlcQo/NSvZo4DSC Gw1KFqbQe16dU5BNzErbMNLSekkNdNCGHD+9ZyF/RE53I7PKbbysYllQca7SC/rmA+0T BLenE9IASdczhLyj74oxpBaKPfbIchIUPGQ3WmEBYcnpGtLoKxG7Jlzsyggj7ZIvg2J0 IdQDauzZ78sL0baulnCxjtLxPyPayEsZk0uL2xFT84xgDlvBMepYvKKfQ996o9w4iV+P 6OrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HtVoJ3OG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z22-20020a1709028f9600b001c7615a8de5si7982048plo.20.2023.10.24.07.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 07:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HtVoJ3OG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 88E5F8078324; Tue, 24 Oct 2023 06:59:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343540AbjJXN7z (ORCPT + 52 others); Tue, 24 Oct 2023 09:59:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234869AbjJXN7t (ORCPT ); Tue, 24 Oct 2023 09:59:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ECF1D7B; Tue, 24 Oct 2023 06:59:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3873C433C8; Tue, 24 Oct 2023 13:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698155981; bh=dsmBnlL6bvCmPrgmLzqlJBYDPnEdRwCx2sRSLyjJX0Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HtVoJ3OGlu4I0g7c6nceoQtrXqr+/rL/LttZelrFM0wKPsJvPOqfj3iSNYKVJE2LO 0VIoSplFYuYpBei0qTA6kphdzyD+MgyNNRnl3g0Y03cOt8+rsYfgqp/Utq2z+PeAjy hnwOWkkINyyW3UY6nQ4Yx9XSoHwBebK2UXBElN4HVFVQio2wJHThXt/gi8juZoiSaY GjtlRiDTlxnqe/i6hB7btQ2B2opfa4avGMl1I7Y2MKxwVt0XwI8Tx2REMWl032JywK ZPvLrC1Vor+obo/PRX3UWJ5sDsLwig85VAEOFSrdwAMIB2/t1Uyhydx6Uzwo4bEmhi C/r9XXtEq4gjQ== From: Kalle Valo To: Johan Hovold Cc: Jeff Johnson , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2 1/2] wifi: ath11k: fix temperature event locking References: <20231019153115.26401-1-johan+linaro@kernel.org> <20231019153115.26401-2-johan+linaro@kernel.org> Date: Tue, 24 Oct 2023 16:59:35 +0300 In-Reply-To: <20231019153115.26401-2-johan+linaro@kernel.org> (Johan Hovold's message of "Thu, 19 Oct 2023 17:31:14 +0200") Message-ID: <87sf60xgs8.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 06:59:59 -0700 (PDT) Johan Hovold writes: > 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. > > Fixes: a41d10348b01 ("ath11k: add thermal sensor device support") > Cc: stable@vger.kernel.org # 5.7 > Signed-off-by: Johan Hovold On what hardware and firmware version did you test this? As there's so many different combos we use Tested-on tag to provide that information in the commit message: https://wireless.wiki.kernel.org/en/users/drivers/ath11k/submittingpatches#tested-on_tag I can add that if you let me know what you used. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches