mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@osdl.org>, Florin Iucha <florin@iucha.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.20-rc2
Date: Tue, 26 Dec 2006 07:36:10 -0800	[thread overview]
Message-ID: <20061226073610.1b86a7cc.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20061226124019.GA3701@elte.hu>

On Tue, 26 Dec 2006 13:40:19 +0100 Ingo Molnar wrote:

> 
> * Andrew Morton <akpm@osdl.org> wrote:
> 
> > > [ 2844.871895] BUG: scheduling while atomic: cp/0x20000000/2965
> 
> > This is the second report we've had where bit 29 of ->preempt_count is 
> > getting set.  I don't think there's any legitimate way in which that 
> > bit can get set.  (Ingo?)

First one was me, on x86_64 UP.  I ran memtest86 many hours
with no problems found.  It's an almost-new system fwiw.

> It's not legitimate (the highest legitimate bit is PREEMPT_ACTIVE, bit 
> 28). Nor can i think of any bug scenario barring outright memory 
> corruption (either hardware or kernel induced) that could cause this. 
> It's quite hard to trigger bit 29 there via any of the scheduling 
> mechanisms: either the preempt count would have to underflow massively 
> /and/ avoid detection during that undflow (sheer impossible) or the 
> HARDIRQ_COUNT would have to overflow to more than 4096 (again near 
> impossible to trigger), and simultaneously the softirq and preempt count 
> would have to overflow by 256 /at once/, or underflow by 1 at once. The 
> likelyhood of that makes the likelyhood of GPL-ed Windows a sure bet in 
> comparison.
> 
> So my guess would still be memory corruption of some sort, or some 
> really weird compiler bug. We just recently mandated REGPARM on i386 for 
> example, it would be interesting to know whether an older (say 2.6.18 or 
> 19) config had CONFIG_REGPARM enabled or not? Regparm can also tax the 
> hardware (the CPU in particular) a bit more.

I've had at least one more occurrence of it:

[   78.804940] BUG: scheduling while atomic: kbd/0x20000000/3444
[   78.804944] 
[   78.804945] Call Trace:
[   78.804952]  [<ffffffff80521ae0>] __sched_text_start+0x60/0xae0
[   78.804958]  [<ffffffff8022c2df>] default_wake_function+0xd/0xf
[   78.804962]  [<ffffffff80229504>] __wake_up_common+0x3e/0x68
[   78.804966]  [<ffffffff8022c72f>] __cond_resched+0x1c/0x44
[   78.804969]  [<ffffffff8052266b>] cond_resched+0x29/0x30
[   78.804973]  [<ffffffff805244d6>] __reacquire_kernel_lock+0x29/0x49
[   78.804977]  [<ffffffff80522603>] thread_return+0xa3/0xe2
[   78.804981]  [<ffffffff8022c72f>] __cond_resched+0x1c/0x44
[   78.804985]  [<ffffffff8052266b>] cond_resched+0x29/0x30
[   78.804989]  [<ffffffff803a8f6e>] device_add+0x3e1/0x53e
[   78.804993]  [<ffffffff803a90e4>] device_register+0x19/0x1d
[   78.804996]  [<ffffffff803a91c7>] device_create+0xdf/0x110
[   78.805001]  [<ffffffff8037fd67>] set_palette+0x5c/0x60
[   78.805005]  [<ffffffff8037fc38>] reset_terminal+0x1f0/0x1f5
[   78.805010]  [<ffffffff8037b78e>] vcs_make_sysfs+0x5e/0x62
[   78.805014]  [<ffffffff80380fc2>] con_open+0x88/0x9b
[   78.805018]  [<ffffffff803765b2>] tty_open+0x19c/0x310
[   78.805022]  [<ffffffff8027b4f9>] chrdev_open+0x164/0x19d
[   78.805026]  [<ffffffff8027b395>] chrdev_open+0x0/0x19d
[   78.805030]  [<ffffffff802772c9>] __dentry_open+0xe9/0x1ba
[   78.805034]  [<ffffffff8027742f>] nameidata_to_filp+0x2d/0x3f
[   78.805038]  [<ffffffff80277477>] do_filp_open+0x36/0x46
[   78.805042]  [<ffffffff8027714b>] get_unused_fd+0x70/0x105
[   78.805046]  [<ffffffff802774d6>] do_sys_open+0x4f/0xd7
[   78.805050]  [<ffffffff80277587>] sys_open+0x1b/0x1d
[   78.805054]  [<ffffffff8020996e>] system_call+0x7e/0x83

---
~Randy

  parent reply	other threads:[~2006-12-26 15:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-25 22:40 Florin Iucha
2006-12-25 22:56 ` Florin Iucha
2006-12-25 23:06   ` Trond Myklebust
2006-12-26  1:30     ` Florin Iucha
2006-12-26 10:25   ` Andrew Morton
2006-12-26 12:40     ` Ingo Molnar
2006-12-26 14:20       ` Florin Iucha
2006-12-26 15:22         ` Ingo Molnar
     [not found]           ` <20061226234206.GD22307@iucha.net>
     [not found]             ` <20061226234253.GA7523@elte.hu>
2006-12-27  1:50               ` Florin Iucha
2006-12-26 15:36       ` Randy Dunlap [this message]
2006-12-26 16:26         ` Ingo Molnar
2006-12-26 16:37           ` Ingo Molnar
2006-12-26 17:44             ` Fabio Comolli
2007-01-03 12:33 ` Jiri Kosina
  -- strict thread matches above, loose matches on Subject: below --
2006-12-24  4:49 Linus Torvalds
2006-12-24 13:58 ` Alessandro Suardi
2006-12-24 14:49   ` Jeff Garzik
2006-12-24 17:13 ` Andreas Schwab

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=20061226073610.1b86a7cc.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=akpm@osdl.org \
    --cc=florin@iucha.net \
    --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

all inboxes | Powered by JetHome®