Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2603070rwb; Fri, 2 Dec 2022 12:08:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf5eJGZr7Hzlf80EeOtbgevMWL2nFzLINb7AieaR4euISl+GAaJP7XVVVT7RC7qm9n1oMJsk X-Received: by 2002:a17:906:144c:b0:7ad:cda3:93c7 with SMTP id q12-20020a170906144c00b007adcda393c7mr62580324ejc.500.1670011715334; Fri, 02 Dec 2022 12:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670011715; cv=none; d=google.com; s=arc-20160816; b=OtckARvSz1wy6w59/2qEC7cPVFSqfB4Mcl69SJ1fCqzAaxKxuOVmiLID1O7Lrp/ItQ ydq4m2xTELNtZN/lXhRiqbbHjyrLwi68HkdUqtBwugtUNvuGJ8/t6B8Zfurw9b5o856c q+W8fm9XWuC4QhrmIzyvB/STm8IlWDFh0bnDZZeJmm47J6iNMx8TK3YGKSKj6fdt4i+w GWy1skJpMgYC6n5OSpqHKC+hPGV/nbFYW4ibmDVjnpLf2lP0EgwBssHPcgeVRfxxG200 s0We1T9bsMzi0jtbNxwVVdxseULngRtbI6wz5SJ4KXGyLf1CUPYY9pJe7YSOX9jGNcum R3Eg== 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=vOpYdtT/0nheqph7ZD2Xg2o2Y2TEV9v1lHcskQAM7Kw=; b=a+6YoagBGEPVIW9xvekG18kkz+x/UVE/uZVGrRuyhBUoGn5/mLkPkM9Badxoh8zQm3 jGrDgY+OWcQBYifonH29wFS07BoQh0kkP9OFHGKEBHjrxRHrN7wHP/ok4oCqv8tkhOtx lvNn1ru7MDuP3Vgs53oTYlQoCIBothUddKb9ZU72kyrHiRpQuz9grsUSTHLIxGOmlO9+ QyFnpADkmNBFC0auVm6pUKQGRfYYM0oW2fYw+ujT9NYjEGOHtYvBKHGKX5GNG6gwzrv0 lGJHXsZJGtuBaWN8ZjkP7fOjHPbOwPJy2GIuW9FTq+LHn5Rxs38W/m0FdQztB6l9TW1p qRlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GGeePiwE; 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 dz20-20020a0564021d5400b0045d46f28533si7055372edb.377.2022.12.02.12.08.15; Fri, 02 Dec 2022 12:08:35 -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=GGeePiwE; 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 S234826AbiLBToV (ORCPT + 66 others); Fri, 2 Dec 2022 14:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234635AbiLBToS (ORCPT ); Fri, 2 Dec 2022 14:44:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4135FD49D2 for ; Fri, 2 Dec 2022 11:44:18 -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 D296C6221B for ; Fri, 2 Dec 2022 19:44:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1963AC433C1; Fri, 2 Dec 2022 19:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670010257; bh=z1mnKRXZKTS8eedlEdEeB0UUSYlcIX8Zc5mLsq2A76s=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=GGeePiwEb6FSiXMFlkn/kJLqF/Vfv8CHKxvJ3O3ted72FFvLhbQfUqIZ/UBHYgOc+ xKBGuNyhflMLtszMXddms2zy6pXVez/ZWFyKFmGvgVv+gwPFavvGf+NTddRzpMOLJm 3Kw3w+AMv8RtujfTtfCOeCe21FWX5FFj002117j3Wo3o8UREopwT8rLy0Np7UTWt5g dr7oNlv1Hrc/kCSmBoYjBOZ/cMP9fsosfc1nBnVCDEQ0KJFhjvR6e/rUjLVXVJN4cs cVyx3qG+W6hdS5/tEgE5tIkyR1jvQLeKJ/yrb1fahef4aXs99lQfPP85WT+brc5ZRk zMedDfllnLiew== 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: <167001025076.14016.10499660209048981214.kvalo@kernel.org> Date: Fri, 2 Dec 2022 19:44:15 +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 I cleaned up the commit log. -- https://patchwork.kernel.org/project/linux-wireless/patch/20221124071104.22506-1-quic_kathirve@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches