Skip to content

Commit fba2890

Browse files
arndbRussell King
authored andcommitted
ARM: 8298/1: ARM_KERNMEM_PERMS only works with MMU enabled
The recently added ARM_KERNMEM_PERMS feature works by manipulating the kernel page tables, which obviously requires an MMU. Trying to enable this feature when the MMU is disabled results in a lot of compile errors in mm/init.c, so let's add a Kconfig dependency to avoid that case. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent ed46092 commit fba2890

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/mm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ config ARCH_SUPPORTS_BIG_ENDIAN
10121012

10131013
config ARM_KERNMEM_PERMS
10141014
bool "Restrict kernel memory permissions"
1015+
depends on MMU
10151016
help
10161017
If this is set, kernel memory other than kernel text (and rodata)
10171018
will be made non-executable. The tradeoff is that each region is

0 commit comments

Comments
 (0)