Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1453621

[PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL

From Pratyush Anand <panand@redhat.com>
Newsgroups linux.kernel
Subject [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL
Date 2016-08-02 09:00 +0200
Message-ID <s1BQd-TD-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 kernel/events/uprobes.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index b7a525ab2083..206e594cb65e 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>
 
@@ -1997,6 +1998,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
@@ -2014,6 +2016,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,
-- 
2.5.5

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL Pratyush Anand <panand@redhat.com> - 2016-08-02 09:00 +0200
  Re: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to  NOKPROBE_SYMBOL Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-02 18:00 +0200
    Re: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to  NOKPROBE_SYMBOL Pratyush Anand <panand@redhat.com> - 2016-08-03 06:30 +0200
      Re: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL Pratyush Anand <panand@redhat.com> - 2016-08-03 12:50 +0200
        Re: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to  NOKPROBE_SYMBOL Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-03 16:50 +0200
  Re: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to  NOKPROBE_SYMBOL Oleg Nesterov <oleg@redhat.com> - 2016-08-02 22:50 +0200
    Re: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to  NOKPROBE_SYMBOL Pratyush Anand <panand@redhat.com> - 2016-08-03 06:20 +0200

csiph-web