aboutsummaryrefslogtreecommitdiff
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorWill Deacon2020-02-06 10:42:58 +0000
committerWill Deacon2020-02-10 11:29:02 +0000
commitfca3d33d8ad61eb53eca3ee4cac476d1e31b9008 (patch)
treee0e63ad4e8ec217f8c15829d84da1b2bcbbd8ff7 /kernel/audit.h
parent2c614c1194f2803750c14b751871bd168dcc8054 (diff)
arm64: ssbs: Fix context-switch when SSBS is present on all CPUs
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: cbdf8a189a66 ("arm64: Force SSBS on context switch") Reviewed-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'kernel/audit.h')
0 files changed, 0 insertions, 0 deletions