arm64: consolidate rox page protection logic
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 14 Jun 2023 16:09:35 +0000 (17:09 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 14 Jun 2023 17:03:10 +0000 (18:03 +0100)
commit601eaec513cc814c3dc6ed504c7c51ce1b80d0ea
tree00965af8cc94095c143f35f0deaaf0703aa1e716
parentf6794950f0e5ba37e3bbedda4d6ab0aad7395dd3
arm64: consolidate rox page protection logic

Consolidate the arm64 decision making for the page protections used
for executable pages, used by both the trampoline code and the kernel
text mapping code.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1q9T3v-00EDmW-BH@rmk-PC.armlinux.org.uk
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c