]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0()
authorWill Deacon <will.deacon@arm.com>
Mon, 29 Jan 2018 11:59:53 +0000 (11:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:22:50 +0000 (20:22 +0100)
commit69288201803aecffd7f17ffa9c0c5043ffb8367c
treef9c8310f149615bc23b3eca5c3149117b9a979bb
parentc98c8c23585643cbf255415b02cb32c95baac82e
arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0()

Commit 41acec624087 upstream.

To allow systems which do not require kpti to continue running with
global kernel mappings (which appears to be a requirement for Cavium
ThunderX due to a CPU erratum), make the use of nG in the kernel page
tables dependent on arm64_kernel_unmapped_at_el0(), which is resolved
at runtime.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/kernel-pgtable.h
arch/arm64/include/asm/pgtable-prot.h