[PATCH 6/6] uprobes/x86: Add SLS mitigation to the trampolines
From: Peter Zijlstra
Date: Thu Aug 21 2025 - 08:46:23 EST
It is trivial; no reason not to.
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
---
arch/x86/kernel/uprobes.c | 2 ++
1 file changed, 2 insertions(+)
--- a/arch/x86/kernel/uprobes.c
+++ b/arch/x86/kernel/uprobes.c
@@ -336,6 +336,7 @@ asm (
* call ret.
*/
"ret\n"
+ "int3\n"
".global uretprobe_trampoline_end\n"
"uretprobe_trampoline_end:\n"
".popsection\n"
@@ -891,6 +892,7 @@ asm (
"pop %r11\n"
"pop %rcx\n"
"ret\n"
+ "int3\n"
".balign " __stringify(PAGE_SIZE) "\n"
".popsection\n"
);