summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorThomas Gleixner2009-10-04 09:34:17 +0200
committerIngo Molnar2009-10-05 21:08:14 +0200
commiteaaea8036d0261d87d7072c5bc88c7ea730c18ac (patch)
tree07bbd53bdc9a47d86ca667f3171c3b7ebf1ac07c /kernel/fork.c
parentpanic: Fix panic message visibility by calling bust_spinlocks(0) before dying (diff)
downloadkernel-qcow2-linux-eaaea8036d0261d87d7072c5bc88c7ea730c18ac.tar.gz
kernel-qcow2-linux-eaaea8036d0261d87d7072c5bc88c7ea730c18ac.tar.xz
kernel-qcow2-linux-eaaea8036d0261d87d7072c5bc88c7ea730c18ac.zip
futex: Fix locking imbalance
Rich reported a lock imbalance in the futex code: http://bugzilla.kernel.org/show_bug.cgi?id=14288 It's caused by the displacement of the retry_private label in futex_wake_op(). The code unlocks the hash bucket locks in the error handling path and retries without locking them again which makes the next unlock fail. Move retry_private so we lock the hash bucket locks when we retry. Reported-by: Rich Ercolany <rercola@acm.jhu.edu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Darren Hart <dvhltc@us.ibm.com> Cc: stable-2.6.31 <stable@kernel.org> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions