Re: [PATCH 1/2] mmap locking API: Order lock of nascent mm outside lock of live mm

Jason Gunthorpe
2020-10-05T13:14:01Z

On Mon, Oct 05, 2020 at 03:30:43AM +0200, Jann Horn wrote:
> But another place where lockdep asserts should be added is find_vma();
> there are currently several architectures that sometimes improperly
> call that with no lock held:

Yes, I've seen several cases of this mis-use in drivers too

Jason