Skip to content

tracing: probeevent: Fix module symbol probing

Masami Hiramatsu lkml 1 version In review

Get series with b4
b4 am 153547303754.26502.5265242979168613920.stgit@devbox

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing/uprobes: Fix to return -EFAULT if copy_from_user failedkernel/trace/trace_uprobe.c+1 -10 replies
2/3tracing/kprobes: Check the probe on unloaded module correctlykernel/trace/trace_kprobe.c+26 -130 replies
3/3tracing/kprobes: Allow kprobe-events to record module symbolkernel/trace/trace_kprobe.c kernel/trace/trace_probe.c kernel/trace/trace_probe.h+68 -103 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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) <[email protected]>