Re: [PATCH v4 net-next] mdio-mux-gpio: Remove VLA usage

From: David Miller
Date: Tue Jun 26 2018 - 10:25:45 EST


From: Kees Cook <keescook@xxxxxxxxxxxx>
Date: Mon, 25 Jun 2018 15:49:49 -0700

> In the quest to remove all stack VLA usage from the kernel[1], this
> allocates the values buffer during the callback instead of putting it
> on the stack.
>
> [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@xxxxxxxxxxxxxx
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
> Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Applied.