Skip to content

Commit

Permalink
parisc: regs_return_value() should return gpr28
Browse files Browse the repository at this point in the history
While working on kretprobes for PA-RISC I was wondering while the
kprobes sanity test always fails on kretprobes. This is caused by
returning gpr20 instead of gpr28.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # 4.14+
  • Loading branch information
svenschnelle authored and hdeller committed Apr 6, 2019
1 parent c2f8d7c commit 45efd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ unsigned long profile_pc(struct pt_regs *);

static inline unsigned long regs_return_value(struct pt_regs *regs)
{
return regs->gr[20];
return regs->gr[28];
}

static inline void instruction_pointer_set(struct pt_regs *regs,
Expand Down

0 comments on commit 45efd87

Please sign in to comment.