]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm64: Implement branch predictor hardening for affected Cortex-A CPUs
authorWill Deacon <will.deacon@arm.com>
Wed, 3 Jan 2018 12:46:21 +0000 (12:46 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:49 +0000 (08:15 -0600)
commit1e61be5a134951ade951f5b5cca65056a2a234e1
tree2ae0cbd26beaed7509a7c380fb596ae1f5b363f7
parent7b1b66d23d752c6a9be6fe039e755e6e4101c217
arm64: Implement branch predictor hardening for affected Cortex-A CPUs

BugLink: http://bugs.launchpad.net/bugs/1751064
Commit aa6acde65e03 upstream.

Cortex-A57, A72, A73 and A75 are susceptible to branch predictor aliasing
and can theoretically be attacked by malicious code.

This patch implements a PSCI-based mitigation for these CPUs when available.
The call into firmware will invalidate the branch predictor state, preventing
any malicious entries from affecting other victim contexts.

Co-developed-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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/arm64/kernel/bpi.S
arch/arm64/kernel/cpu_errata.c