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

Commit b0ee7d6e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm64: add Kconfig entry for CONFIG_STRICT_MEMORY_RWX"

parents 33bf6c2b 60b04e3e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -351,3 +351,5 @@ source "security/Kconfig"
source "crypto/Kconfig"

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.