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

Commit 951eb262 authored by Larry Bassel's avatar Larry Bassel Committed by Matt Wagantall
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 f2971396
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -738,3 +738,5 @@ source "arch/arm64/crypto/Kconfig"
endif

source "lib/Kconfig"

source "arch/arm64/mm/Kconfig"

arch/arm64/mm/Kconfig

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