]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:47 +0000 (08:15 -0600)
commit185d7e77339bf715817be2a85e0201bb915c03ce
treeffa78f8a7a5fc0e929e20dd5f99a83aba6a3e790
parent1c6f22ae98c9edac2d79be45c693d2eaf7764ee9
arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0()

BugLink: http://bugs.launchpad.net/bugs/1751064
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/arm64/include/asm/kernel-pgtable.h
arch/arm64/include/asm/pgtable-prot.h