Re: [PATCH v2 13/35] x86/mm: attempt speculative mm faults first

From: Michel Lespinasse
Date: Mon Feb 07 2022 - 12:49:27 EST


On Tue, Feb 01, 2022 at 05:16:43PM +0000, Liam Howlett wrote:
> > + vma = __find_vma(mm, address);
> > + if (!vma || vma->vm_start > address) {
>
> This fits the vma_lookup() pattern - although you will have to work
> around the locking issue still. This is the same for the other
> platforms too; they fit the pattern also.

In this case, I think it's just as well to follow the lines of the
non-speculative path, which itself can't use vma_lookup() because it
needs to handle the stack expansion case...

--
Michel "walken" Lespinasse