]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/bugs: Restructure spectre_v2_user mitigation
authorDavid Kaplan <david.kaplan@amd.com>
Fri, 18 Apr 2025 16:17:16 +0000 (11:17 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 29 Apr 2025 16:51:21 +0000 (18:51 +0200)
commitddfca9430a617780c8ad9691bf44660ae49e2a35
tree751db7fdfc4770470f284d50eba7b7eb5faae180
parente3b78a7ad5ea718ea1dbaeb02ba9a6aa2aee9324
x86/bugs: Restructure spectre_v2_user mitigation

Restructure spectre_v2_user to use select/update/apply functions to
create consistent vulnerability handling.

The IBPB/STIBP choices are first decided based on the spectre_v2_user
command line but can be modified by the spectre_v2 command line option
as well.

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-12-david.kaplan@amd.com
arch/x86/kernel/cpu/bugs.c