arm64: Branch predictor hardening for Cavium ThunderX2
authorJayachandran C <jnair@caviumnetworks.com>
Fri, 19 Jan 2018 12:22:47 +0000 (04:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:22:54 +0000 (20:22 +0100)
commit402aeac58753ad5c3582eb8175a336f8e1fb62f4
tree59b7c7fcd60f827e5fb2436d179227d2a301682b
parent9b26a45c34e40575e53287365be7571b9cda21ab
arm64: Branch predictor hardening for Cavium ThunderX2

Commit f3d795d9b360 upstream.

Use PSCI based mitigation for speculative execution attacks targeting
the branch predictor. We use the same mechanism as the one used for
Cortex-A CPUs, we expect the PSCI version call to have a side effect
of clearing the BTBs.

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>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/cpu_errata.c