Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1263697rdb; Wed, 6 Dec 2023 13:23:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEL8Xc68TDC5v6cSGZ2KyasTyRSh6eAOleUZLn/djW52ArYkOVMi6SlO4P8KAL1kboCBiEt X-Received: by 2002:a17:90b:4a8f:b0:286:b6bf:e6d5 with SMTP id lp15-20020a17090b4a8f00b00286b6bfe6d5mr1306986pjb.14.1701897823854; Wed, 06 Dec 2023 13:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701897823; cv=none; d=google.com; s=arc-20160816; b=jH6NcZCRuWXG8+47R9/9ajJYWT8BKKkBuBndJpcgn8QCPdHmXmdskeU8mqJT6xoDb8 M6uF8MkeVH55dBcFw+D6bwvOwAA8a6tMwCngi663Tds3MNqIQA5i+RUPW3OE46u3y+cP v+4V73fzdJownviFOatGTBYdrngyFYKw/wrk/CwgDalYDlLmnU0JkNQVopaeLXeVTLrI WIwGoGPsCgUn6chV4pdfGgW/zLKtJC0oWB9K8kBT+ea9Qs3hsvxLS3PvcmAc2axvD5Z8 sdgJeKPGejICa2+ONmSZoBNTth6SvOjanzIyJDPYLH9Vp+01kY4H1Z3QFDoyzbbekA6A FWIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Z89JbXvFtxvpHgG4/D9TvUPfBOX7E1w1eYXh8GBdDDg=; fh=Isojnr74PP4OGeVGDLzkN93/QEp1C0ZrXcU+CHDrOn4=; b=N/AfW1VJoufJkmB5KUE4MgcsAei9TzYX/JBxoQBzNNO664PN440B/fAEaQYJq4ciXg CZIbDpU/lflwkYhx4CefiDlu9/2vIVqHLcVDNnM+ljKzmmeQSnuViYwhTZavbqRneTRX /iqqqN7gwsi9a+oAQFBL9BQRFTP3P/PeHwA2s4E9cyAhc10XVaV/SKx0s1UQlLOYdCt6 inQCkOTLA1LlPb/lypKkKPvs5aqwa1nYNVDc+aigplim+Ze6VBLTLHhcvq7iKrBS6Gm+ kWwr/4kiaDmw4mprfK0RqgiuRQ/8PE7zDNHwIZmoscm/HuPDCJg5S4hxKtTsSEUzOyvO ZXAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=wK+2HNzm; spf=pass (google.com: domain of linux-wireless+bounces-512-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-512-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id mz19-20020a17090b379300b002867e3075bfsi384564pjb.150.2023.12.06.13.23.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 13:23:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-512-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=wK+2HNzm; spf=pass (google.com: domain of linux-wireless+bounces-512-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-512-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C2B44282402 for ; Wed, 6 Dec 2023 21:23:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BA5A6EB6E; Wed, 6 Dec 2023 21:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b="wK+2HNzm" X-Original-To: linux-wireless@vger.kernel.org Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C972CD5F for ; Wed, 6 Dec 2023 13:23:35 -0800 (PST) Received: from eig-obgw-6005a.ext.cloudfilter.net ([10.0.30.201]) by cmsmtp with ESMTPS id AwILr8cmWVly7AzMlr3Ap2; Wed, 06 Dec 2023 21:23:35 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id AzMkrmPNf8KNvAzMkro7tx; Wed, 06 Dec 2023 21:23:34 +0000 X-Authority-Analysis: v=2.4 cv=dp3Itns4 c=1 sm=1 tr=0 ts=6570e656 a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=c601a17RXwP2wWhsnozrzA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=e2cXIFwxEfEA:10 a=wYkD_t78qR0A:10 a=COk6AnOGAAAA:8 a=VwQbUJbxAAAA:8 a=_Wotqz80AAAA:8 a=cm27Pg_UAAAA:8 a=jzDRcfw_wAzovSFxW3EA:9 a=QEXdDO2ut3YA:10 a=TjNXssC_j7lpFel5tvFf:22 a=AjGcO6oz07-iQ99wixmX:22 a=buJP51TR1BpY-zbLSsyS:22 a=xmb-EsYY8bH0VWELuYED:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z89JbXvFtxvpHgG4/D9TvUPfBOX7E1w1eYXh8GBdDDg=; b=wK+2HNzmisO4AOviFMz6pFLxZv x5za6lFwlYdRe0LTXGbkDAoy3uHP03x6WQMPjzUArkHQFU0vlSa6f/cgkDrqkorNWDTOpgZxxd+MO aUwSlLvSKv0H1BHTwaeTW1BK5/af50yVTOUPQDZasXrXtsFAG4ayPBekTLlXaNli0XkKUpza0ds06 WxHbLiW5h7IWvo/jp4EZtKYuz3ms8ahCOG1qbgcxMw9qJNJFw1UjIGgFs/DqHUtanU/5NSiBPVc5z bv4cLz47JSY4+1cxw4iAmoyny7Ppr5MGLGoP2cfmQsOAccFpbBJAL4369hZ5kQZ7kperBj30ANg9n nIfaBQQw==; Received: from 187.184.159.186.cable.dyn.cableonline.com.mx ([187.184.159.186]:15648 helo=[192.168.0.10]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1rAzMj-002Gl6-1K; Wed, 06 Dec 2023 15:23:33 -0600 Message-ID: <69be3198-16f1-45ec-8262-1ed269f1f6ea@embeddedor.com> Date: Wed, 6 Dec 2023 15:23:31 -0600 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] wifi: ath11k: Fix ath11k_htc_record flexible record Content-Language: en-US To: Kees Cook , Jeff Johnson Cc: Kalle Valo , "Gustavo A. R. Silva" , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231205-flexarray-htc_record-v2-1-fbb56d436951@quicinc.com> <202312061254.085B4755@keescook> From: "Gustavo A. R. Silva" In-Reply-To: <202312061254.085B4755@keescook> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.184.159.186 X-Source-L: No X-Exim-ID: 1rAzMj-002Gl6-1K X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 187.184.159.186.cable.dyn.cableonline.com.mx ([192.168.0.10]) [187.184.159.186]:15648 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 2 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJWwUDGDzsses6UZedCCWgmeG9dMdcU2G1AC99F6UG5Gj4EBC/L32D4BUde70WxP9yUn7luUL8k1Aj7di73/CSmorUyoKDJTirDIHLN6ZH3t6DwLJQ+U /xaziya+caWujNcdgcLUhtYjzokrO5PvQ36lzpe12kfZmee7XcnEugQahb/OvrctU1BjpjylQpmPfHvJwT+mYwLk7gycWvWbEBnf0f1UzenDchhl9EmLK7tK On 12/6/23 14:55, Kees Cook wrote: > On Tue, Dec 05, 2023 at 01:00:17PM -0800, Jeff Johnson wrote: >> Transform the zero-length ath11k_htc_record::credit_report array into >> a proper flexible array. Since this is the only array in >> ath11k_htc_record, remove the unnecessary union. >> >> Signed-off-by: Jeff Johnson > > Heh, looks good. I wonder why this was a union to begin with? It used to contain a couple of members: https://lore.kernel.org/linux-wireless/20231127-flexarray-htc_record-v1-3-6be1f36126fd@quicinc.com/ https://lore.kernel.org/linux-wireless/4f2a486c-c6de-43e4-8bb6-bdd3f819b0a9@embeddedor.com/ -- Gustavo > > Reviewed-by: Kees Cook >