]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/bugs: Restructure SRSO mitigation
authorDavid Kaplan <david.kaplan@amd.com>
Fri, 18 Apr 2025 16:17:21 +0000 (11:17 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 30 Apr 2025 08:25:45 +0000 (10:25 +0200)
commit1f4bb068b498a544ae913764a797449463ef620c
treefefec2181c5d29e109080eb59c725c5b876ef7a5
parentd43ba2dc8eeeca21811fd9b30e3bd15bb35caaec
x86/bugs: Restructure SRSO mitigation

Restructure SRSO to use select/update/apply functions to create
consistent vulnerability handling.  Like with retbleed, the command line
options directly select mitigations which can later be modified.

While at it, remove a comment which doesn't apply anymore due to the
changed mitigation detection flow.

Signed-off-by: David Kaplan <david.kaplan@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/20250418161721.1855190-17-david.kaplan@amd.com
arch/x86/kernel/cpu/bugs.c