]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: write-lock VMAs before removing them from VMA tree
authorSuren Baghdasaryan <surenb@google.com>
Mon, 27 Feb 2023 17:36:17 +0000 (09:36 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:09 +0000 (16:02 -0700)
commit0f5fc792f3619a4324bd9a3749a2eb151b9afef1
tree645aa71ed0b7dd423e9a8152e863f677f67e8f0a
parent51ec4bb254f5faeec942375c49abec11826b4d91
mm: write-lock VMAs before removing them from VMA tree

Write-locking VMAs before isolating them ensures that page fault handlers
don't operate on isolated VMAs.

Link: https://lkml.kernel.org/r/20230227173632.3292573-19-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c
mm/nommu.c