]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/bugs: Simplify SSB cmdline parsing
authorDavid Kaplan <david.kaplan@amd.com>
Mon, 15 Sep 2025 13:47:02 +0000 (08:47 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 16:04:20 +0000 (18:04 +0200)
commit02ac6cc8c5a129013695c3eee48b65fb5ba669c0
tree933cb33352d2fc666bfb99b909881c2179d9f63f
parent9a9f8147ae7fd558d6f0d40b560ffbdd408768df
x86/bugs: Simplify SSB cmdline parsing

Simplify the SSB command line parsing by selecting a mitigation directly, as
is done in most of the simpler vulnerabilities.  Use early_param() instead of
cmdline_find_option() for consistency with the other mitigation selections.

Signed-off-by: David Kaplan <david.kaplan@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Link: https://lore.kernel.org/r/20250819192200.2003074-4-david.kaplan@amd.com
arch/x86/include/asm/nospec-branch.h
arch/x86/kernel/cpu/bugs.c