Re: [PATCH] dm/raid1: Remove VLA usage

2018-04-26 Thread Kees Cook
On Tue, Apr 10, 2018 at 9:43 PM, Kees Cook wrote: > On the quest to remove all VLAs from the kernel[1], this avoids VLAs > in dm-raid1.c by just using the maximum size for the stack arrays. > The nr_mirrors value was already capped at 9, so this makes it a trivial > adjustment to the array sizes.

[PATCH] dm/raid1: Remove VLA usage

2018-04-10 Thread Kees Cook
On the quest to remove all VLAs from the kernel[1], this avoids VLAs in dm-raid1.c by just using the maximum size for the stack arrays. The nr_mirrors value was already capped at 9, so this makes it a trivial adjustment to the array sizes. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Kee