From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9E0FC64EC7 for ; Mon, 13 Feb 2023 16:53:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230152AbjBMQxS (ORCPT ); Mon, 13 Feb 2023 11:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbjBMQxQ (ORCPT ); Mon, 13 Feb 2023 11:53:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B594F5590; Mon, 13 Feb 2023 08:53:14 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 4F937611F8; Mon, 13 Feb 2023 16:53:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFEAAC433D2; Mon, 13 Feb 2023 16:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676307193; bh=w3P8EUoGgjECsuPQVUgP3LsF29CldSC6Eowtr61B7Ys=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=ST8oMqPsP1L+OUK8ADJjGOJDd/kpPD3aVoCSrAgyHtMvfwDyYkjWVvdAk5sTOlQuJ ZUcv3MdFPaNbyhE7vsrfHan0xevOD05HVX18uLqDmhgy6qF3WW+/K46ky3mNMffp1M itKSnWjYvDtzGLlTm0w+6OYSWC2At/Mel4aQ1tYjTYU89cHjgy503X8gAvWMBVH3rY vNNpyBz0tbjIXJCUBlNLvs9r1rPdrEWAj0GfCH9F1ajhEfOPYUwxGaiLaUF1PAezoZ b5j0+Rwn+f+cL0HQCbUHKvGSuPAJmZLODholNwBovNCTFnZbdvQ2s0BzK9ZIS8pgH1 YdWtmQ9GwC0Qg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH][next] wifi: mwifiex: Replace one-element arrays with flexible-array members From: Kalle Valo In-Reply-To: References: To: "Gustavo A. R. Silva" Cc: Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <167630718885.12830.1877017249326992310.kvalo@kernel.org> Date: Mon, 13 Feb 2023 16:53:10 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Gustavo A. R. Silva" wrote: > One-element arrays are deprecated, and we are replacing them with flexible > array members instead. So, replace one-element arrays with flexible-array > members in multiple structures. > > This helps with the ongoing efforts to tighten the FORTIFY_SOURCE > routines on memcpy() and help us make progress towards globally > enabling -fstrict-flex-arrays=3 [1]. > > This results in no differences in binary output. > > Link: https://github.com/KSPP/linux/issues/79 > Link: https://github.com/KSPP/linux/issues/256 > Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1] > Signed-off-by: Gustavo A. R. Silva > Reviewed-by: Kees Cook Patch applied to wireless-next.git, thanks. 7fcae8f7f815 wifi: mwifiex: Replace one-element arrays with flexible-array members -- https://patchwork.kernel.org/project/linux-wireless/patch/Y9xkECG3uTZ6T1dN@work/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches