Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp18312rdb; Wed, 23 Aug 2023 19:26:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETgGFaB2Q9WPyqidplHbWj/rNqxAKOuNU5yh7aS53x6tyd3wuHWehvVgfr7FfSyyfGMKX5 X-Received: by 2002:a05:6512:1587:b0:4fd:d470:203b with SMTP id bp7-20020a056512158700b004fdd470203bmr12432560lfb.69.1692843995581; Wed, 23 Aug 2023 19:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692843995; cv=none; d=google.com; s=arc-20160816; b=ohuiTX3zBbnZ4N9nk8IAnOvosQGt+So5MaLpXMOn7vtUTJBgjz/mxf1G8z93cQabj0 GXLstE5+ZGl7AQQsrl0B4B+vhpb/XpjWXD19oEU97ENtpEL9N/l1Al9fOXnbXYGlnfff x3L/ehisrLIo214fhDe6F4t1d66Uhh+OLd2hHS4lIcxCt6pz9lnjcVVSX3hN+BtsNKub jME7peyLhsDrPkwWxL1jXIM3ZiBFBtceDRvCPcvzbhccpXNoJuVnlHvuez7jEN/uYKbY tREMaoHZRKrUPe9vN3S4F7eS8OylZU8eYCMlfUCZCH5W2/hXWsXfncpy8o96rK4dhLfb HiXw== 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=9c/7woUt2hGtdn+7MQoDRZA45Ch5Gez5EePOUVb1vYU=; fh=Z/pw+NKYw/hdyEEWPsnpHOFPTs59rdSa7ulik+gh8kk=; b=FwwQYiERuixuP2NIrah/JVZJCR7SjHLQsU/PYNQrtlWvd2F9yWQldBGwW84ia9325h 9PqhjLuFC3CoaO0LJvjTlNINNGrThdJAOkCowZEY4m/htSITKiAl06kvw/0VFl/9oC4z Tgt0c814SVWDkz0sM9F32NTzaUrjn7ay90mNIEoLAamfPasI/s4odD53Nt6rOT4y9DA0 RBWoS5j4p1bNh0H4gD2lLHx6ohXsigoV/1Br4Bc48K7Ms9q/eXK0X91azW+Yy6kj3c4v CmN8kHpFnQBeRAPENfxC7aZ0TOZY282F11QsWNLkQXEwt1dAESSSRf7moCOdggjG5LYn hEuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GHW5AXiQ; 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 u1-20020a056402110100b005283c8d6619si9941924edv.355.2023.08.23.19.26.18; Wed, 23 Aug 2023 19:26:35 -0700 (PDT) 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=GHW5AXiQ; 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 S235460AbjHWODR (ORCPT + 51 others); Wed, 23 Aug 2023 10:03:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234430AbjHWODQ (ORCPT ); Wed, 23 Aug 2023 10:03:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3185ACF3; Wed, 23 Aug 2023 07:03:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B9D1462FD8; Wed, 23 Aug 2023 14:03:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05592C433C9; Wed, 23 Aug 2023 14:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692799393; bh=h0orCZ3m4TEkoobEWxWZajTOV5CdUJY9mXV/Km4wZnI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=GHW5AXiQ4Eb2p+GmPTvDfmvgQDiJx7bblESo6DFEBHpkw8KU3HEJP91QP6zk95GSu MupalcPdnnJF2bRSgvMX1LvFgYEKt9WI0KtfORZXQg+i7CLjyqA2A7H0Wbmy755kVC aKPrLIclTc6c9ySfUdDQfdHou1d5ONs6TDNL8+ToMSK5nHhD3AqQmh9JAc9YMF3p1u wFdRAey8y75n4FeTC5iwhhxwhKLZq9RHlRIMpLj53pdM15CSfmDt9xkLkTC+yQveRL 5o86ch0l4K+H8Riip26erFt6I7fmhHaCt3GCyeOfsAtP0kjRcHcnSnhRnXpI7JmP6z KVUPDGnFZOD3A== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 1/2] ath11k: Don't drop tx_status when peer cannot be found From: Kalle Valo In-Reply-To: <20230802-ath11k-ack_status_leak-v2-1-c0af729d6229@narfation.org> References: <20230802-ath11k-ack_status_leak-v2-1-c0af729d6229@narfation.org> To: Sven Eckelmann Cc: Jeff Johnson , Pradeep Kumar Chitrapu , Kalle Valo , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Felix Fietkau , Sven Eckelmann , stable@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169279938984.1241462.11542216603364310073.kvalo@kernel.org> Date: Wed, 23 Aug 2023 14:03:11 +0000 (UTC) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Sven Eckelmann 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. 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. > > Tested-on: IPQ6018 hw1.0 WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 > > Fixes: 6257c702264c ("wifi: ath11k: fix tx status reporting in encap offload mode") > Fixes: 94739d45c388 ("ath11k: switch to using ieee80211_tx_status_ext()") > Cc: stable@vger.kernel.org > Signed-off-by: Sven Eckelmann > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. 400ece6c7f34 wifi: ath11k: Don't drop tx_status when peer cannot be found 29d15589f084 wifi: ath11k: Cleanup mac80211 references on failure during tx_complete -- https://patchwork.kernel.org/project/linux-wireless/patch/20230802-ath11k-ack_status_leak-v2-1-c0af729d6229@narfation.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches