Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60b04e3e authored by Larry Bassel's avatar Larry Bassel
Browse files

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: default avatarLarry Bassel <lbassel@codeaurora.org>
parent 029e7622
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -351,3 +351,5 @@ source "security/Kconfig"
source "crypto/Kconfig"
source "crypto/Kconfig"


source "lib/Kconfig"
source "lib/Kconfig"

source "arch/arm64/mm/Kconfig"

arch/arm64/mm/Kconfig

0 → 100644
+10 −0
Original line number Original line Diff line number Diff line
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.