All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Valdis.Kletnieks@vt.edu
Cc: mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: 2.6.25-rc8-mm1 - BUG: scheduling while atomic: swapper/0/0xffffffff
Date: Sun, 6 Apr 2008 23:48:14 -0700	[thread overview]
Message-ID: <20080406234814.a40025fb.akpm@linux-foundation.org> (raw)
In-Reply-To: <4487.1207549282@turing-police.cc.vt.edu>

On Mon, 07 Apr 2008 02:21:22 -0400 Valdis.Kletnieks@vt.edu wrote:

> On Tue, 01 Apr 2008 21:32:14 PDT, Andrew Morton said:
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.25-rc8/2.6.25-rc8-mm1/
> 
> Been seeing these crop up once in a while - can take hours after a reboot
> before I see the first one, but once I see one, I'm likely to see more, at
> a frequency of anywhere from ~5seconds to ~10 minutes between BUG msgs.
> 
> BUG: scheduling while atomic: swapper/0/0xffffffff
> Pid: 0, comm: swapper Tainted: P          2.6.25-rc8-mm1 #4
> 
> Call Trace:
>  [<ffffffff8020b2f4>] ? default_idle+0x0/0x74
>  [<ffffffff8022be19>] __schedule_bug+0x5d/0x61
>  [<ffffffff80552aea>] schedule+0x11a/0x9e4
>  [<ffffffff805536ce>] ? preempt_schedule+0x3c/0xaa
>  [<ffffffff802480f1>] ? hrtimer_forward+0x82/0x96
>  [<ffffffff804600a4>] ? cpuidle_idle_call+0x0/0xd5
>  [<ffffffff8020b2f4>] ? default_idle+0x0/0x74
>  [<ffffffff8020b2e0>] cpu_idle+0xf6/0x10a
>  [<ffffffff80540cb2>] rest_init+0x86/0x8a
> 
> Eventually, I end up with a basically hung system, and need to alt-sysrq-B.
> 
> Yes, I know it's tainted, and it's possible the root cause is a self-inflicted
> buggy module - but the traceback above seems odd.  Did some of my code manage
> to idle the CPU while is_atomic was set, or is the path from cpu_idle on down
> doing something it shouldn't be?

I'd say that there's an unlock missing somewhere.

