diff options
author | Borislav Petkov (AMD) <bp@alien8.de> | 2023-07-06 15:04:35 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-07-27 11:07:19 +0200 |
commit | 233d6f68b98d480a7c42ebe78c38f79d44741ca9 (patch) | |
tree | be6190a39ae2471a328679cb015e13dfbbf194a4 /arch/x86/include/asm/nospec-branch.h | |
parent | 1b5277c0ea0b247393a9c426769fde18cff5e2f6 (diff) | |
download | linux-stable-233d6f68b98d480a7c42ebe78c38f79d44741ca9.tar.gz linux-stable-233d6f68b98d480a7c42ebe78c38f79d44741ca9.tar.bz2 linux-stable-233d6f68b98d480a7c42ebe78c38f79d44741ca9.zip |
x86/srso: Add IBPB
Add the option to mitigate using IBPB on a kernel entry. Pull in the
Retbleed alternative so that the IBPB call from there can be used. Also,
if Retbleed mitigation is done using IBPB, the same mitigation can and
must be used here.
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Diffstat (limited to 'arch/x86/include/asm/nospec-branch.h')
-rw-r--r-- | arch/x86/include/asm/nospec-branch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/nospec-branch.h b/arch/x86/include/asm/nospec-branch.h index 8346c33760c1..3faf044569a5 100644 --- a/arch/x86/include/asm/nospec-branch.h +++ b/arch/x86/include/asm/nospec-branch.h @@ -290,7 +290,7 @@ */ .macro UNTRAIN_RET #if defined(CONFIG_CPU_UNRET_ENTRY) || defined(CONFIG_CPU_IBPB_ENTRY) || \ - defined(CONFIG_CALL_DEPTH_TRACKING) + defined(CONFIG_CALL_DEPTH_TRACKING) || defined(CONFIG_CPU_SRSO) VALIDATE_UNRET_END ALTERNATIVE_3 "", \ CALL_ZEN_UNTRAIN_RET, X86_FEATURE_UNRET, \ |