Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1235893pxb; Fri, 1 Apr 2022 08:06:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJenWxdFX/uGtd9rRBW5LlpTatC5Ax0amjLZa6sN0Y5kWmhDL5Rk4NAL3zw1nm8w+tEUor X-Received: by 2002:a17:907:6d8d:b0:6e4:dae9:f030 with SMTP id sb13-20020a1709076d8d00b006e4dae9f030mr237243ejc.274.1648825571225; Fri, 01 Apr 2022 08:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648825571; cv=none; d=google.com; s=arc-20160816; b=Mpg/bmIe3+WBWQ8wDhC3Gqc/mkxhk4hCV7k0IYDy9eh1FmISl00QtXylpbKKjTxTq6 8MhWZzB6/CXR7RgUAE3YqujnNYPzf0pUqkTuEZRARDdklJbZoCQRQtz0MVTaIm8SgBXT yvwZ5ZDhl0opwwW1f0t5mmV+0HxttN2kvUCi3YHm+zAZAvxeTDNHo8Iw6C4+712CiVor ymIJYQ03ll967aOpSfe9fv+TY6i/uXqzy6qspcKXWW9syjrxBJR1FOdgd4uW6XDCGwun I0foIOj5rGRmIjQvMd1Cc/AKuOnr/RE7/YxtZOH/3uMab0h/xdMQmfvtyohGV2ZuaV1p mLqw== 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=9b2hrUOXZUT4PtJ74mv2OEiQ6y7RhlwtuoDd+ejgaHI=; b=KSSY+czlYqwt4mwBU9Y7LEbDIvJ+8RPKcPSVegzvCztU5Indd84xhH5l+cv+lLjCaH zFLnNZ/ZuTrgDedgfr1ahO1+4t0HKRBiI9+XcS9OO9aLfVyCjOdzqDZbiildomj6gHCr bm00FUAvRV5dB1It9nU1NNciyI37F2j9K9HFu+yfOCkWhxHQ26Xvm+u4ztViXyPYAaIc x2At1hRwg6Q/Uj87HlN4F4rLAoQ65qVyH4KbkDKB4GZbrKGLA8iKW932uvbL4wln+rOq hG+B+f2uXePyS9VpB4BSHI2PSYSkEAFzeR5Gff9uAcqAkaaF+I1HjXUifGtK+qT5X9o1 QkiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p2wSzyrF; 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 c2-20020a50cf02000000b00418c2b5bd72si1834055edk.84.2022.04.01.08.05.53; Fri, 01 Apr 2022 08:06:11 -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=p2wSzyrF; 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 S1345490AbiDALpZ (ORCPT + 68 others); Fri, 1 Apr 2022 07:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233087AbiDALpZ (ORCPT ); Fri, 1 Apr 2022 07:45:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A39E43A5DD; Fri, 1 Apr 2022 04:43:35 -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 583F6B824B1; Fri, 1 Apr 2022 11:43:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5DDDC340F2; Fri, 1 Apr 2022 11:43:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648813412; bh=9b2hrUOXZUT4PtJ74mv2OEiQ6y7RhlwtuoDd+ejgaHI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=p2wSzyrF0VBZw1zFe1IbnVN7qphAnFNPX8ag1U5Qc5lBrI9JpRxpzJiMU+21SfuC0 e27digsEly0p7uLDQZrbnshD5m9zC367HP5izc1WZ+N82FtkX1/rvLNGXOUntpS6Vm i4YAImYwXujxOOl/niepyVgbxLMHxFW5w8d94WyDxXlaPKrSaBnQP8QhUmA3nL9c/X U3U1Y39LDDq8RniNgJkd/iWi7WTo9lIPEHR26CguHEgWTgIk8PUSaX62eJayZOPSEI ipZxOIhpAVRHbXeS1fMjTtRJxSWCsEik/BoRGVIowLf90o4bX8SZ6UpfLTjt1+8E0E SWhT3rpqq5A1w== From: Kalle Valo To: "Gustavo A. R. Silva" Cc: "Gustavo A. R. Silva" , Kees Cook , Luca Coelho , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] iwlwifi: fw: Replace zero-length arrays with flexible-array members References: <20220216195015.GA904148@embeddedor> <202202161235.2FB20E6A5@keescook> <20220326003843.GA2602091@embeddedor> <871qym1vck.fsf@kernel.org> <4c520e2e-d1a5-6d2b-3ef1-b891d7946c01@embeddedor.com> Date: Fri, 01 Apr 2022 14:43:26 +0300 In-Reply-To: <4c520e2e-d1a5-6d2b-3ef1-b891d7946c01@embeddedor.com> (Gustavo A. R. Silva's message of "Mon, 28 Mar 2022 01:23:59 -0500") Message-ID: <871qyhuizl.fsf@kernel.org> 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 "Gustavo A. R. Silva" writes: > On 3/28/22 00:47, Kalle Valo wrote: >> "Gustavo A. R. Silva" writes: >> >>> On Wed, Feb 16, 2022 at 12:35:14PM -0800, Kees Cook wrote: >>>> On Wed, Feb 16, 2022 at 01:50:15PM -0600, Gustavo A. R. Silva wrote: >>>>> There is a regular need in the kernel to provide a way to declare >>>>> having a dynamically sized set of trailing elements in a structure. >>>>> Kernel code should always use =E2=80=9Cflexible array members=E2=80= =9D[1] for these >>>>> cases. The older style of one-element or zero-length arrays should >>>>> no longer be used[2]. >>>>> >>>>> [1] https://en.wikipedia.org/wiki/Flexible_array_member >>>>> [2] >>>>> https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-le= ngth-and-one-element-arrays >>>>> >>>>> Link: https://github.com/KSPP/linux/issues/78 >>>>> Signed-off-by: Gustavo A. R. Silva >>>> >>>> Reviewed-by: Kees Cook >>> >>> Hi all, >>> >>> Friendly ping: can someone take this, please? >>> >>> ...I can take this in my -next tree in the meantime. >> >> Like we have discussed before, please don't take any wireless patches to >> your tree. The conflicts just cause more work of us. > > Sure thing. I just removed it from my tree. > > I didn't get any reply from wireless people in more than a month, and > that's why I temporarily took it in my tree so it doesn't get lost. :) That increases the risk of conflicts and, because of multiple trees we have, the conflicts cause more work for us. Please don't take ANY wireless patches to your tree (or any other tree for that matter) unless Johannes or me has acked them. If you don't get reply to your patch for few weeks (and the merge window is not open), you can ping in the list or contact me. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes