diff options
| author | Suren Baghdasaryan <[email protected]> | 2023-02-27 09:36:20 -0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-05 20:02:59 -0700 |
| commit | eeff9a5d47f89bc641034fea05501c8a6de131cb (patch) | |
| tree | 851af9a8b1788fb18c749a0652c8ce11a67600a1 /tools/perf/scripts/python | |
| parent | f2e13784c16a98e269b3111ac02ae44446dd589c (diff) | |
mm/mmap: prevent pagefault handler from racing with mmu_notifier registration
Page fault handlers might need to fire MMU notifications while a new
notifier is being registered. Modify mm_take_all_locks to write-lock all
VMAs and prevent this race with page fault handlers that would hold VMA
locks. VMAs are locked before i_mmap_rwsem and anon_vma to keep the same
locking order as in page fault handlers.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Suren Baghdasaryan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions