]> git.hungrycats.org Git - linux/commit
Fix subtle bug in "finish_wait()", which can cause kernel stack
authorLinus Torvalds <torvalds@home.osdl.org>
Fri, 12 Dec 2003 06:20:08 +0000 (22:20 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 12 Dec 2003 06:20:08 +0000 (22:20 -0800)
commita2c72fae694277071dcbab33dfb7f88af5e54954
treeb355440cdca67decc3db5fffb042b34e29dcecbf
parent8cc86c08950c41dc88006534c3508d03cf0dfe39
Fix subtle bug in "finish_wait()", which can cause kernel stack
corruption on SMP because of another CPU still accessing a waitqueue
even after it was de-allocated.

Use a careful version of the list emptiness check to make sure we
don't de-allocate the stack frame before the waitqueue is all done.
include/linux/list.h
kernel/fork.c