x86/srso: Disable the mitigation on unaffected configurations
authorBorislav Petkov (AMD) <bp@alien8.de>
Sun, 13 Aug 2023 10:39:34 +0000 (12:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 11:27:00 +0000 (13:27 +0200)
commitdae93ed961a8a315cefe64491e8573c5d9e3484e
tree5a7e6c3188811cc9949b02117d3cb1b3a855474e
parente4679a0342e05a962639a6ec3781f257f417f0ff
x86/srso: Disable the mitigation on unaffected configurations

commit e9fbc47b818b964ddff5df5b2d5c0f5f32f4a147 upstream.

Skip the srso cmd line parsing which is not needed on Zen1/2 with SMT
disabled and with the proper microcode applied (latter should be the
case anyway) as those are not affected.

Fixes: 5a15d8348881 ("x86/srso: Tie SBPB bit setting to microcode patch detection")
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230813104517.3346-1-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/bugs.c