Commit 14b5caf9 authored by Linus Torvalds's avatar Linus Torvalds

x86: only single-step into signal handlers if the tracer

asked for it.
parent 808235d0
......@@ -413,7 +413,7 @@ static void setup_frame(int sig, struct k_sigaction *ka,
regs->xss = __USER_DS;
regs->xcs = __USER_CS;
if (regs->eflags & TF_MASK) {
if (current->ptrace & PT_PTRACED) {
if ((current->ptrace & (PT_PTRACED | PT_DTRACE)) == (PT_PTRACED | PT_DTRACE)) {
ptrace_notify(SIGTRAP);
} else {
regs->eflags &= ~TF_MASK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment