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

Commit 0f5bfbd9 authored by Will Deacon's avatar Will Deacon Committed by Channagoud Kadabi
Browse files

arm64: Add skeleton to harden the branch predictor against aliasing attacks



Aliasing attacks against CPU branch predictors can allow an attacker to
redirect speculative control flow on some CPUs and potentially divulge
information from one context to another.

This patch adds initial skeleton code behind a new Kconfig option to
enable implementation-specific mitigations against these attacks for
CPUs that are affected.

Co-developed-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
[ckadabi@codeaurora.org: Add changes to include header files for per cpu
declarations in mmu.h and use raw_cpu_ptr instead of this_cpu_ptr.
Disable branch predictor hardening by default.]
Patch-mainline: linux-arm-kernel @ 01/05/18, 5:12
Change-Id: Ic8cafac0db223ba3cfe7b55419b29cea7b297a72
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent 18773dce
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