Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2603195rwb; Fri, 2 Dec 2022 12:08:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MgIupa9hWJnnf03KFVyR7YydQATsx4ZJovDt9FtfMBwEXgh45L0iwXLCMMydq4KQjl/43 X-Received: by 2002:a17:90a:9c5:b0:219:89c3:23a9 with SMTP id 63-20020a17090a09c500b0021989c323a9mr5373399pjo.212.1670011723140; Fri, 02 Dec 2022 12:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670011723; cv=none; d=google.com; s=arc-20160816; b=SRqk3X1vVVEOGYVgvCtgzQxEigCpe7FZq/CtJMIyoYGQ0r0bN4XTDbFQbc0dkqR5rS afH0WnhRFS0bOf1tDRZ3b4GSCmIzcRhUUN1T0lvkZD3d+GFQ9MnYuVrULd8WbL4XuqEn 1jGIPoFiJNPsnvpp+xv95xlmRbfshuhuWLIPHxyd74g+5FYD4hoyKz4/yv07ObZzX6GP D7GseU9ufxDVjnGWQvHPPkM1lF+voIZzXQlFAlAoia2CKxTsPHLKcYJlV3mJflU5UXDF aP39Yp/UQ1DpScDnSysziawVDYk9QbF7KbxbSBMJcJprFie1qnxPdH1dbVtjzAKTfweQ TFDA== 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=mqDa3dQcBXlYJPa7VT6M44+DWgedFVw+j3qiUnWt6vY=; b=C4Ux4VVBuCozjU7o1qytUpvYWf/dM91MVM/zzqAIQttGkmaU+TQnR2SWT9LeIkFVIW Iuj1hbo2mAD0vioqTx0J7Y6H5ZmC3zr48qXkwj3TPJs4S3/oopVwpjUqLNYdeRvD8IEn KJJcxeSCJemUaiGFUhCfAWzFJARgdupvCobL1+RFUR0LMT1vzqGfFG82NoQt8edt8gyG l0LxE9+PxbAflyJCUKquOW//i0jXpH1hVHedPku4Dj5YKo45FcY4s92EZaTGtGuBn5wO cRnZxDU29F/iuhpTBBYAhG+mtenDwj7RNTcjC5i5lOoCPa5ZsgNknghTllNr1q5Kgpsc ZvfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AeMR5nZ1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a170902988d00b00175449cf6f8si7347455plp.606.2022.12.02.12.08.34; Fri, 02 Dec 2022 12:08:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AeMR5nZ1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234659AbiLBTpc (ORCPT + 66 others); Fri, 2 Dec 2022 14:45:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234827AbiLBTp1 (ORCPT ); Fri, 2 Dec 2022 14:45:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21779F3F86 for ; Fri, 2 Dec 2022 11:45:27 -0800 (PST) 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 A9A6762035 for ; Fri, 2 Dec 2022 19:45:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAF3AC433D6; Fri, 2 Dec 2022 19:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670010326; bh=+vuLtTA0VXJm+0+wd3FJqvgQoko7iiNr/V34abeWt+4=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=AeMR5nZ1GsW19O1s90l2bgS//XMUCQfX7zk79BPSO7Hi13KQ4Nlm5asBzN9WmPmpG Vpua0CmP3atR2KzhsvxOvOfjxWFn0qgspXhllfkAAE4ZucnEOkFo7L73aliLDLWOWW sDHFxU0ZbDQdwQMvJexcSvQAXjt6OTY5LhcHSFRjGcxOvw1zwDye6+1BPf6bLU5uO7 G9ZoFNHGcBmhe/StsaFWPRlKnyZVyT8NW4G3ddL5X3zH3/Z/eCzSC6xbBcRvAL1yZg 1PgKqXkNSiMhZMNJiLY3BTF1qEGBk/Z28WO6H3ocoMeLlkuch0jIboAW0XmJ8FBNK7 /iGxe5RNgTkKA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCHv2] wifi: ath11k: Fix race condition with htt_ppdu_stats_info From: Kalle Valo In-Reply-To: <20221124071104.22506-1-quic_kathirve@quicinc.com> References: <20221124071104.22506-1-quic_kathirve@quicinc.com> To: Karthikeyan Kathirvel Cc: , , Govindaraj Saminathan , Karthikeyan Kathirvel User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <167001032276.14016.8815714083482597468.kvalo@kernel.org> Date: Fri, 2 Dec 2022 19:45:24 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Karthikeyan Kathirvel wrote: > A crash happens when running the traffic with multiple clients: > > Crash Signature : Unable to handle kernel paging request at > virtual address ffffffd700970918 During the crash, PC points to > "ieee80211_tx_rate_update+0x30/0x68 [mac80211]" > LR points to "ath11k_dp_htt_htc_t2h_msg_handler+0x5a8/0x8a0 [ath11k]". > > Struct ppdu_stats_info is allocated and accessed from event callback via copy > engine tasklet, this has a problem when freeing it from ath11k_mac_op_stop(). > > Use data_lock during entire ath11k_dp_htt_get_ppdu_desc() call to protect > struct htt_ppdu_stats_info access and to avoid race condition when accessing it > from ath11k_mac_op_stop(). > > Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Govindaraj Saminathan > Co-developed-by: Karthikeyan Kathirvel > Signed-off-by: Karthikeyan Kathirvel > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. e44de90453bb wifi: ath11k: Fix race condition with struct htt_ppdu_stats_info -- https://patchwork.kernel.org/project/linux-wireless/patch/20221124071104.22506-1-quic_kathirve@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches