]> www.infradead.org Git - linux.git/commit
x86/bugs: Restructure retbleed mitigation
authorDavid Kaplan <david.kaplan@amd.com>
Fri, 18 Apr 2025 16:17:15 +0000 (11:17 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 29 Apr 2025 08:22:08 +0000 (10:22 +0200)
commite3b78a7ad5ea718ea1dbaeb02ba9a6aa2aee9324
tree5a4b401f20e0e39a53eec28e940bafb3a8b3d58e
parent83d4b19331f3a5d5829d338a0a64b69c9c28b36e
x86/bugs: Restructure retbleed mitigation

Restructure retbleed mitigation to use select/update/apply functions to create
consistent vulnerability handling.  The retbleed_update_mitigation()
simplifies the dependency between spectre_v2 and retbleed.

The command line options now directly select a preferred mitigation
which simplifies the logic.

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