]> Git Repo - linux.git/commit
mm/uffd: enable write protection for shmem & hugetlbfs
authorPeter Xu <[email protected]>
Fri, 13 May 2022 03:22:56 +0000 (20:22 -0700)
committerAndrew Morton <[email protected]>
Fri, 13 May 2022 14:20:11 +0000 (07:20 -0700)
commitb1f9e876862d8f7176299ec4fb2108bc1045cbc8
tree9a2de240e607dd786011ec3a2108962d4f444782
parent8e165e733bfa06edbcdbe491ef13b2bf1a3fa883
mm/uffd: enable write protection for shmem & hugetlbfs

We've had all the necessary changes ready for both shmem and hugetlbfs.
Turn on all the shmem/hugetlbfs switches for userfaultfd-wp.

We can expand UFFD_API_RANGE_IOCTLS_BASIC with _UFFDIO_WRITEPROTECT too
because all existing types now support write protection mode.

Since vma_can_userfault() will be used elsewhere, move into userfaultfd_k.h.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Peter Xu <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Axel Rasmussen <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Jerome Glisse <[email protected]>
Cc: "Kirill A . Shutemov" <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Nadav Amit <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
fs/userfaultfd.c
include/linux/userfaultfd_k.h
include/uapi/linux/userfaultfd.h
mm/userfaultfd.c
This page took 0.059882 seconds and 4 git commands to generate.