aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Xu <[email protected]>2022-05-12 20:22:56 -0700
committerAndrew Morton <[email protected]>2022-05-13 07:20:11 -0700
commit81e0f15f2ef6dad7ccb9c03d8e61ef7ded836b38 (patch)
tree354efff87a43d6b361730962f5ab864e7f06288a
parentb1f9e876862d8f7176299ec4fb2108bc1045cbc8 (diff)
mm: enable PTE markers by default
Enable PTE markers by default. On x86_64 it means it'll auto-enable PTE_MARKER_UFFD_WP as well. [[email protected]: hide PTE_MARKER option] Link: https://lkml.kernel.org/r/[email protected] 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]>
-rw-r--r--mm/Kconfig8
1 files changed, 5 insertions, 3 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index 71c653260a44..fd6c9fe4b6ed 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -910,14 +910,16 @@ config ANON_VMA_NAME
difference in their name.
config PTE_MARKER
- bool "Marker PTEs support"
+ bool
help
Allows to create marker PTEs for file-backed memory.
config PTE_MARKER_UFFD_WP
- bool "Marker PTEs support for userfaultfd write protection"
- depends on PTE_MARKER && HAVE_ARCH_USERFAULTFD_WP
+ bool "Userfaultfd write protection support for shmem/hugetlbfs"
+ default y
+ depends on HAVE_ARCH_USERFAULTFD_WP
+ select PTE_MARKER
help
Allows to create marker PTEs for userfaultfd write protection