[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250821123657.277506098@infradead.org>
Date: Thu, 21 Aug 2025 14:28:28 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: jolsa@...nel.org,
oleg@...hat.com,
andrii@...nel.org,
mhiramat@...nel.org
Cc: linux-kernel@...r.kernel.org,
peterz@...radead.org,
alx@...nel.org,
eyal.birger@...il.com,
kees@...nel.org,
bpf@...r.kernel.org,
linux-trace-kernel@...r.kernel.org,
x86@...nel.org,
songliubraving@...com,
yhs@...com,
john.fastabend@...il.com,
haoluo@...gle.com,
rostedt@...dmis.org,
alan.maguire@...cle.com,
David.Laight@...LAB.COM,
thomas@...ch.de,
mingo@...nel.org,
rick.p.edgecombe@...el.com
Subject: [PATCH 6/6] uprobes/x86: Add SLS mitigation to the trampolines
It is trivial; no reason not to.
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
---
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"
);
Powered by blists - more mailing lists