Commit 48597760 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

ptrace: remove PT_DTRACE from arch/m32r

m32r: PTRACE_SINGLESTEP sets PT_DTRACE, it is never used except cleared
after do_execve().
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarHirokazu Takata <takata@linux-m32r.org>
Acked-by: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9d35f846
...@@ -302,11 +302,6 @@ asmlinkage int sys_execve(char __user *ufilename, char __user * __user *uargv, ...@@ -302,11 +302,6 @@ asmlinkage int sys_execve(char __user *ufilename, char __user * __user *uargv,
goto out; goto out;
error = do_execve(filename, uargv, uenvp, &regs); error = do_execve(filename, uargv, uenvp, &regs);
if (error == 0) {
task_lock(current);
current->ptrace &= ~PT_DTRACE;
task_unlock(current);
}
putname(filename); putname(filename);
out: out:
return error; return error;
......
...@@ -676,10 +676,6 @@ arch_ptrace(struct task_struct *child, long request, long addr, long data) ...@@ -676,10 +676,6 @@ arch_ptrace(struct task_struct *child, long request, long addr, long data)
if (!valid_signal(data)) if (!valid_signal(data))
break; break;
clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
if ((child->ptrace & PT_DTRACE) == 0) {
/* Spurious delayed TF traps may occur */
child->ptrace |= PT_DTRACE;
}
/* Compute next pc. */ /* Compute next pc. */
pc = get_stack_long(child, PT_BPC); pc = get_stack_long(child, PT_BPC);
......
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