aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/probes
diff options
context:
space:
mode:
authorGravatar Masami Hiramatsu <mhiramat@kernel.org> 2021-09-14 23:40:45 +0900
committerGravatar Steven Rostedt (VMware) <rostedt@goodmis.org> 2021-09-30 21:24:06 -0400
commit96fed8ac2bb64ab45497fdd8e3d390165b7a9be8 (patch)
tree41528c6cc273ae7e6a2e59301dc5e840cf484df9 /arch/riscv/kernel/probes
parentkprobes: treewide: Replace arch_deref_entry_point() with dereference_symbol_d... (diff)
downloadlinux-96fed8ac2bb64ab45497fdd8e3d390165b7a9be8.tar.gz
linux-96fed8ac2bb64ab45497fdd8e3d390165b7a9be8.tar.bz2
linux-96fed8ac2bb64ab45497fdd8e3d390165b7a9be8.zip
kprobes: treewide: Remove trampoline_address from kretprobe_trampoline_handler()
The __kretprobe_trampoline_handler() callback, called from low level arch kprobes methods, has the 'trampoline_address' parameter, which is entirely superfluous as it basically just replicates: dereference_kernel_function_descriptor(kretprobe_trampoline) In fact we had bugs in arch code where it wasn't replicated correctly. So remove this superfluous parameter and use kretprobe_trampoline_addr() instead. Link: https://lkml.kernel.org/r/163163044546.489837.13505751885476015002.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Tested-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/riscv/kernel/probes')
-rw-r--r--arch/riscv/kernel/probes/kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/probes/kprobes.c b/arch/riscv/kernel/probes/kprobes.c
index cab6f874358e..62d477cf11da 100644
--- a/arch/riscv/kernel/probes/kprobes.c
+++ b/arch/riscv/kernel/probes/kprobes.c
@@ -347,7 +347,7 @@ int __init arch_populate_kprobe_blacklist(void)
void __kprobes __used *trampoline_probe_handler(struct pt_regs *regs)
{
- return (void *)kretprobe_trampoline_handler(regs, &kretprobe_trampoline, NULL);
+ return (void *)kretprobe_trampoline_handler(regs, NULL);
}
void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri,