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

From: David Howells
Date: Tue Aug 19 2008 - 11:23:45 EST



Alexander Beregalov <a.beregalov@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/