arm64: mm: avoid writable executable mappings in kexec/hibernate code
authorArd Biesheuvel <ardb@kernel.org>
Fri, 29 Apr 2022 13:13:47 +0000 (15:13 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 17 May 2022 08:32:45 +0000 (09:32 +0100)
commit01142791b0d11f20becccd0b30ed5e8fbb3822b6
tree1a884b4b6b0b6e51128005c84fc5346d103ae9bd
parent6ee3cf6a209fc76d8ae51fba357a62841ec6124c
arm64: mm: avoid writable executable mappings in kexec/hibernate code

The temporary mappings of the low-level kexec and hibernate helpers are
created with both writable and executable attributes, which is not
necessary here, and generally best avoided. So use read-only, executable
attributes instead.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220429131347.3621090-3-ardb@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/trans_pgd.c