Skip to content

kprobes blacklist enhancement

Masami Hiramatsu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kprobes: Support blacklist functions in moduleDocumentation/kprobes.txt include/linux/module.h kernel/kprobes.c +1 more+72 -105 replies
2/3kprobes: Use NOKPROBE_SYMBOL() in sample modulessamples/kprobes/jprobe_example.c samples/kprobes/kprobe_example.c samples/kprobes/kretprobe_example.c+6 -00 replies
3/3kprobes/x86: Use kprobe_blacklist for .kprobes.text and .entry.textarch/x86/kernel/kprobes/core.c include/linux/kprobes.h kernel/kprobes.c+48 -280 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRusty Russell
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH tip/master 0/3] kprobes blacklist enhancement

Hi,

Here is a series of patches of kprobe blacklist enhancement which I sent 1 yrs ago (with some performance improvements).

I've decided to split these patches from performance improvement patches because it is easy to review/merge.

These 3 patches add NOKPROBE_SYMBOL() support for modules and show all the blacklisted symbols including arch-dependent areas (which is previously aren't shown in debugfs/kprobes/blacklist).

Thank you,

---

Masami Hiramatsu (3):
kprobes: Support blacklist functions in module
kprobes: Use NOKPROBE_SYMBOL() in sample modules kprobes/x86: Use kprobe_blacklist for .kprobes.text and .entry.text

 Documentation/kprobes.txt           |    8 ++
 arch/x86/kernel/kprobes/core.c      |   11 +--
 include/linux/kprobes.h             |    1 
 include/linux/module.h              |    4 +
 kernel/kprobes.c                    |  122 ++++++++++++++++++++++++++++-------
 kernel/module.c                     |    6 ++
 samples/kprobes/jprobe_example.c    |    1 
 samples/kprobes/kprobe_example.c    |    3 +
 samples/kprobes/kretprobe_example.c |    2 +
 9 files changed, 123 insertions(+), 35 deletions(-)
Signature · 5 lines
Masami HIRAMATSU
Linux Technology Research Center, System Productivity Research Dept.
Center for Technology Innovation - Systems Engineering 
Hitachi, Ltd., Research & Development Group
E-mail: [email protected]