arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives
authorWill Deacon <will.deacon@arm.com>
Mon, 29 Jan 2018 12:00:00 +0000 (12:00 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:15 +0000 (18:46 +0800)
commit5956091e4255cf4b5e56586b6203de246c69dd99
treebb718006d4a5e73fd07812ee70ae1740ad28b5e8
parent6320f2e70cd5121443e8730740fa6563f6e2004e
arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives

commit 439e70e27a51 upstream.

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>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kernel/cpu-reset.S
arch/arm64/kernel/head.S
arch/arm64/kernel/sleep.S
arch/arm64/mm/proc.S