]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[PATCH] i386: don't try kprobes for v8086 mode
authorZachary Amsden <zach@vmware.com>
Fri, 23 Jun 2006 09:04:30 +0000 (02:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:58 +0000 (07:42 -0700)
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>
arch/i386/kernel/kprobes.c

index 38806f427849f7f4dc8c76891229f952791064c3..395a9a6dff883f9b1d49ceb430c632e4a2a55d43 100644 (file)
@@ -607,7 +607,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
        struct die_args *args = (struct die_args *)data;
        int ret = NOTIFY_DONE;
 
-       if (args->regs && user_mode(args->regs))
+       if (args->regs && user_mode_vm(args->regs))
                return ret;
 
        switch (val) {