diff options
| author | Andrea Righi <[email protected]> | 2019-02-12 16:15:34 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2019-02-13 07:16:41 +0000 |
| commit | 02106f883cd745523f7766d90a739f983f19e650 (patch) | |
| tree | fb78edd3ae6c8a3ab49a81ed7f08923b02be8bf6 | |
| parent | kprobes: Prohibit probing on lockdep functions (diff) | |
| download | kernel-02106f883cd745523f7766d90a739f983f19e650.tar.gz kernel-02106f883cd745523f7766d90a739f983f19e650.zip | |
kprobes: Prohibit probing on bsearch()
Since kprobe breakpoing handler is using bsearch(), probing on this
routine can cause recursive breakpoint problem.
int3
->do_int3()
->ftrace_int3_handler()
->ftrace_location()
->ftrace_location_range()
->bsearch() -> int3
Prohibit probing on bsearch().
Signed-off-by: Andrea Righi <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/154998813406.31052.8791425358974650922.stgit@devbox
Signed-off-by: Ingo Molnar <[email protected]>
| -rw-r--r-- | lib/bsearch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bsearch.c b/lib/bsearch.c index 18b445b010c3..82512fe7b33c 100644 --- a/lib/bsearch.c +++ b/lib/bsearch.c @@ -11,6 +11,7 @@ #include <linux/export.h> #include <linux/bsearch.h> +#include <linux/kprobes.h> /* * bsearch - binary search an array of elements @@ -53,3 +54,4 @@ void *bsearch(const void *key, const void *base, size_t num, size_t size, return NULL; } EXPORT_SYMBOL(bsearch); +NOKPROBE_SYMBOL(bsearch); |
