From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC9A3C0032E for ; Wed, 25 Oct 2023 10:01:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234486AbjJYKBZ (ORCPT ); Wed, 25 Oct 2023 06:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234477AbjJYKBU (ORCPT ); Wed, 25 Oct 2023 06:01:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29D07123; Wed, 25 Oct 2023 03:01:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72B51C433C7; Wed, 25 Oct 2023 10:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698228077; bh=pHVZBBUZeJJACrobCo39QHBAU5G9lo0Us8u49XLaWF4=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=ClMGUXZUCMde94G13lpoO3c0rhFI06ZPtYzliOtGhMSl3DtrKs8+FfEVwVY9t9S7r ALIKtgsMijC2G1la8c1XmHrwXgQ+9VzrWBEvUngMue/BGhKpWn/sObkQtPlPTd2plG jwOXiB2F9MRMuCnzQYBdxYwR5L9HrF/0PORqOb1w+1TuDlsZi3DmOjeQTVnvZZcSDJ PFHN+stZ8toavxWKHWcBy5TPDYAxkpIkzYET3KHRwAH11hL1LIQGkMFLWYBguHGvXI xCtL46y0Ly2kWkCso+Mw6qJhYQqOnGa5NlvVRy4cFWQc9B4vwS7kIDIbym4yvRe+JU IhoE4jvmgszTg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath11k: fix gtk offload status event locking From: Kalle Valo In-Reply-To: <20231019155342.31631-1-johan+linaro@kernel.org> References: <20231019155342.31631-1-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, Carl Huang User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169822807368.891844.11001606844056073292.kvalo@kernel.org> Date: Wed, 25 Oct 2023 10:01:15 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Johan Hovold wrote: > The ath11k active pdevs are protected by RCU but the gtk offload status > event handling code calling ath11k_mac_get_arvif_by_vdev_id() was not > marked as a read-side critical section. > > Mark the code in question as an RCU read-side critical section to avoid > any potential use-after-free issues. > > Compile tested only. > > Fixes: a16d9b50cfba ("ath11k: support GTK rekey offload") > Cc: stable@vger.kernel.org # 5.18 > Cc: Carl Huang > Signed-off-by: Johan Hovold > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 1dea3c0720a1 wifi: ath11k: fix gtk offload status event locking -- https://patchwork.kernel.org/project/linux-wireless/patch/20231019155342.31631-1-johan+linaro@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches