提交 64445416 编写于 作者: Z Zachary Amsden 提交者: Linus Torvalds

[PATCH] i386: don't try kprobes for v8086 mode

Never allow int3 traps from V8086 mode to enter the kprobes handler.
Signed-off-by: NZachary 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: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 19964fec
...@@ -607,7 +607,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self, ...@@ -607,7 +607,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
struct die_args *args = (struct die_args *)data; struct die_args *args = (struct die_args *)data;
int ret = NOTIFY_DONE; int ret = NOTIFY_DONE;
if (args->regs && user_mode(args->regs)) if (args->regs && user_mode_vm(args->regs))
return ret; return ret;
switch (val) { switch (val) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册