Subject: Re: linux-next: Tree for August 19: CRED: BUG: bad unlock balance detected!

From: David Howells <[email-masked]>
Date: Tue, 19 Aug 2008 16:23:18 +0100

Alexander Beregalov <[email-masked]> wrote:

> [   25.742287] [ BUG: bad unlock balance detected! ]
> [   25.750284] -------------------------------------
> [   25.758404] rc/404 is trying to release lock (&p->cred_exec_mutex) at:
> [   25.766716] [<00000000006aff78>] mutex_unlock+0x10/0x20
> [   25.775078] but there are no more locks to release!

I forgot to lock cred_exec_mutex in compat_do_execve().  I've posted a patch
which should fix this:

Subject: [PATCH] CRED: Take cred_exec_mutex in compat_do_execve() and fix
	error handling in do_execve()

David