> (I admit being confused - if my code was the source of the is_atomic error,
> shouldn't it have been caught on the *previous* call to schedule - the one
> that ran through all the queues and decided we should invoke idle?

Sounds sane.  Perhaps preempt_count is getting mucked up in interrupt
context?

iirc there's some toy in either the recently-added tracing code or still in
the -rt tree which would help find a missed unlock, but I forget what it was.
Ingo will know...



      reply	other threads:[~2008-04-07  6:48 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-02  4:32 2.6.25-rc8-mm1 Andrew Morton
2008-04-02  5:40 ` 2.6.25-rc8-mm1 Dmitri Vorobiev
2008-04-02  6:03   ` 2.6.25-rc8-mm1 Andrew Morton
2008-04-02 17:33     ` 2.6.25-rc8-mm1 (mips build failure) Christoph Lameter
2008-04-02 18:29       ` Andrew Morton
2008-04-02 18:33         ` Christoph Lameter
2008-04-02 19:06           ` Sam Ravnborg
2008-04-03 16:02             ` Ralf Baechle
2008-04-03 22:17               ` Christoph Lameter
2008-04-03 23:26                 ` Dmitri Vorobiev
2008-04-04 10:24                 ` Ralf Baechle
2008-04-04 17:36                   ` Christoph Lameter
2008-04-04 17:50                     ` Christoph Lameter
2008-04-02  6:04 ` 2.6.25-rc8-mm1 Valdis.Kletnieks
2008-04-02  6:15   ` 2.6.25-rc8-mm1 Andrew Morton
2008-04-02  6:25 ` [BUG] 2.6.25-rc8-mm1 kernel panic while bootup on powerpc Kamalesh Babulal
2008-04-02  6:25   ` Kamalesh Babulal
2008-04-02  6:39   ` Andrew Morton
2008-04-02  6:39     ` Andrew Morton
2008-04-02  7:08     ` Kamalesh Babulal
2008-04-02  7:08       ` Kamalesh Babulal
2008-04-02  7:17       ` Michael Ellerman
2008-04-02  7:17         ` Michael Ellerman
2008-04-02 17:09         ` Kamalesh Babulal
2008-04-02 17:09           ` Kamalesh Babulal
2008-04-02 18:15           ` Badari Pulavarty
2008-04-02 18:15             ` Badari Pulavarty
2008-04-02 19:22         ` Badari Pulavarty
2008-04-02 19:22           ` Badari Pulavarty
2008-04-02 21:57           ` Yinghai Lu
2008-04-02 21:57             ` Yinghai Lu
2008-04-02 22:24           ` Yinghai Lu
2008-04-02 22:24             ` Yinghai Lu
2008-04-04  9:24     ` Andy Whitcroft
2008-04-04  9:24       ` Andy Whitcroft
2008-04-02  9:02 ` [BUILD_FAILURE] 2.6.25-rc8-mm1 build failure on x86_64 with randconfig Kamalesh Babulal
2008-04-02 10:49 ` 2.6.25-rc8-mm1 Miles Lane
2008-04-02 11:08   ` 2.6.25-rc8-mm1 Valdis.Kletnieks
2008-04-02 16:58   ` 2.6.25-rc8-mm1 Chatre, Reinette
2008-04-02 19:15     ` 2.6.25-rc8-mm1 Valdis.Kletnieks
2008-04-02 16:20 ` 2.6.25-rc8-mm1 sparc64 build problem: size of array 'type name' is negative Mariusz Kozlowski
2008-04-02 16:20   ` Mariusz Kozlowski
2008-04-02 16:30   ` 2.6.25-rc8-mm1 sparc64 build problem: size of array 'type name' Andrew Morton
2008-04-02 16:30     ` 2.6.25-rc8-mm1 sparc64 build problem: size of array 'type name' is negative Andrew Morton
2008-04-02 19:12 ` 2.6.25-rc8-mm1 - BUG in fs/jbd/transaction.c Valdis.Kletnieks
2008-04-02 19:27   ` Josef Bacik
2008-04-02 19:39     ` Andrew Morton
2008-04-02 19:41       ` Josef Bacik
2008-04-03 18:18       ` Stephen Smalley
2008-04-03 23:02         ` James Morris
2008-04-04 12:46           ` Stephen Smalley
2008-04-06 23:54             ` James Morris
2008-04-04 10:15         ` Jan Kara
2008-04-04 12:53           ` 2.6.25-rc8-mm1 - BUG in fs/jbd/transaction.c' Josef Bacik
2008-04-03 18:25     ` 2.6.25-rc8-mm1 - BUG in fs/jbd/transaction.c Stephen Smalley
2008-04-02 19:30   ` Andrew Morton
2008-04-03  8:57     ` Jan Kara
2008-04-03 12:11 ` 2.6.25-rc8-mm1 Dave Airlie
2008-04-03 16:59   ` 2.6.25-rc8-mm1 Andrew Morton
2008-04-03 23:08 ` 2.6.25-rc8-mm1: Intel SATA boot failure Tilman Schmidt
2008-04-03 23:17   ` Andrew Morton
2008-04-09 14:29     ` Tilman Schmidt
2008-04-14  0:28     ` Tilman Schmidt
2008-04-14  2:05       ` Andrew Morton
2008-04-15 23:33       ` Tilman Schmidt
2008-04-04 20:16 ` usb unbind/bind => WARNING at fs/sysfs/dir.c [Was: 2.6.25-rc8-mm1] Jiri Slaby
2008-04-04 20:51   ` Greg KH
2008-04-04 21:23     ` Alan Stern
2008-04-05  3:46       ` Alan Stern
2008-04-05  4:37         ` Greg KH
2008-04-05 14:16           ` Alan Stern
2008-04-05  8:17         ` Jiri Slaby
2008-04-07  6:21 ` 2.6.25-rc8-mm1 - BUG: scheduling while atomic: swapper/0/0xffffffff Valdis.Kletnieks
2008-04-07  6:48   ` Andrew Morton [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=20080406234814.a40025fb.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    /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.