Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2444913rda; Wed, 25 Oct 2023 03:02:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFknbgd3bRv1uZw/9VHsBKXXYuq9WYPWK/bWEsz5JG31vX1DCazuCXF3rcxupdtunIOM9kU X-Received: by 2002:a5b:60a:0:b0:da0:38c8:2e66 with SMTP id d10-20020a5b060a000000b00da038c82e66mr5131326ybq.3.1698228144165; Wed, 25 Oct 2023 03:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698228144; cv=none; d=google.com; s=arc-20160816; b=FkwQZ4R2EMZsLSzJkr+dLBonXtcYCKKPRZRPFUWHA1tiwDvxwQMn3E8oyvtFvMkG82 8Tv0Wj/qAzWel5R6jrZvpvZbhd/NHGIn4oWBLm+n/Y9rJcNfBn+RnjPqpMvzZdpo3mb2 ve7+gaHQd7VZElbUQ/I1I+vtXvs8ylwQei3E+e8MFPAqkhsyOwQeHv9+RYnE1rRnjGE2 /b8jfdWVbeQu+ZYop7W2nKIr5Kzd7tEhzIZKCbfcU03+0lbiGcAUY5pnkVCLwzUiwkcH SDpVjfdtI53AbexDa9SSFVB3GwkHgDkJkbgZKnLoWtm7FRipPBt5mM8amtSEr0rWtjV3 mscw== 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=yn3WAlXoFO+V59bgkqJgD3Z2cO2Ga6/EjsCPjyXXmoM=; fh=IOaPsO6qPndrCiXy4FoG0DK5V7FcFe6kAVma8vZLD9I=; b=G7OBhbu0+W8A8U6x3Soicbxe7xNxAJulyDsKo9xVYFIw3/1cNM+S20yRB9obu7DCb1 ASAZSGc1HWQuPPp3otIdtXQSoSoPcu/haiVZtZqjWsSdLdfU18BaWTGx2dFZ9A3MFug8 enG9Svf2473+9/1q2F62F0bzTreV8ecCEsq+3Ye1qdx9g5e+yHbq3y+nVIVPw6RTMiZk zHI/um36TdT6vgeShJoQ66iXjyWltXEMZN2ltrGEZQpGdYiuLoqZJJCSMnEpm7JIcg/D S9iwwXDoJNi7Jaa8jeKV4bV+IFCNALcZHMebB3vap36VU6xxAuDslK+ZwAaBpI48CSH5 7kQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C57jVZDb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l134-20020a25258c000000b00da03d94334asi3575395ybl.94.2023.10.25.03.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 03:02:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C57jVZDb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 585BA806666D; Wed, 25 Oct 2023 03:02:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234521AbjJYKCK (ORCPT + 52 others); Wed, 25 Oct 2023 06:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234511AbjJYKCH (ORCPT ); Wed, 25 Oct 2023 06:02:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E11110A; Wed, 25 Oct 2023 03:02:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 806FCC433C7; Wed, 25 Oct 2023 10:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698228125; bh=ybu2QhM0g6Ex7UMsUBH7XX68xTRuJ62s71y77gSZog0=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=C57jVZDbxfjQWkCIMYu1b+AZGs01SCimI77orisHJYNXv2PPVltTcQTOPSfXwglQb trI9FgmBKoIBQs7Nq9UHwtbokFk1TXVNNdY7oXpErNJ0YDQS7wspi8YGTIx/o2Oywf tvttOm35eD6UUN0+vd2qt53U4SlXrOLDpvevC+dpGq6i0E4AUvIAjUgZQ43RR1nXfr iWjUgGPwduvcH83k1/CQ0XT4Hz6p4IB11TxClNzGEpHuLBNeNBUw3GT2hQ8JfWShiC esXoUt9FwbUZl236S9y1BvbSn2Inl6Og1eDaRxW1Z40Za521/LpyQiUl9R0kB7NAce l0ev8qBHMajFg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/2] wifi: ath12k: fix dfs-radar and temperature event locking From: Kalle Valo In-Reply-To: <20231019113650.9060-2-johan+linaro@kernel.org> References: <20231019113650.9060-2-johan+linaro@kernel.org> To: Johan Hovold Cc: Jeff Johnson , ath12k@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: <169822812144.891844.11172869557869063220.kvalo@kernel.org> Date: Wed, 25 Oct 2023 10:02:03 +0000 (UTC) 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-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 03:02:14 -0700 (PDT) Johan Hovold wrote: > The ath12k active pdevs are protected by RCU but the DFS-radar and > temperature event handling code calling ath12k_mac_get_ar_by_pdev_id() > was not marked as a read-side critical section. > > Mark the code in question as RCU read-side critical sections to avoid > any potential use-after-free issues. > > Note that the temperature event handler looks like a place holder > currently but would still trigger an RCU lockdep splat. > > Compile tested only. > > Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Cc: stable@vger.kernel.org # v6.2 > 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. 69bd216e0493 wifi: ath12k: fix dfs-radar and temperature event locking 6afc57ea315e wifi: ath12k: fix htt mlo-offset event locking -- https://patchwork.kernel.org/project/linux-wireless/patch/20231019113650.9060-2-johan+linaro@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches