arm64: Turn on KPTI only on CPUs that need it
authorJayachandran C <jnair@caviumnetworks.com>
Fri, 19 Jan 2018 12:22:48 +0000 (04:22 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 23 Jan 2018 19:59:49 +0000 (19:59 +0000)
commit0ba2e29c7fc1d58a90fab614d41bf487e28e3840
tree264d7397b3e7505f2f5c801c9d613242e0533227
parentf3d795d9b360523beca6d13ba64c2c532f601149
arm64: Turn on KPTI only on CPUs that need it

Whitelist Broadcom Vulcan/Cavium ThunderX2 processors in
unmap_kernel_at_el0(). These CPUs are not vulnerable to
CVE-2017-5754 and do not need KPTI when KASLR is off.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jayachandran C <jnair@caviumnetworks.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpufeature.c