From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 3F24B3858C50 for ; Tue, 2 Aug 2022 15:30:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3F24B3858C50 Received: by mail-pl1-x632.google.com with SMTP id w10so13811192plq.0 for ; Tue, 02 Aug 2022 08:30:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gU4SbKMMf49ZkRWmR3uHKjDa4MoSt+MVM5B5TZ6B/tw=; b=POa0ioVG9LYCw6OJbJPrcADablt6XOVSV22ZtHQsOwCOJaWWvSSPEdERLaqcu6wZLE +sxSgJSnxLtalyaoWbpCa6EFK3N9o2MjMkvEImYsfzSIYbQnG2rjzTczOrG77mS+AEj5 PKWFhZF/eyK745A1rLz876D+EMxFrTWeh5fOx9l6gPO/nzaMrGCpOyUNSRO7bHlXFDoy FT9lpxZosOG31ISfjRviS7jZ3H3uylfKnDJ7UEzOZB1flWGL32KvKp5Whoa5/KlidyIA uRfx+AuhkDVsJgI5VSBwQ+V+s93LHQFJHNvnlRIArvBLYGmcVKG+h+B0AJVJU/E7qo3O JimA== X-Gm-Message-State: ACgBeo3pxAEuOf7xpALZC7dEuFx3r3zJ63GSTbU3Je2eG8Cb5qZ4BE/I d3csRpGzjYmLZSw/kGP4RV0ZhQ== X-Google-Smtp-Source: AA6agR6D8yv+I41qejd4SGkW35TMB/vLceOIvQ2hMUIldxvwQ6y1Na7LYQXAK5TlyJJ/k/Fb2VzujA== X-Received: by 2002:a17:902:ecce:b0:16e:e6e9:69b9 with SMTP id a14-20020a170902ecce00b0016ee6e969b9mr10966608plh.139.1659454232198; Tue, 02 Aug 2022 08:30:32 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id v10-20020a1709028d8a00b0016bfbd99f64sm11895095plo.118.2022.08.02.08.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 08:30:31 -0700 (PDT) Date: Tue, 2 Aug 2022 08:30:30 -0700 From: Kees Cook To: Qing Zhao Cc: gcc-patches , jakub Jelinek , richard Biener , martin Sebor , "joseph@codesourcery.com" Subject: Re: [GCC13][Patch][V2][2/2]Add a new option -fstrict-flex-array[=n] and attribute strict_flex_array(n) and use it in PR101836 Message-ID: <202208020826.EFFB2E7410@keescook> References: <1D72918C-4D6A-4583-AF14-288757C04DD0@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1D72918C-4D6A-4583-AF14-288757C04DD0@oracle.com> X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2022 15:30:35 -0000 On Tue, Jul 19, 2022 at 02:11:19PM +0000, Qing Zhao wrote: > From a09f39ded462611286a44d9e8273de8342673ba2 Mon Sep 17 00:00:00 2001 > From: Qing Zhao > Date: Mon, 18 Jul 2022 18:12:26 +0000 > Subject: [PATCH 2/2] Use new flag DECL_NOT_FLEXARRAY in __builtin_object_size > [PR101836] > > Use new flag DECL_NOT_FLEXARRAY to determine whether the trailing array > of a structure is flexible array member in __builtin_object_size. FWIW, with these patches I've done builds of the Linux kernel using the ...=3 level, and things are looking correct on our end. (There are, as expected, many places in Linux that need to be fixed, and that work is on-going, guided by this option's results.) -Kees -- Kees Cook