android_kernel_samsung_msm8976/arch/arm64/mm/Kconfig
Larry Bassel 60b04e3ec6 arm64: add Kconfig entry for CONFIG_STRICT_MEMORY_RWX
In order to enable this config option, a Kconfig
entry is necessary.

Change-Id: I0013db0a98f016777809b6a88bd0a17b46d59f9d
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
2014-03-27 09:04:16 -07:00

11 lines
450 B
Plaintext

config STRICT_MEMORY_RWX
bool "restrict kernel memory permissions as much as possible"
help
If this is set, kernel text will be made RX, kernel data and stack
RW, rodata R (otherwise all of the kernel 1-to-1 mapping is
made RWX).
The tradeoff is that several sections are padded to
2M boundaries (because their permissions are different and
splitting the 2M pages into 4K ones causes TLB performance
problems), wasting memory.