Merge to Fedora kernel-2.6.18-1.2255_FC5-vs2.0.2.2-rc9 patched with stable patch...
[linux-2.6.git] / arch / sparc64 / kernel / process.c
index 3b453da..7d75cd4 100644 (file)
@@ -808,6 +808,9 @@ asmlinkage int sparc_execve(struct pt_regs *regs)
                current_thread_info()->xfsr[0] = 0;
                current_thread_info()->fpsaved[0] = 0;
                regs->tstate &= ~TSTATE_PEF;
+               task_lock(current);
+               current->ptrace &= ~PT_DTRACE;
+               task_unlock(current);
        }
 out:
        return error;