arm64: ssbs: Don't treat CPUs with SSBS as unaffected by SSB
authorWill Deacon <will.deacon@arm.com>
Thu, 24 Oct 2019 12:48:30 +0000 (14:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:17:29 +0000 (09:17 +0100)
commit19cb87c3c13583cd2b23deeda19505cb10cd880d
treec32a803b60792a63e659f77dc5c93bdf4205de21
parent325758118d72e0723f5eae6eb01844101f8505b3
arm64: ssbs: Don't treat CPUs with SSBS as unaffected by SSB

[ Upstream commit eb337cdfcd5dd3b10522c2f34140a73a4c285c30 ]

SSBS provides a relatively cheap mitigation for SSB, but it is still a
mitigation and its presence does not indicate that the CPU is unaffected
by the vulnerability.

Tweak the mitigation logic so that we report the correct string in sysfs.

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>
arch/arm64/kernel/cpu_errata.c