From: Peter Xu Date: Fri, 13 May 2022 03:22:56 +0000 (-0700) Subject: mm: enable PTE markers by default X-Git-Tag: v6.6.17~7438^2~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81e0f15f2ef6dad7ccb9c03d8e61ef7ded836b38;p=platform%2Fkernel%2Flinux-rpi.git 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. [peterx@redhat.com: hide PTE_MARKER option] Link: https://lkml.kernel.org/r/20220419202531.27415-1-peterx@redhat.com Link: https://lkml.kernel.org/r/20220405014929.15158-1-peterx@redhat.com Signed-off-by: Peter Xu Cc: Alistair Popple Cc: Andrea Arcangeli Cc: Axel Rasmussen Cc: David Hildenbrand Cc: Hugh Dickins Cc: Jerome Glisse Cc: "Kirill A . Shutemov" Cc: Matthew Wilcox Cc: Mike Kravetz Cc: Mike Rapoport Cc: Nadav Amit Signed-off-by: Andrew Morton --- diff --git a/mm/Kconfig b/mm/Kconfig index 71c6532..fd6c9fe 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