arm64: kernel: remove SHF_WRITE|SHF_EXECINSTR from .idmap.text
authorndesaulniers@google.com <ndesaulniers@google.com>
Fri, 28 Apr 2023 18:28:17 +0000 (11:28 -0700)
committerWill Deacon <will@kernel.org>
Tue, 2 May 2023 11:42:22 +0000 (12:42 +0100)
commit4df69e0df295822cdf816442fe4897f214cccb08
treef3a9d3c147c4d409913df17c43e3a664206a2399
parenteda081d2efac50c9b314df7fb340a62306a7b07a
arm64: kernel: remove SHF_WRITE|SHF_EXECINSTR from .idmap.text

commit d54170812ef1 ("arm64: fix .idmap.text assertion for large kernels")
modified some of the section assembler directives that declare
.idmap.text to be SHF_ALLOC instead of
SHF_ALLOC|SHF_WRITE|SHF_EXECINSTR.

This patch fixes up the remaining stragglers that were left behind.  Add
Fixes tag so that this doesn't precede related change in stable.

Fixes: d54170812ef1 ("arm64: fix .idmap.text assertion for large kernels")
Reported-by: Greg Thelen <gthelen@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20230428-awx-v2-1-b197ffa16edc@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpu-reset.S
arch/arm64/kernel/sleep.S
arch/arm64/mm/proc.S