x86/srso: Correct the mitigation status when SMT is disabled
authorBorislav Petkov (AMD) <bp@alien8.de>
Tue, 15 Aug 2023 09:53:13 +0000 (11:53 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 18 Aug 2023 10:43:10 +0000 (12:43 +0200)
commit6405b72e8d17bd1875a56ae52d23ec3cd51b9d66
tree3b6a7dba267858b4d43ea542bbf79f8638c061bb
parent54097309620ef0dc2d7083783dc521c6a5fef957
x86/srso: Correct the mitigation status when SMT is disabled

Specify how is SRSO mitigated when SMT is disabled. Also, correct the
SMT check for that.

Fixes: e9fbc47b818b ("x86/srso: Disable the mitigation on unaffected configurations")
Suggested-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20230814200813.p5czl47zssuej7nv@treble
arch/x86/kernel/cpu/bugs.c