[PATCH] fix uidhash_lock <-> RCU deadlock
authorIngo Molnar <mingo@elte.hu>
Wed, 25 Jan 2006 14:23:07 +0000 (15:23 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 31 Jan 2006 19:30:18 +0000 (11:30 -0800)
commit4021cb279a532728c3208a16b9b09b0ca8016850
tree1103bc655772ea388eb1fb2b259797bc9c703926
parentd5bee775137c56ed993f1b3c9d66c268b3525d7d
[PATCH] fix uidhash_lock <-> RCU deadlock

RCU task-struct freeing can call free_uid(), which is taking
uidhash_lock - while other users of uidhash_lock are softirq-unsafe.

The fix is to always take the uidhash_spinlock in a softirq-safe manner.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Paul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/user.c