diff options
author | Zachary Amsden <zach@vmware.com> | 2006-06-23 05:04:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:42:58 -0400 |
commit | 6444541671bd821b950dbaafee70d65188198aa6 (patch) | |
tree | bec166679ad3659407bafa0b088c5932461e8928 /arch | |
parent | 19964fecf25c17f865dec07ae242b1a40ea93f16 (diff) |
[PATCH] i386: don't try kprobes for v8086 mode
Never allow int3 traps from V8086 mode to enter the kprobes handler.
Signed-off-by: Zachary Amsden <zach@vmware.com>
Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/kprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/kprobes.c b/arch/i386/kernel/kprobes.c index 38806f427849..395a9a6dff88 100644 --- a/arch/i386/kernel/kprobes.c +++ b/arch/i386/kernel/kprobes.c | |||
@@ -607,7 +607,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self, | |||
607 | struct die_args *args = (struct die_args *)data; | 607 | struct die_args *args = (struct die_args *)data; |
608 | int ret = NOTIFY_DONE; | 608 | int ret = NOTIFY_DONE; |
609 | 609 | ||
610 | if (args->regs && user_mode(args->regs)) | 610 | if (args->regs && user_mode_vm(args->regs)) |
611 | return ret; | 611 | return ret; |
612 | 612 | ||
613 | switch (val) { | 613 | switch (val) { |