mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: linux-kernel@vger.kernel.org
Subject: BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
Date: Wed, 4 Apr 2012 09:02:36 +0200	[thread overview]
Message-ID: <20347.61964.860903.97474@ipc1.ka-ro> (raw)

Hi,

commit a0acae0e added a might_sleep() to try_to_freeze() in
include/linux/freezer.h.
This leads to the following BUG message each time a process is started
when compiled with CONFIG_DEBUG_ATOMIC_SLEEP=y

|BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
|in_atomic(): 0, irqs_disabled(): 128, pid: 619, name: rc
|no locks held by rc/619.
|irq event stamp: 12235
|hardirqs last  enabled at (12234): [<80334684>] _raw_spin_unlock_irq+0x2c/0x58
|hardirqs last disabled at (12235): [<8000df0c>] ret_fast_syscall+0xc/0x3c
|softirqs last  enabled at (11761): [<80021d00>] __do_softirq+0x140/0x160
|softirqs last disabled at (11754): [<8002221c>] irq_exit+0x60/0xb4
|Backtrace: 
|[<800118b8>] (dump_backtrace+0x0/0x10c) from [<80330b90>] (dump_stack+0x18/0x1c)
| r6:00000000 r5:00000002 r4:9ef66000 r3:9f86bb80
|[<80330b78>] (dump_stack+0x0/0x1c) from [<8003ecb0>] (__might_sleep+0x110/0x130)
|[<8003eba0>] (__might_sleep+0x0/0x130) from [<80010918>] (do_signal+0x8c/0x584)
| r4:9ef67fb0
|[<8001088c>] (do_signal+0x0/0x584) from [<80011340>] (do_notify_resume+0x20/0x64)
|[<80011320>] (do_notify_resume+0x0/0x64) from [<8000df64>] (work_pending+0x24/0x28)
| r4:00000000 r3:00000000

I don't have the slightest idea how this should be fixed.


Lothar Waßmann
-- 
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info@karo-electronics.de
___________________________________________________________

             reply	other threads:[~2012-04-04  7:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-04  7:02 Lothar Waßmann [this message]
2012-04-20 12:28 ` Rabin Vincent

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=20347.61964.860903.97474@ipc1.ka-ro \
    --to=lw@karo-electronics.de \
    --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®