linux-stable/arch/arm64
Will Deacon 7a89674c2e arm64: ssbs: Fix context-switch when SSBS is present on all CPUs
commit fca3d33d8a upstream.

When all CPUs in the system implement the SSBS extension, the SSBS field
in PSTATE is the definitive indication of the mitigation state. Further,
when the CPUs implement the SSBS manipulation instructions (advertised
to userspace via an HWCAP), EL0 can toggle the SSBS field directly and
so we cannot rely on any shadow state such as TIF_SSBD at all.

Avoid forcing the SSBS field in context-switch on such a system, and
simply rely on the PSTATE register instead.

Cc: <stable@vger.kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Srinivas Ramana <sramana@codeaurora.org>
Fixes: cbdf8a189a ("arm64: Force SSBS on context switch")
Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-19 19:51:56 +01:00
..
boot arm64: kbuild: remove compressed images on 'make ARCH=arm64 (dist)clean' 2020-02-05 14:43:35 +00:00
configs arm64: defconfig: Re-enable bcm2835-thermal driver 2020-01-27 14:50:10 +01:00
crypto crypto: arm64/sha2-ce - correct digest for empty data in finup 2019-07-26 09:14:19 +02:00
include KVM: arm64: Only sign-extend MMIO up to register width 2020-02-11 04:33:58 -08:00
kernel arm64: ssbs: Fix context-switch when SSBS is present on all CPUs 2020-02-19 19:51:56 +01:00
kvm arm64: nofpsmid: Handle TIF_FOREIGN_FPSTATE flag cleanly 2020-02-19 19:51:54 +01:00
lib arm64: lib: use C string functions with KASAN enabled 2019-12-01 09:17:01 +01:00
mm arm64: Revert support for execute-only user mappings 2020-01-09 10:19:03 +01:00
net bpf, arm64: use more scalable stadd over ldxr / stxr loop in xadd 2019-07-03 13:14:49 +02:00
xen arm64: mm: Add additional parameter to uaccess_ttbr0_disable 2018-01-17 13:57:49 +01:00
Kconfig arm64: enable generic CPU vulnerabilites support 2019-10-11 18:21:33 +02:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Kconfig.platforms ARM: SoC: late updates 2018-08-25 14:12:36 -07:00
Makefile arm64: makefile fix build of .i file in external module case 2019-12-01 09:17:14 +01:00