diff options
author | Will Deacon <will.deacon@arm.com> | 2018-01-29 12:00:00 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-02-06 22:53:27 +0000 |
commit | 439e70e27a51fe374806f460848066b237b0c10b (patch) | |
tree | 6ee39e0a49a2f6de0878fe09b291cf53fa9bd941 /arch/arm64/kernel/head.S | |
parent | 79ddab3b05ca903f552fd5bf920efa055210322b (diff) | |
download | linux-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.S | 2 |
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 |