]> Git Repo - linux.git/commit
mm/gup: take mmap_lock in get_dump_page()
authorJann Horn <[email protected]>
Fri, 16 Oct 2020 03:12:57 +0000 (20:12 -0700)
committerLinus Torvalds <[email protected]>
Fri, 16 Oct 2020 18:11:21 +0000 (11:11 -0700)
commit7f3bfab52cab96c510fd60dd757a32db7bc52d3c
tree56a0c274000eac4b997a2fbc1d9bc044270c3c54
parenta07279c9a8cd7dbd321640ff7210591599ee00a4
mm/gup: take mmap_lock in get_dump_page()

Properly take the mmap_lock before calling into the GUP code from
get_dump_page(); and play nice, allowing the GUP code to drop the
mmap_lock if it has to sleep.

As Linus pointed out, we don't actually need the VMA because
__get_user_pages() will flush the dcache for us if necessary.

Signed-off-by: Jann Horn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: "Eric W . Biederman" <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Hugh Dickins <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
mm/gup.c
This page took 0.053576 seconds and 4 git commands to generate.