Re: [PATCH] userfaultfd: prevent registration of special VMAs

From: Andrew Morton

Date: Sun Jul 05 2026 - 03:52:53 EST


On Fri, 3 Jul 2026 14:38:56 +0100 Lorenzo Stoakes <ljs@xxxxxxxxxx> wrote:

> On Fri, Jul 03, 2026 at 04:20:37PM +0300, Mike Rapoport wrote:
> > On Fri, Jul 03, 2026 at 11:11:14AM +0100, Lorenzo Stoakes wrote:
> > > On Thu, Jun 18, 2026 at 11:37:10AM +0200, David Hildenbrand (Arm) wrote:
> > > > > In a way that's an extra check for hugetlb, but it will work.
> > > >
> > > > My point would be that we exclude all special VMAs, except hugetlb (which is
> > > > special but supported ... in its special way).
> > >
> > > Mike - you said you were respinning, it'd help my series if you respan the above
> > > quickly so I could base my change on that :).
> >
> > I sent it already:
> >
> > https://lore.kernel.org/all/20260618095017.2553004-1-rppt@xxxxxxxxxx
> >
> > and Andrew apparently ook it:
> >
> > https://lore.kernel.org/all/20260618183442.BBCD71F000E9@xxxxxxxxxxxxxxx
>
> It's not anywhere :)
>
> Andrew - did you take that thread as signal this should not go in?
>
> It should definitely go in. I will clean up the mess discussed there separately.

Thanks, yes, I added it then hid it when Linus objected. I'll unhide
it now.