mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Arjan van de Ven <arjan@infradead.org>
Subject: Re: [patch] warn on release_region() from irq context
Date: Sun, 29 Jan 2006 14:06:48 +0100	[thread overview]
Message-ID: <20060129130648.GA22590@elte.hu> (raw)
In-Reply-To: <20060128150006.GA10660@elte.hu>


* Ingo Molnar <mingo@elte.hu> wrote:

>   ============================
>   [ BUG: illegal lock usage! ]
>   ----------------------------
>   illegal {softirq-on} -> {in-softirq} usage.
>   rcu_torture_rea/264 [HC0[0]:SC1[2]:HE1:SE0] takes:
>    (resource_lock){+-}, at: [<c0123997>] __release_region+0x37/0xf0
>   {softirq-on} state was registered at:
>    [<c0122c85>] irq_exit+0x45/0x50
>   hardirqs last enabled at: [<c011d39e>] vprintk+0x32e/0x3e0
>   softirqs last enabled at: [<c0122c85>] irq_exit+0x45/0x50
>   
>   other info that might help us debug this:
>   no locks held by rcu_torture_rea/264.
>   
>   stack backtrace:
>    [<c010432d>] show_trace+0xd/0x10
>    [<c0104347>] dump_stack+0x17/0x20
>    [<c0139078>] print_usage_bug+0x1d8/0x230
>    [<c0139436>] mark_lock+0x366/0x3a0
>    [<c0139903>] debug_lock_chain+0x493/0x1090
>    [<c013a53d>] debug_lock_chain_spin+0x3d/0x60
>    [<c0268522>] _raw_write_lock+0x32/0x1a0
>    [<c04dc158>] _write_lock+0x8/0x10
>    [<c0123997>] __release_region+0x37/0xf0
>    [<c02f5010>] floppy_release_irq_and_dma+0x140/0x200
>    [<c02f3577>] set_dor+0xc7/0x1b0
>    [<c02f65e1>] motor_off_callback+0x21/0x30
>    [<c01276c5>] run_timer_softirq+0xf5/0x1f0
>    [<c0122fc7>] __do_softirq+0x97/0x130
>    [<c01054a9>] do_softirq+0x69/0x100

btw., Arjan discovered that this bug is not theoretical, and the 
deadlock scenario is experienced by users:

  http://i15.photobucket.com/albums/a396/johnny_blue/fedora-devel/28012006026.jpg

	Ingo

      parent reply	other threads:[~2006-01-29 13:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-28 14:43 Ingo Molnar
2006-01-28 15:00 ` Ingo Molnar
2006-01-28 16:02   ` Ingo Molnar
2006-01-29 13:06   ` Ingo Molnar [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=20060129130648.GA22590@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@osdl.org \
    --cc=arjan@infradead.org \
    --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

all inboxes | Powered by JetHome®