[ftrace/kprobes PATCH 0/3] tracing: probeevent: Fix module symbol probing

From: Masami Hiramatsu
Date: Tue Aug 28 2018 - 12:17:45 EST


Hi,

This series is for fixing some bugs in Steve's ftrace/kprobes branch.

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git

Which is based on my fetcharg improvement series.

https://lkml.org/lkml/2018/4/25/601

This includes following fixes.

- Fix copy_from_user() misusing which Dan was reported.
- Fix to reject incorrect probeevent on loaded kernel module.
- Fix to update symbol-based argument on module.
This also checks the symbol-based argument is correct or not when
target module is loaded. If it is not correct, the event is kept
unavailable.

Thank you,

---

Masami Hiramatsu (3):
tracing/uprobes: Fix to return -EFAULT if copy_from_user failed
tracing/kprobes: Check the probe on unloaded module correctly
tracing/kprobes: Allow kprobe-events to record module symbol


kernel/trace/trace_kprobe.c | 51 ++++++++++++++++++++++++++---------
kernel/trace/trace_probe.c | 62 +++++++++++++++++++++++++++++++++++++------
kernel/trace/trace_probe.h | 4 ++-
kernel/trace/trace_uprobe.c | 2 +
4 files changed, 95 insertions(+), 24 deletions(-)

--
Masami Hiramatsu (Linaro) <mhiramat@xxxxxxxxxx>