Commit db51569e authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[PATCH] ptrace_notify() locking

Spotted by Dawson Engler.

recalc_signpending() needs tsk->sighand->siglock.
parent e32d96dc
......@@ -336,5 +336,8 @@ void ptrace_notify(int exit_code)
/*
* Signals sent while we were stopped might set TIF_SIGPENDING.
*/
spin_lock_irq(&current->sighand->siglock);
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
}
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