Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKwvOdnMTdb856v9xCJ_cBQZUy+zYmZT9=dvQQDNsisYM37CGg@mail.gmail.com>
Date: Mon, 13 Nov 2017 08:50:25 -0800
From: Nick Desaulniers <ndesaulniers@...gle.com>
To: "Tobin C. Harding" <me@...in.cc>
Cc: Kees Cook <keescook@...omium.org>, kernel-hardening@...ts.openwall.com, 
	Josh Poimboeuf <jpoimboe@...hat.com>
Subject: Re: [RFC] vla: add VLA macro and testing

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 <me@...in.cc> 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 <keescook@...omium.org> 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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.