Re: [PATCH] drm/i2c: tda9950: Remove VLA usage

2018-07-17 Thread Kees Cook
On Wed, Jun 20, 2018 at 11:27 AM, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > sets the buffer to maximum size and adds a sanity check. > > [1] > https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gmail.com > > Signed-off

[PATCH] drm/i2c: tda9950: Remove VLA usage

2018-06-21 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this sets the buffer to maximum size and adds a sanity check. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gmail.com Signed-off-by: Kees Cook --- drivers/gpu/drm/i2c/tda9950.c | 5 - 1