lkml.org 
[lkml]   [2013]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject[PATCH -tip v2 0/3] kprobes: introduce nokprobe and updating blacklist
From
Date
According to Ingo's suggestion, I've introduced 'nokprobe'
new annotation as like as 'notrace' annotation, since
__kprobes annotation is too confusing to mark non-kprobe
able functions.
I took 'nokprobe' instead of 'noprobe' since we already
have irq_set_noprobe() etc.

Also, I've found that putting probes on some functions
could lock or reboot the kernel. These two patches fix
those bugs by prohibiting probing such functions by
adding those to blacklist(kprobes.text).

In both cases, those functions are related to int3 handling
execution path. One is related to irqoff-tracer and the other
is related to notifier debug option.

Thank you,

Changes in the latest version:
- introduce nokprobe annotation
- change __kprobes to nokprobe in bugfixes
- remove unneeded linux/kprobes.h includings.

---

Masami Hiramatsu (3):
kprobes: Introduce nokprobe annotation for non-probe-able functions
[BUGFIX] kprobes/x86: Prohibit probing on debug_stack_*
[BUGFIX] kprobes: Prohibit probing on func_ptr_is_kernel_text


arch/x86/kernel/cpu/common.c | 6 +++---
include/linux/compiler.h | 6 ++++--
kernel/extable.c | 2 +-
3 files changed, 8 insertions(+), 6 deletions(-)

--
Masami HIRAMATSU
IT Management Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com



\
 
 \ /
  Last update: 2013-11-01 12:41    [W:0.115 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site