Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72aff494 authored by Will Deacon's avatar Will Deacon Committed by Channagoud Kadabi
Browse files

arm64: Implement branch predictor hardening for affected Cortex-A CPUs



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.

Change-Id: I10e3ca40888379b8f56c21f0ddf488a4002f4a31
Co-developed-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Patch-mainline: linux-arm-kernel @ 01/08/18, 9:32
[ckadabi@codeaurora.org: Resolved minor conflcits]
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent 09cf06f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment