Commit fd036f6a authored by Linus Torvalds's avatar Linus Torvalds

x86 ptrace: remove long stale (and bitrotted) test for

PT_DTRACE without PT_PTRACED.

Long ago, the "D" in PT_DTRACE meant "Delayed", and it was used
as a flag to mark that we had ptrace'd the process but no longer
did so. That hasn't been true in a while now, and the flag should
probably be renamed, but in the meantime the test for PT_PTRACED
being cleared had been corrupted into something totally nonsensical.

Pointed out by Andi Kleen.
parent aefdf116
......@@ -725,8 +725,6 @@ fastcall void do_debug(struct pt_regs * regs, long error_code)
if (tsk->ptrace & PT_DTRACE) {
regs->eflags &= ~TF_MASK;
tsk->ptrace &= ~PT_DTRACE;
if (!tsk->ptrace & PT_DTRACE)
goto clear_TF;
}
}
......
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