Merge tag 'thermal-5.17-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae...
[linux-2.6-microblaze.git] / mm / Kconfig.debug
index 1e73717..5bd5bb0 100644 (file)
@@ -62,6 +62,30 @@ config PAGE_OWNER
 
          If unsure, say N.
 
+config PAGE_TABLE_CHECK
+       bool "Check for invalid mappings in user page tables"
+       depends on ARCH_SUPPORTS_PAGE_TABLE_CHECK
+       select PAGE_EXTENSION
+       help
+         Check that anonymous page is not being mapped twice with read write
+         permissions. Check that anonymous and file pages are not being
+         erroneously shared. Since the checking is performed at the time
+         entries are added and removed to user page tables, leaking, corruption
+         and double mapping problems are detected synchronously.
+
+         If unsure say "n".
+
+config PAGE_TABLE_CHECK_ENFORCED
+       bool "Enforce the page table checking by default"
+       depends on PAGE_TABLE_CHECK
+       help
+         Always enable page table checking.  By default the page table checking
+         is disabled, and can be optionally enabled via page_table_check=on
+         kernel parameter. This config enforces that page table check is always
+         enabled.
+
+         If unsure say "n".
+
 config PAGE_POISONING
        bool "Poison pages after freeing"
        help