Re: dm/raid1: Remove VLA usage

From: Mike Snitzer
Date: Fri Apr 27 2018 - 10:39:22 EST


On Thu, Apr 26 2018 at 7:31pm -0400,
Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> On Tue, Apr 10, 2018 at 9:43 PM, Kees Cook <keescook@xxxxxxxxxxxx> 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.
> >
> > [1] https://lkml.org/lkml/2018/3/7/621
> >
> > Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
>
> Friendly ping... can someone take this, or should this go via another tree?

It needs further review but it is on my radar.

But please consider it claimed and proceeding upstream for 4.18 via
linux-dm.git

Thanks,
Mike