linux-stable/arch/arm64/kernel/pi
Catalin Marinas 69ebc01824 Revert "arm64: mm: add support for WXN memory translation attribute"
This reverts commit 50e3ed0f93.

The SCTLR_EL1.WXN control forces execute-never when a page has write
permissions. While the idea of hardening such write/exec combinations is
good, with permissions indirection enabled (FEAT_PIE) this control
becomes RES0. FEAT_PIE introduces a slightly different form of WXN which
only has an effect when the base permission is RWX and the write is
toggled by the permission overlay (FEAT_POE, not yet supported by the
arm64 kernel). Revert the patch for now.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/ZfGESD3a91lxH367@arm.com
2024-03-13 10:53:20 +00:00
..
.gitignore arm64: gitignore: ignore relacheck 2024-02-22 21:57:52 +00:00
Makefile arm64: kernel: Create initial ID map from C code 2024-02-16 12:42:34 +00:00
idreg-override.c Revert "arm64: mm: add support for WXN memory translation attribute" 2024-03-13 10:53:20 +00:00
kaslr_early.c arm64: head: Move early kernel mapping routines into C code 2024-02-16 12:42:33 +00:00
map_kernel.c Revert "arm64: mm: add support for WXN memory translation attribute" 2024-03-13 10:53:20 +00:00
map_range.c arm64: Enable LPA2 at boot if supported by the system 2024-02-16 12:42:40 +00:00
patch-scs.c arm64: head: Move early kernel mapping routines into C code 2024-02-16 12:42:33 +00:00
pi.h arm64: Enable LPA2 at boot if supported by the system 2024-02-16 12:42:40 +00:00
relacheck.c arm64: kernel: Manage absolute relocations in code built under pi/ 2024-02-16 12:42:28 +00:00
relocate.c arm64: head: Move early kernel mapping routines into C code 2024-02-16 12:42:33 +00:00