Re: [PATCH v2] mtd: nftl: Remove VLA usage

2018-04-30 Thread Boris Brezillon
On Sun, 29 Apr 2018 08:00:53 -0700 Kees Cook wrote: > On the quest to remove all stack VLAs from the kernel[1] this changes > the check_free_sectors() routine to use a kmalloc()ed buffer instead > of a large VLA stack buffer. > > [1] > https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6

[PATCH v2] mtd: nftl: Remove VLA usage

2018-04-29 Thread Kees Cook
On the quest to remove all stack VLAs from the kernel[1] this changes the check_free_sectors() routine to use a kmalloc()ed buffer instead of a large VLA stack buffer. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gmail.com Signed-off-by: Kees Cook --- v