From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20171112235451.GB11398@eros> References: <1509580240-28314-1-git-send-email-me@tobin.cc> <20171112235451.GB11398@eros> From: Nick Desaulniers Date: Mon, 13 Nov 2017 08:50:25 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: [kernel-hardening] Re: [RFC] vla: add VLA macro and testing To: "Tobin C. Harding" Cc: Kees Cook , kernel-hardening@lists.openwall.com, Josh Poimboeuf List-ID: Variable Length Array In Struct, a GNU C extension. Think of a variable length array, as a member of a struct, but not as the final member. On Sun, Nov 12, 2017 at 3:54 PM, Tobin C. Harding wrote: > On Wed, Nov 08, 2017 at 03:04:25PM -0800, Nick Desaulniers wrote: >> On Wed, Nov 8, 2017 at 2:58 PM, Kees Cook wrote: >> > While I'd certainly like to see SOME kind of sanity checking for VLAs, >> > my preference would be to entirely eliminate them at get -Werror=vla >> > added to the Makefile. Even Linus has expressed irritation over the >> > idea of VLAs in structs in the past: >> > >> > https://lkml.org/lkml/2013/9/23/500 >> >> VLAIS makes it difficult (impossible) to compile allyesconfig with >> clang. VLA on the stack is fine, but VLAIS is not. > > What is VLAIS please? I don't get any results when grepping the kernel > tree. > > $ git grep VLAIS > > thanks, > Tobin. -- Thanks, ~Nick Desaulniers