From: Linus Torvalds <torvalds@linux-foundation.org>
To: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
Nick Piggin <nickpiggin@yahoo.com.au>
Subject: Re: linux-next: Tree for December 11
Date: Wed, 7 Jan 2009 08:50:34 -0800 (PST) [thread overview]
Message-ID: <alpine.LFD.2.00.0901070840240.3057@localhost.localdomain> (raw)
In-Reply-To: <f19298770901070830q71cc7604nf55e1d5b70a22f37@mail.gmail.com>
On Wed, 7 Jan 2009, Alexey Zaytsev wrote:
>
> Almost a month later, the warning is still there, and now also in Linus' git.
> Am I the only one who sees it?
Possibly. But that may be because most people don't have DEBUG_PREEMPT.
> [ 0.004150] WARNING: at kernel/sched.c:4435 sub_preempt_count+0xae/0xc0()
> [ 0.004247] Hardware name: HP Compaq nx7300 (GB848ES#ACB)
> [ 0.004342] Modules linked in:
> [ 0.004477] Pid: 0, comm: swapper Not tainted 2.6.28-06859-gede6f5a #179
> [ 0.004575] Call Trace:
> [ 0.004672] [<c012fbe6>] warn_slowpath+0x86/0xa0
> [ 0.004770] [<c014e99b>] ? tick_check_oneshot_change+0x4b/0x100
> [ 0.004868] [<c046dc00>] ? _spin_unlock_irq+0x10/0x30
> [ 0.004963] [<c047045e>] sub_preempt_count+0xae/0xc0
> [ 0.005060] [<c0134787>] _local_bh_enable+0x27/0xa0
Hmm. _local_bh_enable() would make the preempt_count go negative or fall
below 1 (with kernel lock held).
> [ 0.005155] [<c0134ac7>] __do_softirq+0xf7/0x150
> [ 0.005250] [<c01349d0>] ? __do_softirq+0x0/0x150
> [ 0.005345] <IRQ> [<c014ec2e>] ? tick_nohz_update_jiffies+0xe/0x50
> [ 0.005488] [<c013494f>] ? irq_exit+0x7f/0x90
> [ 0.005584] [<c0104f23>] ? do_IRQ+0xa3/0x120
> [ 0.005678] [<c01038a7>] ? common_interrupt+0x27/0x2c
> [ 0.005773] [<c013007b>] ? try_acquire_console_sem+0x1b/0x30
> [ 0.005872] [<c05f7378>] ? check_bugs+0xb8/0xe0
> [ 0.005967] [<c05ef98a>] ? start_kernel+0x25a/0x2f0
.. and it happens early on, when we take an interrupt in check_bugs.
Are we ready to enable interrupts there? Maybe the page fault we took (on
purpose) enabled interrupts and we now take the irq much too early.
Or maybe the initial kernel lock didn't set preempt_count to 1.
Ingo, any ideas?
Linus
next prev parent reply other threads:[~2009-01-07 16:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-11 9:04 Stephen Rothwell
2008-12-11 12:40 ` Alexey Zaytsev
2008-12-14 14:34 ` Alexey Zaytsev
2008-12-16 21:08 ` Ingo Molnar
2008-12-16 22:21 ` Alexey Zaytsev
2008-12-16 22:23 ` Ingo Molnar
2009-01-07 16:30 ` Alexey Zaytsev
2009-01-07 16:50 ` Linus Torvalds [this message]
2009-01-07 17:17 ` Ingo Molnar
2009-01-07 17:35 ` Alexey Zaytsev
2009-01-07 18:47 ` Ingo Molnar
2009-01-07 19:10 ` Alexey Zaytsev
2009-12-11 5:01 Stephen Rothwell
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=alpine.LFD.2.00.0901070840240.3057@localhost.localdomain \
--to=torvalds@linux-foundation.org \
--cc=alexey.zaytsev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nickpiggin@yahoo.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 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®