aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel
diff options
context:
space:
mode:
authorbibo,mao <bibo.mao@intel.com>2006-03-26 04:38:21 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-26 11:57:04 -0500
commit2326c77017c79fd6d55c69d8a49a57a252921bcd (patch)
tree5a2cafc7452953a4d5c8a8e8eaa0ae34fe306f74 /arch/ia64/kernel
parentc6fd91f0bdcd294a0ae0ba2b2a7f7456ef4b7144 (diff)
[PATCH] kprobe handler: discard user space trap
Currently kprobe handler traps only happen in kernel space, so function kprobe_exceptions_notify should skip traps which happen in user space. This patch modifies this, and it is based on 2.6.16-rc4. Signed-off-by: bibo mao <bibo.mao@intel.com> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@intel.com> Cc: <hiramatu@sdl.hitachi.co.jp> Signed-off-by: Prasanna S Panchamukhi <prasanna@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r--arch/ia64/kernel/kprobes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ia64/kernel/kprobes.c b/arch/ia64/kernel/kprobes.c
index 50ae8c7d453d..45b8479c9864 100644
--- a/arch/ia64/kernel/kprobes.c
+++ b/arch/ia64/kernel/kprobes.c
@@ -740,6 +740,9 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
740 struct die_args *args = (struct die_args *)data; 740 struct die_args *args = (struct die_args *)data;
741 int ret = NOTIFY_DONE; 741 int ret = NOTIFY_DONE;
742 742
743 if (args->regs && user_mode(args->regs))
744 return ret;
745
743 switch(val) { 746 switch(val) {
744 case DIE_BREAK: 747 case DIE_BREAK:
745 /* err is break number from ia64_bad_break() */ 748 /* err is break number from ia64_bad_break() */