From: Zachary Amsden Never allow int3 traps from V8086 mode to enter the kprobes handler. Signed-off-by: Zachary Amsden Cc: Prasanna S Panchamukhi Cc: Ananth N Mavinakayanahalli Cc: Anil S Keshavamurthy Cc: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andrew Morton --- arch/i386/kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/i386/kernel/kprobes.c~i386-dont-try-kprobes-for-v8086-mode arch/i386/kernel/kprobes.c --- devel/arch/i386/kernel/kprobes.c~i386-dont-try-kprobes-for-v8086-mode 2006-06-09 15:22:03.000000000 -0700 +++ devel-akpm/arch/i386/kernel/kprobes.c 2006-06-09 15:22:03.000000000 -0700 @@ -607,7 +607,7 @@ int __kprobes kprobe_exceptions_notify(s 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) { _