From 20cb4949371ba39440c041d07a72928a8e7e94db Mon Sep 17 00:00:00 2001 From: see Date: Wed, 7 Feb 2024 11:27:06 +0800 Subject: [PATCH] fix uprobe exit read x0 --- src/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stack.c b/src/stack.c index 4bab8cc..dc7c167 100644 --- a/src/stack.c +++ b/src/stack.c @@ -94,7 +94,7 @@ static __always_inline u32 probe_stack_warp(struct pt_regs* ctx, u32 point_key) if (unlikely(op_ctx == NULL)) return 0; __builtin_memset((void *)op_ctx, 0, sizeof(op_ctx)); - op_ctx->reg_0 = READ_KERN(ctx->regs[0]); + op_ctx->reg_0 = saved_regs.regs[0]; op_ctx->save_index = 4; op_ctx->op_key_index = 0;