Skip to content

Commit

Permalink
ARM: 8298/1: ARM_KERNMEM_PERMS only works with MMU enabled
Browse files Browse the repository at this point in the history
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 <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Arnd Bergmann authored and Russell King committed Jan 29, 2015
1 parent ed46092 commit fba2890
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ config ARCH_SUPPORTS_BIG_ENDIAN

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

0 comments on commit fba2890

Please sign in to comment.