Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2412319rwb; Fri, 20 Jan 2023 02:36:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXuJw/33NGxmzVw/3OODK/in6qgsKP355MhTt2Ki1FSncN6C5PuwQW2hqmJhh2hZYQRgo1vS X-Received: by 2002:a17:903:2350:b0:192:e555:28e4 with SMTP id c16-20020a170903235000b00192e55528e4mr21069936plh.4.1674210965596; Fri, 20 Jan 2023 02:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674210965; cv=none; d=google.com; s=arc-20160816; b=Vtd6N8GFUfgTZJTO1XjvRrODSE1kSS41923hCKFlzcj32WKleo4VGR5EwQiNS/kfzB AF6wve7PJaSgxjCot/aBe9iD1Ho03MIMKX+dM0tgP7HSQTQCwCwqE4/zTnIRqF0zFRxL Kz/Pj8BfgcjCugEDVq+4394kG1LdVTUw5pGUapOJCk0JOEFClm9CS/ovI7dCQT9tbJs2 7BOUd3NlmaM1x6+YCtvGGB8zMZj8RHWPXOEv/gnP6fF9M51QAtaxBTUWPC1rWYnxR6zO jQNEPvCi+qkJj4yrMzP7A4y5MgdCmFiFP47KPzyAsSOa7n/fuLofQhm3WhJjwHm+5/Ij 7Wgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qUATBnF+Yu/qPLF5NlmsDI53TBS3ijx7G3X4lgv0tmw=; b=jTlznEY41uPqhxGw/dAkpaEpeFtsaHbdAPJ3Ew18RAc1ciIe+RHTmigrgYxOLtzp/E /AKza2yHAnlmbdGykvyfBNmriLviZZTQLHalUJXSsxMUXY7Dba+ckJsFj0aiRPdWrR0+ Bp2epCtb+B3h2BFldpp6gr1BlktAV0TEJ1lFkcIohsSUaCn3uShy0y49xvGoHjVfhKFw S/1GfrMUBN8UIcOV3wS9ulAaqM58wBlJJ4udmo7gx/lCZQjJnkcjHTDcK4JBosGMIHHb H4RJM9lQi3c0ZXGJOp5ZcbJ1FEv6kPeEjaMZLYPGhmUMlOzHJPlOBkxf8PtDcL4tTVIg 9JUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a170902e94500b00192a9a8fffasi39312340pll.183.2023.01.20.02.35.52; Fri, 20 Jan 2023 02:36:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbjATKdJ (ORCPT + 99 others); Fri, 20 Jan 2023 05:33:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjATKdI (ORCPT ); Fri, 20 Jan 2023 05:33:08 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83FC894333; Fri, 20 Jan 2023 02:33:05 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pIohR-002BWR-Pd; Fri, 20 Jan 2023 18:32:46 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 20 Jan 2023 18:32:45 +0800 Date: Fri, 20 Jan 2023 18:32:45 +0800 From: Herbert Xu To: "Gustavo A. R. Silva" Cc: Neal Liu , "David S. Miller" , Joel Stanley , Andrew Jeffery , linux-aspeed@lists.ozlabs.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] crypto: aspeed - Replace zero-length array with flexible-array member Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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-crypto@vger.kernel.org On Mon, Jan 09, 2023 at 07:39:17PM -0600, Gustavo A. R. Silva wrote: > Zero-length arrays are deprecated[1] and we are moving towards > adopting C99 flexible-array members instead. So, replace zero-length > array declaration in struct aspeed_sham_ctx with flex-array > member. > > 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 [2]. > > Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays [1] > Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [2] > Link: https://github.com/KSPP/linux/issues/78 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/crypto/aspeed/aspeed-hace.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt