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

This is a discussion on BUG: sleeping function called from invalid context at kernel/sched.c:5558 - Kernel ; 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] [ ] __might_sleep+0xdc/0xe3 ...

+ Reply to Thread
Results 1 to 3 of 3

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

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

    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] [] __might_sleep+0xdc/0xe3
    [19332.352882] [] __cond_resched+0x12/0x36
    [19332.352886] [] _cond_resched+0x27/0x32
    [19332.352889] [] acpi_ps_complete_op+0x1e0/0x1ef
    [19332.352892] [] ? acpi_ps_alloc_op+0x82/0x84
    [19332.352896] [] ? acpi_ds_exec_end_op+0x30c/0x370
    [19332.352899] [] acpi_ps_parse_loop+0x5f4/0x721
    [19332.352902] [] acpi_ps_parse_aml+0x6d/0x267
    [19332.352905] [] acpi_ps_execute_method+0x11c/0x1d7
    [19332.352909] [] acpi_ns_evaluate+0x11c/0x1e4
    [19332.352913] [] ? acpi_ut_create_internal_object_dbg+0x15/0x6d
    [19332.352916] [] acpi_rs_set_srs_method_data+0xb7/0xd2
    [19332.352919] [] acpi_set_current_resources+0x2e/0x39
    [19332.352923] [] acpi_pci_link_set+0xff/0x1a4
    [19332.352926] [] irqrouter_resume+0x49/0x60
    [19332.352930] [] __sysdev_resume+0x14/0x38
    [19332.352933] [] sysdev_resume+0x21/0x54
    [19332.352936] [] device_power_up+0xb/0x15
    [19332.352940] [] hibernation_snapshot+0x149/0x1ba
    [19332.352943] [] hibernate+0xac/0x17d
    [19332.352945] [] ? state_store+0x0/0xa8
    [19332.352948] [] state_store+0x56/0xa8
    [19332.352951] [] ? state_store+0x0/0xa8
    [19332.352954] [] kobj_attr_store+0x1a/0x22
    [19332.352958] [] sysfs_write_file+0xb4/0xdf
    [19332.352961] [] ? sysfs_write_file+0x0/0xdf
    [19332.352964] [] vfs_write+0x84/0xdf
    [19332.352967] [] sys_write+0x3b/0x60
    [19332.352970] [] sysenter_do_call+0x12/0x21
    [19332.352986] Enabling non-boot CPUs ...


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

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


    * Thomas Meyer 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] [] __might_sleep+0xdc/0xe3
    > [19332.352882] [] __cond_resched+0x12/0x36
    > [19332.352886] [] _cond_resched+0x27/0x32
    > [19332.352889] [] acpi_ps_complete_op+0x1e0/0x1ef
    > [19332.352892] [] ? acpi_ps_alloc_op+0x82/0x84
    > [19332.352896] [] ? acpi_ds_exec_end_op+0x30c/0x370
    > [19332.352899] [] acpi_ps_parse_loop+0x5f4/0x721
    > [19332.352902] [] acpi_ps_parse_aml+0x6d/0x267


    Such messages are never false positives, this is a real bug.

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

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

    On Monday, 3 of November 2008, Ingo Molnar wrote:
    >
    > * Thomas Meyer 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] [] __might_sleep+0xdc/0xe3
    > > [19332.352882] [] __cond_resched+0x12/0x36
    > > [19332.352886] [] _cond_resched+0x27/0x32
    > > [19332.352889] [] acpi_ps_complete_op+0x1e0/0x1ef
    > > [19332.352892] [] ? acpi_ps_alloc_op+0x82/0x84
    > > [19332.352896] [] ? acpi_ds_exec_end_op+0x30c/0x370
    > > [19332.352899] [] acpi_ps_parse_loop+0x5f4/0x721
    > > [19332.352902] [] 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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread