Re: [PATCH] sunvdc: Remove VLA usage

From: David Miller
Date: Mon Oct 08 2018 - 02:46:47 EST


From: Kees Cook <keescook@xxxxxxxxxxxx>
Date: Sun, 7 Oct 2018 23:16:01 -0700

> On Mon, Sep 24, 2018 at 8:19 PM, Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>> On Wed, Sep 5, 2018 at 5:09 PM, Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>>> In the quest to remove all stack VLA usage from the kernel[1], this
>>> moves the math for cookie calculation into macros and allocates a fixed
>>> size array for the maximum number of cookies and adds a runtime sanity check.
>>> (Note that the size was always fixed, but just hidden from the compiler.)
>>>
>>> [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@xxxxxxxxxxxxxx
>>>
>>> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
>>
>> Friendly ping. Jens, can you take this?
>
> Dave, should this go via you instead? I'll take it via my tree if no
> one else wants it...

Please resend to me and CC: sparclinux@xxxxxxxxxxxxxxx and I'll take it.

Thanks.