Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20175323rwd; Wed, 28 Jun 2023 21:36:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JL2R1qUlj+DEVOmuKJDIuvUex1EhIvBmcSn6VD6DzWSgD1OnkP7718gjdjX5Uks7In9p+ X-Received: by 2002:a05:6a20:7d97:b0:12c:bbd3:a0dd with SMTP id v23-20020a056a207d9700b0012cbbd3a0ddmr1390242pzj.0.1688013412848; Wed, 28 Jun 2023 21:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688013412; cv=none; d=google.com; s=arc-20160816; b=DVMS1Q8EeqWtTdgegRqIwfY4ETvRHh+gf28wo18hErYqTSJPzHAyPNW/3hvr0DdM/L WCPrJYQUhgusHl7OMgI1yF0H8cxtBGAET3oXYxx6KhwqwYKt4N8I8H1n5yVDb8NcmNsi 1OJQYMZRDYXuGoupD+LnP+3rRAzKk+uS4W5EdfY5s70zG/+IIVNe97E4CICTSicTIC/n 9cSrvo5ugKzzJDWsfbPgzYFHzx/qGE72bBA6Wrf5sYHojEACGAUX6jAUN0luyI2TdISG uAdosF5afm7YGhw/hOeSEilmUfFZNxdC/mktVuhjQHgNHcQctJ0e7g28MSu39klAfVhm IWBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ikys1zr7cMawvGGeYC9ud7X4b6QEolSbsQLEDLa8S8I=; fh=J9OHZ8WnhgIIUmuJ9LnDFirrzlrbxUd9adQD6IcQXrs=; b=b+XcvNOqLlQp1nys7wFDuOgybI1MldiPy33ywWgPN3syt5bpcJxEOOD4W4QrOu5x4l H+SepOsM3fEROsd/6Y65yAHlLYajYo+xojXqNdLGEkli+mDRLlS0jAOH36YBoilNoz8T byqKpdq/f0lu2I0XEJeV+L65u0eSQwjXjKtMRxQL+fd+q17qw25sBbsrWkaY2l+M0ppu viT8cFHyntLqIgl+CxeihlVLvm/7FsO5vdHz7Y013Fuy6YMrsAsXkq7umK+uK1n8PDoT EPFLQZJt2pmkabl3uvWvkmfucef7dQgaEIadZVVSWGIzjwnFQZiyElUyl/reOGWXgIlK 3Mmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="H/Ioj9zy"; 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 bq9-20020a056a000e0900b006813b381be3si2127506pfb.41.2023.06.28.21.36.37; Wed, 28 Jun 2023 21:36:52 -0700 (PDT) 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; dkim=pass header.i=@linux-foundation.org header.s=google header.b="H/Ioj9zy"; 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 S230475AbjF2EgM (ORCPT + 99 others); Thu, 29 Jun 2023 00:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbjF2EgK (ORCPT ); Thu, 29 Jun 2023 00:36:10 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9361FE8 for ; Wed, 28 Jun 2023 21:36:09 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-51d88f1c476so264791a12.0 for ; Wed, 28 Jun 2023 21:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1688013368; x=1690605368; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ikys1zr7cMawvGGeYC9ud7X4b6QEolSbsQLEDLa8S8I=; b=H/Ioj9zyb7N6M+bHh1K4prVO+Uw/XsagqtsSeU0cg3/a6/Trk+iGHIt6DvHsAYjynF 312OYjsMirspcGPcAvO9ZNxZPqs2m8oUb8I/m7Uk/dy+1utqI+O6N0RXkzq7qr9kPmoo zewxoY3xaAEokQ02S4VrYKD6bey2z+qGQEdYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688013368; x=1690605368; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ikys1zr7cMawvGGeYC9ud7X4b6QEolSbsQLEDLa8S8I=; b=RWv3Z+Ri0bQLQNfwVt05chXD+hXvZlUAZrhAByL9m+jZiC7MEZAdSilVPbsH4EnbjX Tw1EkyOfUsrWYSVOWwPH+9fd2v1jCCDAV5ulNW3V0x8cOpHV+cYDI+aXR4IgTx/8dQq/ RPfQGshYKtuTS5G1BQlz5D7+EehOzAf45oqA5Kwy98WsM/e6W1kANlolUcuLcUegkXW7 A6CTZQGS12GUaUGBLM9zZ3nUzrLU7Rd53P5VzR/xZfO2TGntE01hoTOjDyZpSjQe+8II q5FkGri+SuGBjX8YINwOScUhnWW4kGUZ6O6QC3NjKRlwK2iuMLZ14YeSgP82CdEq7hnt pMnQ== X-Gm-Message-State: AC+VfDxZEDmYd99ndow/sBXhOEx603gpQxkAxQMPqqyLypRdN+8ly7rV yRHlyLjM59Hp8oP2o9xSRkpSH/fEZ75M2CxuNZQDHHhY X-Received: by 2002:a17:907:783:b0:988:dced:f339 with SMTP id xd3-20020a170907078300b00988dcedf339mr23662395ejb.31.1688013368028; Wed, 28 Jun 2023 21:36:08 -0700 (PDT) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com. [209.85.208.47]) by smtp.gmail.com with ESMTPSA id ec10-20020a170906b6ca00b009893650453fsm6488369ejb.173.2023.06.28.21.36.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Jun 2023 21:36:07 -0700 (PDT) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-51d88f1c476so264769a12.0 for ; Wed, 28 Jun 2023 21:36:06 -0700 (PDT) X-Received: by 2002:aa7:d48f:0:b0:51d:a02d:f8fe with SMTP id b15-20020aa7d48f000000b0051da02df8femr6243450edr.29.1688013366534; Wed, 28 Jun 2023 21:36:06 -0700 (PDT) MIME-Version: 1.0 References: <202306282038.C3A12326A@keescook> In-Reply-To: <202306282038.C3A12326A@keescook> From: Linus Torvalds Date: Wed, 28 Jun 2023 21:35:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Build error in crypto/marvell/cesa/cipher.c To: Kees Cook Cc: Boris Brezillon , Arnaud Ebalard , Srujana Challa , Mustafa Ismail , Shiraz Saleem , Herbert Xu , Linux Crypto Mailing List , Linux Kernel Mailing List , Jason Gunthorpe , Leon Romanovsky Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, 28 Jun 2023 at 20:48, Kees Cook wrote: > > The unexpected bit is that without -fstrict-flex-arrays=3 (i.e. the > default since the dawn of time), the compiler treats any array that > happens to be the last struct member as a flexible array. Oh. Ok, that explains why it's showing up for me now, at least. It's an odd rule, but I can see why people would have done that. I've only seen the zero- and one-sized arrays commonly used for the traditional "fake flex array", but I guess other sizes can easily happen. Linus