Commit bb517c45 authored by Marcin Nowakowski's avatar Marcin Nowakowski Committed by Greg Kroah-Hartman

MIPS: fix uretprobe implementation

commit db06068a upstream.

arch_uretprobe_hijack_return_addr should replace the return address for
a call with a trampoline address.
Signed-off-by: default avatarMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Fixes: 40e084a5 ('MIPS: Add uprobes support.')
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14298/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 824865e1
...@@ -257,7 +257,7 @@ unsigned long arch_uretprobe_hijack_return_addr( ...@@ -257,7 +257,7 @@ unsigned long arch_uretprobe_hijack_return_addr(
ra = regs->regs[31]; ra = regs->regs[31];
/* Replace the return address with the trampoline address */ /* Replace the return address with the trampoline address */
regs->regs[31] = ra; regs->regs[31] = trampoline_vaddr;
return ra; return ra;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment