On Thu, Aug 10, 2023 at 09:40:57AM +0200, David Hildenbrand wrote: > I won't lie: all of these locking checks are a bit hard to get and possibly > even harder to maintain. > > Maybe better mmap unlock sanity checks as spelled out above might help > improve part of the situation. > > > And maybe some comments regarding the placement might help as well ;) The placement was obvious; we can't call into drivers under the vma lock. Not until we've audited all of them. I haven't yet had the chance to figure out exactly what is being fixed with this patch ... give me a few minutes.