arm-trusted-firmware/include/common
Jeenu Viswambharan 48e1d350a0 AArch64: Use SSBS for CVE_2018_3639 mitigation
The Armv8.5 extensions introduces PSTATE.SSBS (Speculation Store Bypass
Safe) bit to mitigate against Variant 4 vulnerabilities. Although an
Armv8.5 feature, this can be implemented by CPUs implementing earlier
version of the architecture.

With this patch, when both PSTATE.SSBS is implemented and
DYNAMIC_WORKAROUND_CVE_2018_3639 is active, querying for
SMCCC_ARCH_WORKAROUND_2 via. SMCCC_ARCH_FEATURES call would return 1 to
indicate that mitigation on the PE is either permanently enabled or not
required.

When SSBS is implemented, SCTLR_EL3.DSSBS is initialized to 0 at reset
of every BL stage. This means that EL3 always executes with mitigation
applied.

For Cortex A76, if the PE implements SSBS, the existing mitigation (by
using a different vector table, and tweaking CPU ACTLR2) is not used.

Change-Id: Ib0386c5714184144d4747951751c2fc6ba4242b6
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
2018-12-10 14:28:58 +00:00
..
aarch32 AArch64: Use SSBS for CVE_2018_3639 mitigation 2018-12-10 14:28:58 +00:00
aarch64 AArch64: Use SSBS for CVE_2018_3639 mitigation 2018-12-10 14:28:58 +00:00
tbbr Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
asm_macros_common.S Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
bl_common.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
debug.h Reorder log level macro definitions for clarity 2018-10-10 12:11:32 +01:00
desc_image_load.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
ep_info.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
fdt_wrappers.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
image_decompress.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
interrupt_props.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
param_header.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
romlib.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
runtime_svc.h Fix misra warnings in SMC and power mgmt code 2018-10-09 12:23:55 +01:00