]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/bugs: Add attack vector controls for retbleed
authorDavid Kaplan <david.kaplan@amd.com>
Mon, 7 Jul 2025 18:33:07 +0000 (13:33 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 11 Jul 2025 15:56:41 +0000 (17:56 +0200)
commit9687eb2399379ae4e5b5cc1bccdf893c753dcffb
tree4ee8ff4274517d32ae23ef45afa5e58a2072f4de
parent19a5f3ea4394bf813a03d1ff0efe59a7f74cc12c
x86/bugs: Add attack vector controls for retbleed

Use attack vector controls to determine if retbleed mitigation is
required.

Disable SMT if cross-thread protection is desired and STIBP is not
available.

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