Re: [PATCH] md: get rid of a VLA

2018-03-08 Thread Kees Cook
On Thu, Mar 8, 2018 at 7:35 PM, Tycho Andersen wrote: > Ideally, we'd like to get rid of all VLAs in the kernel and add -Wvla to > the build args: https://lkml.org/lkml/2018/3/7/621 > > This one is a simple case, since we don't actually need the VLA at all: we > can just iterate over the stripes t

[PATCH] md: get rid of a VLA

2018-03-08 Thread Tycho Andersen
Ideally, we'd like to get rid of all VLAs in the kernel and add -Wvla to the build args: https://lkml.org/lkml/2018/3/7/621 This one is a simple case, since we don't actually need the VLA at all: we can just iterate over the stripes twice, once to emit their names, and the second time to emit stat