Revert "arm64: mm: add support for WXN memory translation attribute"
This reverts commit 50e3ed0f . 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
Showing
- arch/arm64/Kconfig 0 additions, 11 deletionsarch/arm64/Kconfig
- arch/arm64/include/asm/cpufeature.h 0 additions, 8 deletionsarch/arm64/include/asm/cpufeature.h
- arch/arm64/include/asm/mman.h 0 additions, 36 deletionsarch/arm64/include/asm/mman.h
- arch/arm64/include/asm/mmu_context.h 1 addition, 29 deletionsarch/arm64/include/asm/mmu_context.h
- arch/arm64/kernel/pi/idreg-override.c 1 addition, 3 deletionsarch/arm64/kernel/pi/idreg-override.c
- arch/arm64/kernel/pi/map_kernel.c 0 additions, 23 deletionsarch/arm64/kernel/pi/map_kernel.c
- arch/arm64/mm/proc.S 0 additions, 6 deletionsarch/arm64/mm/proc.S
Please register or sign in to comment