]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm64: KVM: Use SMCCC_ARCH_WORKAROUND_1 for Falkor BP hardening
authorShanker Donthineni <shankerd@codeaurora.org>
Thu, 24 Oct 2019 12:48:14 +0000 (14:48 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 18:04:48 +0000 (19:04 +0100)
commitc6c07232325a30175fa279036b3c346995eaa44a
treebcad7ed77585ddc29a36996325b04c2dfc6c65dd
parent274adba3ccf6dcb0a466948c4283e55b932c9da2
arm64: KVM: Use SMCCC_ARCH_WORKAROUND_1 for Falkor BP hardening

BugLink: https://bugs.launchpad.net/bugs/1851876
[ Upstream commit 4bc352ffb39e4eec253e70f8c076f2f48a6c1926 ]

The function SMCCC_ARCH_WORKAROUND_1 was introduced as part of SMC
V1.1 Calling Convention to mitigate CVE-2017-5715. This patch uses
the standard call SMCCC_ARCH_WORKAROUND_1 for Falkor chips instead
of Silicon provider service ID 0xC2001700.

Cc: <stable@vger.kernel.org> # 4.14+
Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
[maz: reworked errata framework integration]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kernel/bpi.S
arch/arm64/kernel/cpu_errata.c
arch/arm64/kvm/hyp/entry.S
arch/arm64/kvm/hyp/switch.c