]> git.hungrycats.org Git - linux/commit
Fix subtle fork() race that Ingo noticed.
authorLinus Torvalds <torvalds@home.osdl.org>
Thu, 8 Jan 2004 03:46:52 +0000 (19:46 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 8 Jan 2004 03:46:52 +0000 (19:46 -0800)
commitf7a1132cffbdf99ef1bd270e9b77f928697780a3
tree740431cfcea4dce89c71ec7a57d76b6b05069ab0
parentf6fd6a01cb2eabd8110c15307dcb9fe5fce019e4
Fix subtle fork() race that Ingo noticed.

We must not mark the process TASK_STOPPED early, because
that might allow a signal to wake it up before we actually
got to the "wake_up_forked_process()" state. Total confusion
would happen.

Make wake_up_forked_process() verify the new world order.
kernel/fork.c
kernel/sched.c