All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <srostedt@redhat.com>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
	linux-kernel@vger.kernel.org, rusty@rustcorp.com.au,
	mingo@elte.hu
Subject: Re: [bug] lockdep warning: module_mutex vs. ftrace_lock
Date: Mon, 13 Apr 2009 10:08:27 -0400	[thread overview]
Message-ID: <1239631707.21121.5.camel@localhost.localdomain> (raw)
In-Reply-To: <20090407183014.GA7531@nowhere>

Sorry for the late reply, I just got back from San Fran, and I do not
check my Red Hat email while I'm traveling.


On Tue, 2009-04-07 at 20:30 +0200, Frederic Weisbecker wrote:
> On Tue, Apr 07, 2009 at 06:34:56PM +0200, Miklos Szeredi wrote:
> > =======================================================
> > [ INFO: possible circular locking dependency detected ]
> > 2.6.29-09854-gd508afb-dirty #6
> > -------------------------------------------------------
> > modprobe/3184 is trying to acquire lock:
> >  (ftrace_lock){+.+.+.}, at: [<ffffffff80277e71>] ftrace_convert_nops+0x32/0x267
> > 
> > but task is already holding lock:
> >  (module_mutex){+.+.+.}, at: [<ffffffff8026a539>] sys_init_module+0x3f/0x1d3
> > 
> > which lock already depends on the new lock.
> > 
> > 
> > the existing dependency chain (in reverse order) is:
> > 
> > -> #1 (module_mutex){+.+.+.}:
> >        [<ffffffff8026134a>] __lock_acquire+0x12fe/0x1668
> >        [<ffffffff802617a2>] lock_acquire+0xee/0x112
> >        [<ffffffff804fe0a6>] mutex_lock_nested+0x4f/0x305
> >        [<ffffffff8026709e>] module_update_tracepoints+0x1c/0x73
> >        [<ffffffff80274f74>] tracepoint_update_probes+0x21/0x23
> >        [<ffffffff8027510a>] tracepoint_probe_register+0x4a/0x68
> >        [<ffffffff80277cae>] register_ftrace_graph+0x2a9/0x30f
> >        [<ffffffff8027f928>] trace_selftest_startup_function_graph+0x2e/0xbb
> >        [<ffffffff8027fdc5>] register_tracer+0x151/0x26e
> >        [<ffffffff8070b942>] init_graph_trace+0x10/0x12
> >        [<ffffffff80209066>] do_one_initcall+0x5b/0x135
> >        [<ffffffff806fa5e4>] kernel_init+0x12f/0x185
> >        [<ffffffff8020c2ba>] child_rip+0xa/0x20
> >        [<ffffffffffffffff>] 0xffffffffffffffff
> > 
> > -> #0 (ftrace_lock){+.+.+.}:
> >        [<ffffffff80261067>] __lock_acquire+0x101b/0x1668
> >        [<ffffffff802617a2>] lock_acquire+0xee/0x112
> >        [<ffffffff804fe0a6>] mutex_lock_nested+0x4f/0x305
> >        [<ffffffff80277e71>] ftrace_convert_nops+0x32/0x267
> >        [<ffffffff802780bd>] ftrace_init_module+0x17/0x19
> >        [<ffffffff8026a011>] load_module+0x1122/0x160b
> >        [<ffffffff8026a556>] sys_init_module+0x5c/0x1d3
> >        [<ffffffff8020b21b>] system_call_fastpath+0x16/0x1b
> >        [<ffffffffffffffff>] 0xffffffffffffffff
> 
> 
> 
> Ah that's this ftrace/modules lock dependency that Steven told me about
> recently. Steven, do you know more about it now?

Yeah, I think I submitted a patch to fix that. I'll check my repo.

-- Steve



      reply	other threads:[~2009-04-13 14:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 16:34 [bug] lockdep warning: module_mutex vs. ftrace_lock Miklos Szeredi
2009-04-07 18:30 ` Frederic Weisbecker
2009-04-13 14:08   ` Steven Rostedt [this message]

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=1239631707.21121.5.camel@localhost.localdomain \
    --to=srostedt@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.