Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp259480pxb; Thu, 31 Mar 2022 04:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIAjsA+mxXcWutUfU3YcKnL9ZaY89yy+ofm66my4FGf1w1dbU+nKBhGaD87vHw7BZuunoy X-Received: by 2002:a17:90a:be12:b0:1c7:aea:b384 with SMTP id a18-20020a17090abe1200b001c70aeab384mr5566008pjs.178.1648727955367; Thu, 31 Mar 2022 04:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648727955; cv=none; d=google.com; s=arc-20160816; b=UVDms4xMiHwUtPPURmL37NOj3fVVZfu/6ayXW/1oSyo6OJnOeykx/Ux5L/5sRSqRHj aHXv+VraEkxj2vFdEVBPGTFcqct6UVDJaqkiAuexzDhpBRmcFhcoV8B2TCgx8/ZeZz9i XGZLVNbRR+zeWh2qC91A3qO00KPNnqIurqVDyw7BlQ+5djdFTnDznvmgMiSZC6wdR914 4LdNxWkxfE56R6SCcPrqRUA3H0wStUpBF7Dv5tOmFKsdGz3YN9qKn74kojHrUXYFVb6E HE01DbYqIlzRMF/DBDtnSAn1ro+qRNu1jFmXkBnjIQyL7ml3GTv18nKOLfalRfPxrRlC Jfrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=eYJII5ytCDYaWyZcVwI8mgWtrC6QAz+Q3DV12ELAvaI=; b=Yfl8Uh0bbMAnTnUBNnCnXFDktdIexcbz0TWS1+32cwFSHTCiRWTwyPNLRMm0tqgcRK RVCrSJF4ry2fuAcjf2bWXyZoeZ9Sa3x1tbCE/n2DHuv7ZYt2P2lrycLEo24PlPFjeC3D JlSHVT1muOkYzaVeW8hrzrd+VXnRDtEJg5ctXVEsRcxSz/BKo85y9IIzKC7uiVQje0g3 uOaPCmaWYu/1sS4TieO5/Vo65nul9p4wSeJ3z1hBLbUjea5cEeaj1zONan1ylLwuUs6d kDsb51aY0+p+LxMYCsVUw5O/2KFvnGcTbst6TeATaEP4WEX6nSRSsIA+AHRzsPy2CvUj Yrcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sy1BOOl6; 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 s22-20020a63af56000000b003816043ef90si23173879pgo.389.2022.03.31.04.59.06; Thu, 31 Mar 2022 04:59:15 -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=Sy1BOOl6; 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 S234094AbiCaJd4 (ORCPT + 68 others); Thu, 31 Mar 2022 05:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234075AbiCaJdz (ORCPT ); Thu, 31 Mar 2022 05:33:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A021BD9A3 for ; Thu, 31 Mar 2022 02:32:07 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 10C87B82002 for ; Thu, 31 Mar 2022 09:32:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3316C340EE; Thu, 31 Mar 2022 09:32:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648719124; bh=eYJII5ytCDYaWyZcVwI8mgWtrC6QAz+Q3DV12ELAvaI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Sy1BOOl6OpagxMkfI7RhyEOlyKU2w854zBgibQDsU6yZb8IKXPqME86igiRdGT9rD YtmA/ezWganwMSzlumqCxcM1ihuKXZUJDSp87ls2AWOjaiCbjt2yerla9+hCcEgUHA XT/ITLNz/N8Z9QE9nJXN1ZxeurdG7U2Pt2e1KZbdoOAx2ensqbBpURpGC3O7txJOEH XkdXQItGl3HUFiQfc3KUb8/Bnm5W2ZErE1duYQmef2Ar+L7nJPvNQQBEbIV0gQZ+6U MDz8KI2yFGsJcsc1Tzco+14NPefKuHNwLsXzpsshRbdqEZi4xW5hQIvtO+0j1W5OOf KilSyAopqf3NA== From: Kalle Valo To: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= Cc: Bagas Sanjaya , linux-wireless@vger.kernel.org Subject: Re: [PATCH v5.18] ath9k: Properly clear TX status area before reporting to mac80211 References: <20220330164409.16645-1-toke@toke.dk> <8ad2754c-c5bb-7b07-6b3f-5701d0434eee@gmail.com> <87fsmyvg22.fsf@tynnyri.adurom.net> <87pmm2h64a.fsf@toke.dk> Date: Thu, 31 Mar 2022 12:31:58 +0300 In-Reply-To: <87pmm2h64a.fsf@toke.dk> ("Toke \=\?utf-8\?Q\?H\=C3\=B8iland-J\?\= \=\?utf-8\?Q\?\=C3\=B8rgensen\=22's\?\= message of "Thu, 31 Mar 2022 10:35:17 +0200") Message-ID: <87bkxmv569.fsf@tynnyri.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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,T_SCC_BODY_TEXT_LINE 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 Toke H=C3=B8iland-J=C3=B8rgensen writes: > Kalle Valo writes: > >> Bagas Sanjaya writes: >> >>> On 30/03/22 23.44, Toke H=C3=B8iland-J=C3=B8rgensen wrote: >>>> The ath9k driver was not properly clearing the status area in the >>>> ieee80211_tx_info struct before reporting TX status to mac80211. Inste= ad, >>>> it was manually filling in fields, which meant that fields introduced = later >>>> were left as-is. >>>> >>>> Conveniently, mac80211 actually provides a helper to zero out the stat= us >>>> area, so use that to make sure we zero everything. >>>> >>>> The last commit touching the driver function writing the status inform= ation >>>> seems to have actually been fixing an issue that was also caused by the >>>> area being uninitialised; but it only added clearing of a single field >>>> instead of the whole struct. That is now redundant, though, so revert = that >>>> commit and use it as a convenient Fixes tag. >>>> >>>> Fixes: cc591d77aba1 ("ath9k: Make sure to zero status.tx_time before r= eporting TX status") >>>> Reported-by: Bagas Sanjaya >>>> Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen >>> >>> No regressions and UBSAN warning [1] reported on dmesg. >>> >>> Tested-by: Bagas Sanjaya >>> >>> However, there is something missing. I don't see Cc: stable@vger.kernel= .org >>> trailer in this patch. I think it should, because I reported that this = issue >>> first occurred on v5.17, then still appeared on v5.17.1. >> >> I can add that during commit. > > Thanks! And sorry about that, I have gotten so used to the netdev policy > of not including an explicit stable Cc that I totally forgot that this > doesn't apply to the wireless tree. No worries! > In any case I think the stable tree autoselection bit should pick it up > from the Fixes tag, though... Yeah, I agree. I also only add the Fixes tag to my patches, and let the stable team to choose if they want the commit or not. But if people ask to add cc stable I'll do that, it's easy enough as I have the edit command in my patchwork script :) --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes