[PATCH v8 22/23] mm: Enable PTE markers by default

From: Peter Xu
Date: Mon Apr 04 2022 - 22:43:13 EST


Enable PTE markers by default. On x86_64 it means it'll auto-enable
PTE_MARKER_UFFD_WP as well.

Signed-off-by: Peter Xu <peterx@xxxxxxxxxx>
---
mm/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/mm/Kconfig b/mm/Kconfig
index 6e7c2d59fa96..3eca34c864c5 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -911,12 +911,14 @@ config ANON_VMA_NAME

config PTE_MARKER
bool "Marker PTEs support"
+ default y

help
Allows to create marker PTEs for file-backed memory.

config PTE_MARKER_UFFD_WP
bool "Marker PTEs support for userfaultfd write protection"
+ default y
depends on PTE_MARKER && HAVE_ARCH_USERFAULTFD_WP

help
--
2.32.0