Re: [PATCH] sparc64: viohs: Remove VLA usage

From: David Miller
Date: Mon Oct 08 2018 - 01:57:33 EST


From: Kees Cook <keescook@xxxxxxxxxxxx>
Date: Wed, 5 Sep 2018 15:03:51 -0700

> In the quest to remove all stack VLA usage from the kernel[1], this
> allocates a fixed size array for the maximum number of cookies and
> adds a runtime sanity check.
>
> [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1
> RqZWA@xxxxxxxxxxxxxx
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

Applied.