arm64: kernel: move identity map out of .text mapping
authorArd Biesheuvel <ardb@kernel.org>
Wed, 11 Jan 2023 10:22:32 +0000 (11:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 24 Jan 2023 11:51:07 +0000 (11:51 +0000)
commitaf7249b317e4d0b3d5a0ebbb7ee7a0f336ca7bca
treeaedec4e0642fae38501d3460958486e41166221a
parent82e4958800c01daa7662362ee9543065bd14c852
arm64: kernel: move identity map out of .text mapping

Reorganize the ID map slightly so that only code that is executed with
the MMU off or via the 1:1 mapping remains. This allows us to move the
identity map out of the .text segment, as it will no longer need
executable permissions via the kernel mapping.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20230111102236.1430401-3-ardb@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/head.S
arch/arm64/kernel/vmlinux.lds.S
arch/arm64/mm/proc.S