]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: prevent do_swap_page from handling page faults under VMA lock
authorSuren Baghdasaryan <surenb@google.com>
Mon, 27 Feb 2023 17:36:25 +0000 (09:36 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:11 +0000 (16:02 -0700)
commitee2129efc20178c5e6bbeb838277227a616d4d17
treee7be1a636e3bcb3f75985cc8ab714c90cb3826fd
parent31391241da2054116283beb9f3f64dd8b8e79f09
mm: prevent do_swap_page from handling page faults under VMA lock

Due to the possibility of do_swap_page dropping mmap_lock, abort fault
handling under VMA lock and retry holding mmap_lock.  This can be handled
more gracefully in the future.

Link: https://lkml.kernel.org/r/20230227173632.3292573-27-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Laurent Dufour <laurent.dufour@fr.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c