提交 ee386de7 编写于 作者: P Paul Mundt

sh: kprobes: Default to NOTIFY_DONE for unhandled debug traps.

Presently this is doing a force_sig() SIGTRAP, which is already taken
care of in the generic code if no one asserts NOTIFY_STOP. Switch the
default return to NOTIFY_DONE in the case of unhandled traps, so that
the same trap may pass through to other users on the same die chain.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 174b5c99
......@@ -474,7 +474,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
ret = NOTIFY_STOP;
} else {
/* Not a kprobe trap */
force_sig(SIGTRAP, current);
ret = NOTIFY_DONE;
}
} else {
p = get_kprobe(addr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册