From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Alexander Beregalov" <a.beregalov@gmail.com>
Cc: "David Howells" <dhowells@redhat.com>,
jmorris@namei.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] CRED: Further fix execve error handling
Date: Wed, 20 Aug 2008 17:33:20 +0100 [thread overview]
Message-ID: <20080820173320.64ea3892@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <a4423d670808200721i3e9add4cn216da7991f0616f3@mail.gmail.com>
On Wed, 20 Aug 2008 18:21:59 +0400
"Alexander Beregalov" <a.beregalov@gmail.com> wrote:
> 2008/8/20 David Howells <dhowells@redhat.com>:
> > Further fix [compat_]do_execve() error handling. free_bprm() will release the
> > cred_exec_mutex, but only if bprm->cred is not NULL.
> >
> > Signed-off-by: David Howells <dhowells@redhat.com>
>
> David, I applied this patch and got the following.
> Is it a different problem?
> I think it is. If yes I will create another topic.
>
> [ 91.266507] [ INFO: possible recursive locking detected ]
> [ 91.266862] 2.6.27-rc3-next-20080820-dirty #3
Looks like a false trip of the lock debugging code. I've seen the same
and having dumped the values in tty_do_resize plus the entry/exit paths
it seems to be bogus.
> [ 91.267170] ---------------------------------------------
> [ 91.267522] sshd/1455 is trying to acquire lock:
> [ 91.267840] (&tty->termios_mutex){--..}, at: [<00000000005b8ca0>]
> tty_do_resize+0x44/0x128
> [ 91.268405]
> [ 91.268411] but task is already holding lock:
> [ 91.268885] (&tty->termios_mutex){--..}, at: [<00000000005b8c74>]
> tty_do_resize+0x18/0x128
Note that the lock is only acquired in one place in this code and that
the second lock is only take if the two locks differ. Also the second
lock take is not &tty->termios_mutex at all but real_tty.
So I'd say either broken compiler or broken lock debug tools but hey I
could be wrong ;)
Alan
next prev parent reply other threads:[~2008-08-20 16:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 13:56 David Howells
2008-08-20 14:21 ` Alexander Beregalov
2008-08-20 16:33 ` Alan Cox [this message]
2008-08-20 15:07 ` David Howells
2008-08-20 22:37 ` James Morris
2008-08-21 12:43 ` David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080820173320.64ea3892@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=a.beregalov@gmail.com \
--cc=dhowells@redhat.com \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®