aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPratyush Anand <panand@redhat.com>2015-01-16 12:30:46 +0530
committerSteven Capper <steve.capper@linaro.org>2015-04-07 12:58:39 +0100
commit1edea7323e9595d2fc3658710802099592a79e05 (patch)
treeeff25b50c1f57cb0191c085d4941545ab10c30c3
parentf8df8777035d7c938b73a360e9f3d53efb9d949b (diff)
downloadlinux-1edea7323e9595d2fc3658710802099592a79e05.tar.gz
uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL
uprobe_pre_sstep_notifier and uprobe_post_sstep_notifier are called from debug exception handler, so blacklist them for kprobing. Signed-off-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Steve Capper <steve.capper@linaro.org>
-rw-r--r--kernel/events/uprobes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index cb346f26a22..6a1ed255e3e 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -37,6 +37,7 @@
#include <linux/percpu-rwsem.h>
#include <linux/task_work.h>
#include <linux/shmem_fs.h>
+#include <linux/kprobes.h>
#include <linux/uprobes.h>
@@ -1955,6 +1956,7 @@ int uprobe_pre_sstep_notifier(struct pt_regs *regs)
set_thread_flag(TIF_UPROBE);
return 1;
}
+NOKPROBE_SYMBOL(uprobe_pre_sstep_notifier);
/*
* uprobe_post_sstep_notifier gets called in interrupt context as part of notifier
@@ -1972,6 +1974,7 @@ int uprobe_post_sstep_notifier(struct pt_regs *regs)
set_thread_flag(TIF_UPROBE);
return 1;
}
+NOKPROBE_SYMBOL(uprobe_post_sstep_notifier);
static struct notifier_block uprobe_exception_nb = {
.notifier_call = arch_uprobe_exception_notify,