linux/arch/x86/include
Borislav Petkov (AMD) 52db77a13b x86/bugs: Make Safe-RET robust against interrupt injection
An attacker injecting interrupts while the Safe-RET mitigation executes
on machines affected by SRSO can neutralize the safe return sequence,
potentially leading to data leakage through speculative execution.

Fixup register state as if the Safe-RET sequence executed successfully
by "emulating" it, in a manner of speaking, and avoid executing a RET
instruction after returning from the interrupt.

Co-developed-by: David Kaplan <David.Kaplan@amd.com>
Signed-off-by: David Kaplan <David.Kaplan@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Wenkuan Wang <Wenkuan.Wang@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-08-07 08:07:31 +02:00
..
asm x86/bugs: Make Safe-RET robust against interrupt injection 2026-08-07 08:07:31 +02:00
uapi/asm KVM: x86: implement KVM_GUESTDBG_BLOCKIRQ 2021-08-20 16:06:37 -04:00