From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@osdl.org>
Cc: 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 13:40:19 +0100 [thread overview]
Message-ID: <20061226124019.GA3701@elte.hu> (raw)
In-Reply-To: <20061226022538.13ea8b3f.akpm@osdl.org>
* 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?)
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.
Ingo
next prev parent reply other threads:[~2006-12-26 12:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-25 22:40 Linux 2.6.20-rc2 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 [this message]
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
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=20061226124019.GA3701@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=florin@iucha.net \
--cc=linux-kernel@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