Skip to content

Commit

Permalink
fix uprobe exit read x0
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeFlowerX committed Feb 7, 2024
1 parent a417cf0 commit 20cb494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 20cb494

Please sign in to comment.