From: David Howells Date: Fri, 27 Feb 2009 22:03:03 +0000 (-0800) Subject: Fix recursive lock in free_uid()/free_user_ns() X-Git-Tag: v2.6.29-rc7~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5170836679185357dc1b7660bad13287b39e1e33;p=pandora-kernel.git Fix recursive lock in free_uid()/free_user_ns() free_uid() and free_user_ns() are corecursive when CONFIG_USER_SCHED=n, but free_user_ns() is called from free_uid() by way of uid_hash_remove(), which requires uidhash_lock to be held. free_user_ns() then calls free_uid() to complete the destruction. Fix this by deferring the destruction of the user_namespace. Signed-off-by: David Howells Acked-by: Serge Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed