On 18/12/2017 20:06, Adalber Lazăr wrote: > + /* VMAs will be modified */ > + down_write(&req_mm->mmap_sem); > + down_write(&map_mm->mmap_sem); > + Is there a locking rule when locking multiple mmap_sems at the same time? As it's written, this can cause deadlocks. Paolo