Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1774925lqm; Fri, 3 May 2024 06:22:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUceBh/AWQ1yYaiAchsYE0dFwN5sr21L7xBvlbMoapZIf9mju1p1Nd5jyi3srYaD4wPgcloAVG1AQ4FF8Rn9GLdkKzQHieiQjXCF6DVOw== X-Google-Smtp-Source: AGHT+IFwJG4Dicc2Yt2Vph4Bm3/A10lw8+e8g7Z0iOOjMPz7mX166kNNCAsH55S/0iQueB0lyyXx X-Received: by 2002:a05:620a:4009:b0:790:f047:ea5 with SMTP id h9-20020a05620a400900b00790f0470ea5mr5816123qko.23.1714742574245; Fri, 03 May 2024 06:22:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714742574; cv=pass; d=google.com; s=arc-20160816; b=msPlVTV499DLxzbHfScNcDIt4S51vtkB5bz0yi9eH10wYfyGeGz/SQUFtUV0TyZmH+ Ab9wCreTDl08Y2WLKyEVNTaX4+m/2mUQORZ19No7K+6+NPGFXGNlEiuZTDqmhhVNInEm kC8ur/ylygjDnS7/q/HL+twskZqIIelqZGbswKvCjVNL1aVz37zaLXlRX9B3/fYkXLxz 9RlffrZUeAs3SLmRx11jqo4B8rxaBd/Qxn22/VKpMYpaK0rx5bd0DkW1fX9oYScd74HN 49JwowcPjLT1ICCkiMvHN8sX7AZSH2/g5PPuLU3NjK9EaQSWiQ0uELrEJPTdAgovzCVQ T54Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=2nqu2FQ5722jTXlNyWUONf2pbFhQB8TkFtTD7OCOeq8=; fh=0tsx06WzYHk/2ntOS4+Lwg/uavygD+aUOnrnbEqBtt8=; b=INozF4KeTSotR867UwUDEuGr2Ibl2gRHlrYzJxkLsjBpOxwHcwZkrNjcPAGFtXqE9I 8zw5MFFbKh2wXXFF9XTQ7t645/qeAvRPQWgRv1DhquMJLMdAHmOORCHSP3stx+SbxmO8 e6Z19p8d5r2xHfGfTXJruXN7kIBa6CEA3gvC9ktkxT+hRohflmalOQdkGuiK3JLpRdO5 ccBqpLui/zcPrzE9pOWmOY3kbNeZkFetLRzUqIXxcunER1yvf0pwKZqKT9rlMp8xIWWF nsausn+pNZSLVBe1sacViwZzhgKrFuegnF8VMb4yVR7ci4Lmf8nXd2hRiXHFJU7ArDWZ IIhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b9U3vP8r; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w13-20020a05620a444d00b007909479124bsi3406767qkp.4.2024.05.03.06.22.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 06:22:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b9U3vP8r; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F100F1C21A67 for ; Fri, 3 May 2024 13:22:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B35FC153575; Fri, 3 May 2024 13:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b9U3vP8r" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F2C3848A for ; Fri, 3 May 2024 13:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714742507; cv=none; b=RGx817stwodDzivdJMXC/40VazCt1B5IOUb5qOIKKwsW9ZN2hq6gM1d1acor+qy3xLf2wywFL0mFal1N5azATb4lsD9+rTdUlQi/Ttc9qBErbBTy/N373XLceptvI0loamSXDzmgnemhBeS3OqrodbUHQHIBNitmw7jiBOo/19c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714742507; c=relaxed/simple; bh=5A+4VMOE5esq7k/mQ4qGrJuFbSYMx+6xtBVixfCxXpQ=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=A1mHHpG9g78r5WVnKlRyDMbK+24kST1DZkHIAnTxzqs978NWrPTI91+GHWEcTc69/Y5LEmnRmesj2SECRL6sgpop2iDq559eLk2uG+Zpd7z136fBsgUV1Wdtn+GtwitZNyKtLtc66cIxktXYCdHM1JssggiQT3jrB6HRpZ2cD+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b9U3vP8r; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEF62C116B1; Fri, 3 May 2024 13:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714742507; bh=5A+4VMOE5esq7k/mQ4qGrJuFbSYMx+6xtBVixfCxXpQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=b9U3vP8rnYJmMMr22HRkOkyFw58eEwGkBktVRbQ+0pjktXhncwH6udbD5laFFKkIe LHPRna5SQz6L4hUYWz11O+IOusZKDypumhS0pt4QRUA5l8X3ud8MfHFobK+9wnNVFo 9HFebtg57govGRzZhKu/akIu5WI7gFXKN3B1/yddJ93jIfP1Du+LNEZNKmhqae6Qrj aangT19HnyTd+Ncge9R4Dj8OxyRf1GqH6MaeLHv+YqZ6qu+Pbnkx/mYHpFg3vfCQQs 3yBr0dxQ8DINkYNV8j1bREGMFHT9OrroXyMdvtnActXw5DCgxqUhxWa31khFzS6Xag TrKDe6EJ1ZL0g== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v4 1/2] wifi: ath12k: Don't drop tx_status in failure case From: Kalle Valo In-Reply-To: <20240430074313.885807-2-quic_kathirve@quicinc.com> References: <20240430074313.885807-2-quic_kathirve@quicinc.com> To: Karthikeyan Kathirvel Cc: , , Sven Eckelmann , Sarika Sharma , Karthikeyan Kathirvel User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171474250421.1512332.1102670293581552421.kvalo@kernel.org> Date: Fri, 3 May 2024 13:21:45 +0000 (UTC) Karthikeyan Kathirvel wrote: > When a station idles for a long time, hostapd will try to send > a QoS Null frame to the station as "poll". NL80211_CMD_PROBE_CLIENT > is used for this purpose. > And the skb will be added to ack_status_frame - waiting for a > completion via ieee80211_report_ack_skb(). > > But when the peer was already removed before the tx_complete arrives, > the peer will be missing. And when using dev_kfree_skb_any (instead > of going through mac80211), the entry will stay inside > ack_status_frames thus not clean up related information in its > internal data structures. This IDR will therefore run full after > 8K request were generated for such clients. > At this point, the access point will then just stall and not allow > any new clients because idr_alloc() for ack_status_frame will fail. > > ieee80211_free_txskb() on the other hand will (when required) call > ieee80211_report_ack_skb() and make sure that (when required) remove > the entry from the ack_status_frame and clean up related > information in its internal data structures. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Signed-off-by: Sven Eckelmann > Signed-off-by: Sarika Sharma > Signed-off-by: Karthikeyan Kathirvel > Link: https://lore.kernel.org/r/20230802-ath11k-ack_status_leak-v2-1-c0af729d6229@narfation.org > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. 5453bbd6fef4 wifi: ath12k: Don't drop tx_status in failure case 50971dc6694c wifi: ath12k: drop failed transmitted frames from metric calculation. -- https://patchwork.kernel.org/project/linux-wireless/patch/20240430074313.885807-2-quic_kathirve@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches