Re: [PATCH] mm: lock newly mapped VMA with corrected ordering

2023-07-08 Thread Suren Baghdasaryan
On Sat, Jul 8, 2023 at 4:10 PM Suren Baghdasaryan wrote: > > On Sat, Jul 8, 2023 at 4:04 PM Hugh Dickins wrote: > > > > Lockdep is certainly right to complain about > > (&vma->vm_lock->lock){}-{3:3}, at: vma_start_write+0x2d/0x3f > >but task is already holding lock: > > (&mapp

Re: [PATCH] mm: lock newly mapped VMA with corrected ordering

2023-07-08 Thread Suren Baghdasaryan
On Sat, Jul 8, 2023 at 4:04 PM Hugh Dickins wrote: > > Lockdep is certainly right to complain about > (&vma->vm_lock->lock){}-{3:3}, at: vma_start_write+0x2d/0x3f >but task is already holding lock: > (&mapping->i_mmap_rwsem){+.+.}-{3:3}, at: mmap_region+0x4dc/0x6db > Invert tho

[PATCH] mm: lock newly mapped VMA with corrected ordering

2023-07-08 Thread Hugh Dickins
Lockdep is certainly right to complain about (&vma->vm_lock->lock){}-{3:3}, at: vma_start_write+0x2d/0x3f but task is already holding lock: (&mapping->i_mmap_rwsem){+.+.}-{3:3}, at: mmap_region+0x4dc/0x6db Invert those to the usual ordering. Fixes: 33313a747e81 ("mm: lock newly