]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(security): apply SMCCC_ARCH_WORKAROUND_3 to A73/A75/A72/A57
authorBipin Ravi <bipin.ravi@arm.com>
Thu, 24 Feb 2022 05:45:50 +0000 (23:45 -0600)
committerJohn Powell <john.powell@arm.com>
Thu, 17 Mar 2022 23:01:34 +0000 (01:01 +0200)
commit9b2510b69de26cc7f571731b415f6dec82669b6c
tree7e390dfaf479fdefd0432eb654d6fd2098acefe8
parentbe9121fd311ff48c94f3d90fe7efcf84586119e4
fix(security): apply SMCCC_ARCH_WORKAROUND_3 to A73/A75/A72/A57

This patch applies CVE-2022-23960 workarounds for Cortex-A75,
Cortex-A73, Cortex-A72 & Cortex-A57. This patch also implements
the new SMCCC_ARCH_WORKAROUND_3 and enables necessary discovery
hooks for Coxtex-A72, Cortex-A57, Cortex-A73 and Cortex-A75 to
enable discovery of this SMC via SMC_FEATURES. SMCCC_ARCH_WORKAROUND_3
is implemented for A57/A72 because some revisions are affected by both
CVE-2022-23960 and CVE-2017-5715 and this allows callers to replace
SMCCC_ARCH_WORKAROUND_1 calls with SMCCC_ARCH_WORKAROUND_3. For details
of SMCCC_ARCH_WORKAROUND_3, please refer SMCCCv1.4 specification.

Signed-off-by: Bipin Ravi <bipin.ravi@arm.com>
Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: Ifa6d9c7baa6764924638efe3c70468f98d60ed7c
13 files changed:
include/lib/cpus/aarch64/cpu_macros.S
include/lib/cpus/wa_cve_2022_23960.h [new file with mode: 0644]
include/services/arm_arch_svc.h
lib/cpus/aarch64/cortex_a57.S
lib/cpus/aarch64/cortex_a72.S
lib/cpus/aarch64/cortex_a73.S
lib/cpus/aarch64/cortex_a75.S
lib/cpus/aarch64/cortex_a76.S
lib/cpus/aarch64/cpu_helpers.S
lib/cpus/aarch64/wa_cve_2017_5715_bpiall.S
lib/cpus/aarch64/wa_cve_2017_5715_mmu.S
plat/st/stm32mp1/platform.mk
services/arm_arch_svc/arm_arch_svc_setup.c