summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2025-08-20 14:28:34 +0200
committerPeter Zijlstra <peterz@infradead.org>2025-08-21 20:09:22 +0200
commitf349ec80865dfeaf8a33feae6b4a500db039c69c (patch)
treea106ea4718a82888f61572181ca4d74a54769558 /scripts/gdb/linux/utils.py
parent7c2bfc183b05103287cc32ad68184f7d4312c06d (diff)
uprobes/x86: Fix uprobe syscall vs shadow stack
The uprobe syscall stores and strips the trampoline stack frame from the user context, to make it appear similar to an exception at the original instruction. It then restores the trampoline stack when it can exit using sysexit. Make sure to match the regular stack manipulation with shadow stack operations such that regular and shadow stack don't get out of sync and causes trouble. This enables using the optimization when shadow stack is in use. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20250821123657.055790090@infradead.org
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions