From: Chuck Ebbert <cebbert@redhat.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
Anant Nitya <kernel@prachanda.info>,
linux-kernel@vger.kernel.org, David Miller <davem@davemloft.net>
Subject: Re: [BUG] local_softirq_pending storm
Date: Wed, 23 May 2007 13:00:53 -0400 [thread overview]
Message-ID: <46547345.8000808@redhat.com> (raw)
In-Reply-To: <20070522201046.GA6113@elte.hu>
Ingo Molnar wrote:
> * Michal Piotrowski <michal.k.k.piotrowski@gmail.com> wrote:
>
>> Bad news - I hit a bug in 2.6.22-rc2-hrt3. Bug symptoms:
>> - X hangs (keyboard, mouse, sound etc.)
>> - only Magic SysRq works
>
> please try the patch below! I think we have nailed this bug.
>
> Ingo
>
> Index: linux/kernel/sched.c
> ===================================================================
> --- linux.orig/kernel/sched.c
> +++ linux/kernel/sched.c
> @@ -4212,9 +4212,7 @@ int __sched cond_resched_softirq(void)
> BUG_ON(!in_softirq());
>
> if (need_resched() && system_state == SYSTEM_RUNNING) {
> - raw_local_irq_disable();
> - _local_bh_enable();
> - raw_local_irq_enable();
> + local_bh_enable();
> __cond_resched();
> local_bh_disable();
> return 1;
We may have a problem with that:
BUG: warning at kernel/softirq.c:138/local_bh_enable() (Not tainted)
[<c042b2ef>] local_bh_enable+0x45/0x92
[<c06036b7>] cond_resched_softirq+0x2c/0x42
[<c059d5d0>] release_sock+0x54/0xa3
[<c05c9428>] tcp_sendmsg+0x91b/0xa0c
[<c05e1bb9>] inet_sendmsg+0x3b/0x45
[<c059af34>] sock_aio_write+0xf9/0x105
[<c0476035>] do_sync_write+0xc7/0x10a
[<c0437265>] autoremove_wake_function+0x0/0x35
[<c047688e>] vfs_write+0xbc/0x154
[<c0476e8c>] sys_write+0x41/0x67
[<c0404f70>] syscall_call+0x7/0xb
That's:
WARN_ON_ONCE(irqs_disabled());
And another, tainted but probably valid:
BUG: warning at kernel/softirq.c:138/local_bh_enable() (Tainted: P )
[<c042b2ef>] local_bh_enable+0x45/0x92
[<c06036b7>] cond_resched_softirq+0x2c/0x42
[<c059d5d0>] release_sock+0x54/0xa3
[<c05c9428>] tcp_sendmsg+0x91b/0xa0c
[<c04e8b30>] copy_to_user+0x3c/0x50
[<c05a1b71>] memcpy_toiovec+0x27/0x4a
[<c059d58f>] release_sock+0x13/0xa3
[<c0604ad5>] _spin_unlock_bh+0x5/0xd
[<c05e1bb9>] inet_sendmsg+0x3b/0x45
[<c059af34>] sock_aio_write+0xf9/0x105
[<c0475f31>] do_sync_readv_writev+0xc1/0xfe
[<c0437265>] autoremove_wake_function+0x0/0x35
[<c04e88e0>] copy_from_user+0x3a/0x66
[<c0475dec>] rw_copy_check_uvector+0x5c/0xb0
[<c047667a>] do_readv_writev+0xbc/0x187
[<c059ae3b>] sock_aio_write+0x0/0x105
[<c0476782>] vfs_writev+0x3d/0x48
[<c0476bee>] sys_writev+0x41/0x95
[<c0404f70>] syscall_call+0x7/0xb
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=240982
next prev parent reply other threads:[~2007-05-23 17:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 14:12 [BUG] local_softirq_pending storm Anant Nitya
2007-05-09 16:31 ` Thomas Gleixner
2007-05-10 11:53 ` Anant Nitya
2007-05-10 21:58 ` Thomas Gleixner
2007-05-17 6:41 ` Anant Nitya
2007-05-18 13:01 ` Thomas Gleixner
2007-05-19 4:30 ` Anant Nitya
2007-05-19 9:55 ` Anant Nitya
2007-05-19 19:11 ` Thomas Gleixner
2007-05-19 21:23 ` Anant Nitya
2007-05-20 21:43 ` Thomas Gleixner
2007-05-21 6:22 ` Anant Nitya
2007-05-21 9:01 ` Thomas Gleixner
2007-05-21 10:02 ` Anant Nitya
2007-05-21 18:45 ` Anant Nitya
2007-05-22 19:03 ` Michal Piotrowski
2007-05-22 19:59 ` Michal Piotrowski
2007-05-22 20:10 ` Ingo Molnar
2007-05-22 20:23 ` Michal Piotrowski
2007-05-23 17:00 ` Chuck Ebbert [this message]
2007-05-23 18:38 ` Chuck Ebbert
2007-05-23 23:24 ` Anant Nitya
2007-05-24 7:45 ` Ingo Molnar
2007-05-20 10:18 ` Heiko Carstens
2007-05-20 13:52 ` Thomas Gleixner
2007-05-20 18:36 ` Heiko Carstens
[not found] ` <20070520191800.GA14225@osiris.ibm.com>
[not found] ` <1179689389.6570.1.camel@chaos>
[not found] ` <20070521200428.GA9855@osiris.ibm.com>
2007-05-23 20:54 ` Mikulas Patocka
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=46547345.8000808@redhat.com \
--to=cebbert@redhat.com \
--cc=davem@davemloft.net \
--cc=kernel@prachanda.info \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.k.k.piotrowski@gmail.com \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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.