Re: [PATCH v2] rslib: Remove VLAs by setting upper bound on nroots

From: Thomas Gleixner
Date: Wed Mar 28 2018 - 06:11:03 EST


On Wed, 28 Mar 2018, Thomas Gleixner wrote:
> On Tue, 27 Mar 2018, Kees Cook wrote:
>
> > > I guess if we put this storage into the rs_control (rather than on the
> > > stack) then we'd have to worry about concurrent uses of it. It looks
> > > like all the other fields are immutable once it's set up so there might
> > > be such users. In fact, I suspect there are...
> >
> > Exactly. :( This is the same conclusion tglx and I came to.
>
> I think we can lift that and just let all users set up a new rs_control
> from scratch. Takes some time to init the tables, but ....

Bah, no. dm-verity really wants to share them.....