Re: BUG: sleeping function called from invalid context at kernel/sched.c:5558

From: Rafael J. Wysocki
Date: Mon Nov 03 2008 - 19:48:36 EST


On Monday, 3 of November 2008, Ingo Molnar wrote:
>
> * Thomas Meyer <thomas@xxxxxxxx> wrote:
>
> > False positive, while suspend/resume-to/from-disk?
> >
> > [19332.352863] BUG: sleeping function called from invalid context at kernel/sched.c:5558
> > [19332.352866] in_atomic(): 0, irqs_disabled(): 1, pid: 3287, name: pm-hibernate
> > [19332.352869] Pid: 3287, comm: pm-hibernate Tainted: G W 2.6.28-rc2 #97
> > [19332.352871] Call Trace:
> > [19332.352878] [<c0436408>] __might_sleep+0xdc/0xe3
> > [19332.352882] [<c043bbde>] __cond_resched+0x12/0x36
> > [19332.352886] [<c09d29a8>] _cond_resched+0x27/0x32
> > [19332.352889] [<c0697d9c>] acpi_ps_complete_op+0x1e0/0x1ef
> > [19332.352892] [<c069884e>] ? acpi_ps_alloc_op+0x82/0x84
> > [19332.352896] [<c0689814>] ? acpi_ds_exec_end_op+0x30c/0x370
> > [19332.352899] [<c069839f>] acpi_ps_parse_loop+0x5f4/0x721
> > [19332.352902] [<c069779c>] acpi_ps_parse_aml+0x6d/0x267
>
> Such messages are never false positives, this is a real bug.

Well, not sure.

This is the ACPI AML interpreter executing something with interrupts disabled
due to resume in progress (effectively atomic context).

Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/