Re: [PATCH] nvmem: rave-sp-eeprom: Remove VLA usage

2018-06-21 Thread Andrey Smirnov
On Wed, Jun 20, 2018 at 11:26 AM Kees Cook wrote: > > In the quest to remove all stack VLA usage from the kernel[1], this > uses the maximum allocation size for the stack and adds a sanity check, > similar to what has already be done for the regular rave-sp driver. > > [1] > https://lkml.kernel.o

[PATCH] nvmem: rave-sp-eeprom: Remove VLA usage

2018-06-20 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this uses the maximum allocation size for the stack and adds a sanity check, similar to what has already be done for the regular rave-sp driver. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gm