Commit 1c7873e
mm: lock newly mapped VMA with corrected ordering
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: 33313a7 ("mm: lock newly mapped VMA which can be modified after it becomes visible")
Cc: stable@vger.kernel.org
Signed-off-by: Hugh Dickins <hughd@google.com>
Tested-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 946c6b5 commit 1c7873e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2809 | 2809 | | |
2810 | 2810 | | |
2811 | 2811 | | |
| 2812 | + | |
| 2813 | + | |
2812 | 2814 | | |
2813 | 2815 | | |
2814 | 2816 | | |
2815 | | - | |
2816 | | - | |
2817 | 2817 | | |
2818 | 2818 | | |
2819 | 2819 | | |
| |||
0 commit comments