summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/head.S
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-01-29 12:00:00 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2018-02-06 22:53:27 +0000
commit439e70e27a51fe374806f460848066b237b0c10b (patch)
tree6ee39e0a49a2f6de0878fe09b291cf53fa9bd941 /arch/arm64/kernel/head.S
parent79ddab3b05ca903f552fd5bf920efa055210322b (diff)
downloadlinux-stable-439e70e27a51fe374806f460848066b237b0c10b.tar.gz
linux-stable-439e70e27a51fe374806f460848066b237b0c10b.tar.bz2
linux-stable-439e70e27a51fe374806f460848066b237b0c10b.zip
arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives
The identity map is mapped as both writeable and executable by the SWAPPER_MM_MMUFLAGS and this is relied upon by the kpti code to manage a synchronisation flag. Update the .pushsection flags to reflect the actual mapping attributes. Reported-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/head.S')
-rw-r--r--arch/arm64/kernel/head.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
index 25f5b2e400fb..2b6b8b24e5ab 100644
--- a/arch/arm64/kernel/head.S
+++ b/arch/arm64/kernel/head.S
@@ -455,7 +455,7 @@ ENDPROC(__primary_switched)
* end early head section, begin head code that is also used for
* hotplug and needs to have the same protections as the text region
*/
- .section ".idmap.text","ax"
+ .section ".idmap.text","awx"
ENTRY(kimage_vaddr)
.quad _text - TEXT_OFFSET