[PATCH] ARM: Enable ARCH_HAS_DEBUG_VM_PGTABLE

Linus Walleij linus.walleij at linaro.org
Fri Jun 9 02:28:34 PDT 2023


Using the generic page table tests is nice for conformance
testing. After enabling this on Versatile Express with LPAE
and debug prints all tests pass on the classic MMU.

However with LPAE enabled we get this:
BUG: non-zero pgtables_bytes on freeing mm: -4096

This message comes from kernel/fork.c and not the test per
se.

Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0fb4b218f665..5af3ed89a2fe 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -7,6 +7,7 @@ config ARM
 	select ARCH_HAS_BINFMT_FLAT
 	select ARCH_HAS_CURRENT_STACK_POINTER
 	select ARCH_HAS_DEBUG_VIRTUAL if MMU
+	select ARCH_HAS_DEBUG_VM_PGTABLE if MMU
 	select ARCH_HAS_DMA_WRITE_COMBINE if !ARM_DMA_MEM_BUFFERABLE
 	select ARCH_HAS_ELF_RANDOMIZE
 	select ARCH_HAS_FORTIFY_SOURCE
-- 
2.34.1




More information about the linux-arm-kernel mailing list