All of lore.kernel.org
 help / color / mirror / Atom feed
* BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
@ 2012-04-04  7:02 Lothar Waßmann
  2012-04-20 12:28   ` Rabin Vincent
  0 siblings, 1 reply; 3+ messages in thread
From: Lothar Waßmann @ 2012-04-04  7:02 UTC (permalink / raw)
  To: linux-kernel

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
___________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
  2012-04-04  7:02 BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46 Lothar Waßmann
@ 2012-04-20 12:28   ` Rabin Vincent
  0 siblings, 0 replies; 3+ messages in thread
From: Rabin Vincent @ 2012-04-20 12:28 UTC (permalink / raw)
  To: Lothar Waßmann
  Cc: linux-kernel, Russell King - ARM Linux, linux-arm-kernel

On Wed, Apr 4, 2012 at 12:32, Lothar Waßmann <LW@karo-electronics.de> wrote:
> 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

This is on ARM, right?  In this old thread, there is a patch from
Russell which fixes it, but it seems to have not been applied:

https://lkml.org/lkml/2011/8/25/231

^ permalink raw reply	[flat|nested] 3+ messages in thread

* BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
@ 2012-04-20 12:28   ` Rabin Vincent
  0 siblings, 0 replies; 3+ messages in thread
From: Rabin Vincent @ 2012-04-20 12:28 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Apr 4, 2012 at 12:32, Lothar Wa?mann <LW@karo-electronics.de> wrote:
> 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

This is on ARM, right?  In this old thread, there is a patch from
Russell which fixes it, but it seems to have not been applied:

https://lkml.org/lkml/2011/8/25/231

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-20 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04  7:02 BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46 Lothar Waßmann
2012-04-20 12:28 ` Rabin Vincent
2012-04-20 12:28   ` Rabin Vincent

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.