public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: sleeping functions called in invalid context during resume
Date: Wed, 15 Nov 2006 10:01:19 -0800	[thread overview]
Message-ID: <20061115100119.460b7a4e@localhost.localdomain> (raw)
In-Reply-To: <20061115093354.GA30813@elte.hu>

On Wed, 15 Nov 2006 10:33:54 +0100
Ingo Molnar <mingo@elte.hu> wrote:

> 
> * Andrew Morton <akpm@osdl.org> wrote:
> 
> > >  [<ffffffff80215059>] vfs_write+0xce/0x174
> > >  [<ffffffff802159a5>] sys_write+0x45/0x6e
> > >  [<ffffffff802593de>] system_call+0x7e/0x83
> > > DWARF2 unwinder stuck at system_call+0x7e/0x83
> > > 
> > > Leftover inexact backtrace:
> > 
> > Could mean that someone somewhere forgot to release a spinlock.
> > 
> > Ingo had a patch which would find the culprit (preempt-tracing.patch).
> > 
> > Does it still live?
> 
> if it's really a spinlock/rwlock release that was missed, then i've got 
> good news: we already have that debugging infrastructure, it's called 
> lockdep :-)
> 
> The patch below makes use of that capability of lockdep for all 
> stackdumps that are printed to the console. Stephen, please apply this 
> patch, enable CONFIG_PROVE_LOCKING and try to trigger another message. 
> 
> 	Ingo

I tried but with CONFIG_PROVE_LOCKING, resume gets stuck in an infinite
loop backtracing to the console.  Unfortunately, the serial console isn't up
at that point so it it isn't capturable. 

  reply	other threads:[~2006-11-15 18:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15  6:30 sleeping functions called in invalid context during resume Stephen Hemminger
2006-11-15  9:20 ` Andrew Morton
2006-11-15  9:33   ` Ingo Molnar
2006-11-15 18:01     ` Stephen Hemminger [this message]
2006-11-15 18:04       ` Ingo Molnar
2006-11-17  5:21         ` Stephen Hemminger
2006-11-17  6:18           ` Andrew Morton
2006-11-17  6:49             ` Andi Kleen
2006-11-17  6:52           ` Ingo Molnar
2006-11-17 15:46             ` Rafael J. Wysocki
2006-11-17 16:30               ` Stephen Hemminger
2006-11-18 11:43                 ` Paolo Ornati
2006-11-18 12:55                   ` Karsten Wiese
2006-11-18 15:28                     ` Paolo Ornati

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=20061115100119.460b7a4e@localhost.localdomain \
    --to=shemminger@osdl.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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