stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Luis Henriques <henrix@camandro.org>
Cc: Greg KH <greg@kroah.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Vasiliy Kulikov <segoon@openwall.com>,
	Miles Lane <miles.lane@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@redhat.com>,
	Alexey Dobriyan <adobriyan@gmail.com>,
	stable@vger.kernel.org
Subject: Re: Linus GIT - INFO: possible circular locking dependency detected
Date: Wed, 09 Nov 2011 20:52:12 +0100	[thread overview]
Message-ID: <1320868332.19727.19.camel@twins> (raw)
In-Reply-To: <20111109191155.GB2490@hades>

On Wed, 2011-11-09 at 19:11 +0000, Luis Henriques wrote:
> [   12.948038] -> #0 (&sig->cred_guard_mutex){+.+.+.}:
> [   12.948038]        [<ffffffff8108ff9f>] __lock_acquire+0x17bf/0x2020
> [   12.948038]        [<ffffffff81092e4f>] lock_acquire+0xaf/0x1f0
> [   12.948038]        [<ffffffff8135b2a5>] __mutex_lock_common+0x65/0x4d0
> [   12.948038]        [<ffffffff8135b76b>] mutex_lock_killable_nested+0x1b/0x20
> [   12.948038]        [<ffffffff811b301e>] lock_trace+0x2e/0x80
> [   12.948038]        [<ffffffff811b73ab>] proc_readfd_common+0x5b/0x4b0
> [   12.948038]        [<ffffffff811b7835>] proc_readfd+0x15/0x20
> [   12.948038]        [<ffffffff8115f8f0>] vfs_readdir+0xb0/0xd0
> [   12.948038]        [<ffffffff8115fa09>] sys_getdents+0x89/0x100
> [   12.948038]        [<ffffffff8135e8c2>] system_call_fastpath+0x16/0x1b
> 
> sb->s_type->i_mutex_key is shown as being acquired in the execve path,
> which seems to be wrong -- it was acquired in the vfs_readdir (on the 2nd
> trace).
> 
> This means that the initial analysis from Vasiliy is incorrect, as he
> assumed the execve path.  Or Am I interpreting this log incorrectly?
> (Probably I am...). 

->#0 shows where sig->cred_guard_mutex was taken, as it was the first
lock there is no nesting yet and therefore the ->i_mutex_key#6 thing
should not be associated with this stacktrace.

->#1 shows where ->i_mutex_key#6 was taken while holding
->cred_guard_mutex (but doesn't explicitly show where that was taken).

Mostly ->#0 information is useless in lockdep reports and can be safely
ignored.

  reply	other threads:[~2011-11-09 19:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHFgRy8S0xLfhZxTUOEH5A0PL_Fb79-0-gmbQ=9h2D-xMqt1hA@mail.gmail.com>
     [not found] ` <20111103204930.GA3599@hades>
     [not found]   ` <20111105093146.GA14338@albatros>
2011-11-08 23:57     ` Linus GIT - INFO: possible circular locking dependency detected Andrew Morton
2011-11-09  0:17       ` Greg KH
2011-11-09  0:40         ` Greg KH
2011-11-09 19:11           ` Luis Henriques
2011-11-09 19:52             ` Peter Zijlstra [this message]
2011-11-09 20:05               ` Luis Henriques
2011-11-14 17:27                 ` Paul E. McKenney

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=1320868332.19727.19.camel@twins \
    --to=peterz@infradead.org \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=greg@kroah.com \
    --cc=henrix@camandro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miles.lane@gmail.com \
    --cc=mingo@redhat.com \
    --cc=segoon@openwall.com \
    --cc=stable@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;
as well as URLs for NNTP newsgroup(s).