Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6683611pxu; Thu, 24 Dec 2020 09:09:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlfLTfDLLJak2cuYK8xvs7iLdtgblsFDs402m86k/jyQ/slPyBj6QP9ktck2MPGZTkSetA X-Received: by 2002:aa7:cb16:: with SMTP id s22mr30223975edt.53.1608829781857; Thu, 24 Dec 2020 09:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608829781; cv=none; d=google.com; s=arc-20160816; b=LfvmvP8Gv1INxoNUTIyQn6UGfvhHOnrHsyoTqGkVQJyv4dT5Hc0ZQR2rc73ZrG+Y2i RFkMNEdrz2FR+cXOvGblpmytRq+aQ/SN/V7xyNoRQCXBLRVbs2+igHD6uET1SwLjhXb2 f+s7P0WZqKB8BeyRAl5pXqsQRmqYwfyMSCY0EcAU4d94PT5ZP4ZuDF89341nXXFtvODW i7UNkZ3EbbYPH+UxDJ4U4QOvpSORvi+iBplqwko+blIFvSXSW5eSYA96+nn5aIolz0Xk 9VDVZg7WyzQwrxbKwuoayPcPjf0pBMXnQpjRj0p9IS7dYbxy7QtGXIh8T9eQ/pm9C8W6 zRUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :references:to:from:subject:dkim-signature:dkim-filter; bh=CGdrFVBf3T3zgA7aI2FrXVI9g5fTuRpeNHbYs4er8Bc=; b=czNF3qeQLpw3I0ziuPKhr6LRT0Gpw8Rm8dFz8ePtHBc0g8iCQ1c9ZHRWUZbx+aCFFs HRXXqva+wm6JQUh63KWQhQWb03futOZPDZ1MKqVQw9rLRtukdVAZ8dfFwCa5CC9qbX9b jQy7fFnRqllyms6MwtDfoNYX0U4szUp5vj1vVROwyH4bcvotz2fRu08TRtRlj9m4biuI LlS+CrW1a8NidwuXeidZAVtu75yE+fVdcGiE3peXDF2jFc/EwqGqJl/IAD8ze08v6Po0 4xGmWR9yJU9m7XutNZ3+O2E4so6P+oS7cEbhSRkhzR88S/KncWg0qPfxMqfSTQUUTjpy yi1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=CZeIwiH0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn14si12221554ejc.555.2020.12.24.09.09.11; Thu, 24 Dec 2020 09:09:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=CZeIwiH0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728625AbgLXRIy (ORCPT + 99 others); Thu, 24 Dec 2020 12:08:54 -0500 Received: from mail2.candelatech.com ([208.74.158.173]:42416 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbgLXRIy (ORCPT ); Thu, 24 Dec 2020 12:08:54 -0500 Received: from [192.168.254.6] (unknown [50.46.158.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 7839313C2B0; Thu, 24 Dec 2020 09:08:13 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 7839313C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1608829693; bh=oCowPKW6aP6ZhyDp64QY45cgY8fT8fWhW+s1yumAXc0=; h=Subject:From:To:References:Date:In-Reply-To:From; b=CZeIwiH0kGcdGDwwmLLGRSf5OVSRjWFxLZSX0sDgC8DvGTUX8xWhYICqF8RGXhX3Q 9Q+DnHZSQhoKQ/dB70T073PIj085ZbDKOUAMAKXk1LPrBWq2+Py7LsbZDydYlC3dB/ Y8To0BxNsg8Dn0vEz74tDJrbSXs2b+LKRB93x8U0= Subject: Re: skb_cb corruption in ath10k From: Ben Greear To: "linux-wireless@vger.kernel.org" , ath10k References: <86170a90-da2f-3227-d7e5-fe9486156705@candelatech.com> Organization: Candela Technologies Message-ID: Date: Thu, 24 Dec 2020 09:08:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <86170a90-da2f-3227-d7e5-fe9486156705@candelatech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 12/21/20 3:55 PM, Ben Greear wrote: > Hello, > > I'm trying to figure out what changed in the last few kernels that is making: > > struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); > if (info->control.flags & IEEE80211_TX_CTRL_RATE_INJECT) >     /* why is code here all of a sudden */ > > in data frames in ath10k, > when, to the best of my knowledge, nothing should be setting that up in the stack. > > My guess is that something is stepping on the cb field somewhere in ath10k, > but I am not sure where that might be at this point. > > And it also appears mac80211 or maybe supplicant is setting the rate-inject flag on some mgt frames, > but I think that is a separate concern at this point. > > If anyone has any ideas of likely points, please let me know. This issue was me being confused about how the ath10k skb_cb sits in the same memory as the iee skb_cb. I just needed to reorder the ath10k-skb-cb struct a bit to not clobber the control.flags area. I also see no reason not to natually pack that stuct so that the pointers are 8-byte aligned. Any idea why it is force-packed currently instead of using proper padding? Thanks, Ben