Re: Debug: sleeping function called from illegal context at

James Simmons (jsimmons@infradead.org)
Sun, 30 Mar 2003 17:08:29 +0100 (BST)


Try my patch at http://phoenix.infradead.org/~jsimmons/fbdev.diff.gz

That should fix it.

On Sun, 30 Mar 2003, Kronos wrote:

> Hi,
> I got this under 2.5.66. It happens when I'm using links (the browser)
> and is reproducible:
>
>
> .c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c012dc06>] update_process_times+0x46/0x50
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> Debug: sleeping function called from illegal context at mm/slab.c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> Debug: sleeping function called from illegal context at mm/slab.c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<d8a1e678>] pbd_waitq+0x18/0x20 [xfs]
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> Debug: sleeping function called from illegal context at mm/slab.c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c02b1350>] ide_dma_intr+0x0/0xc0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> Debug: sleeping function called from illegal context at mm/slab.c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02cc3cd>] i8042_interrupt+0x1ed/0x3a0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c012dc06>] update_process_times+0x46/0x50
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> Debug: sleeping function called from illegal context at mm/slab.c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02cc3cd>] i8042_interrupt+0x1ed/0x3a0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c012dc06>] update_process_times+0x46/0x50
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> Debug: sleeping function called from illegal context at mm/slab.c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c012dc06>] update_process_times+0x46/0x50
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> Debug: sleeping function called from illegal context at mm/slab.c:1723
> Call Trace:
> [<c011fb7f>] __might_sleep+0x5f/0xa0
> [<c014ce41>] kmalloc+0x1a1/0x1c0
> [<c02cc3cd>] i8042_interrupt+0x1ed/0x3a0
> [<c02bd125>] accel_cursor+0xd5/0x300
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bd545>] fb_vbl_handler+0x85/0xa0
> [<c02bbb40>] cursor_timer_handler+0x0/0x40
> [<c02bbb61>] cursor_timer_handler+0x21/0x40
> [<c012dd84>] run_timer_softirq+0x154/0x400
> [<c0112633>] timer_interrupt+0x1a3/0x3f0
> [<c0128c61>] do_softirq+0xa1/0xb0
> [<c010cc2f>] do_IRQ+0x23f/0x380
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c010ac3c>] common_interrupt+0x18/0x20
> [<c0107240>] default_idle+0x0/0x30
> [<c0107240>] default_idle+0x0/0x30
> [<c0107267>] default_idle+0x27/0x30
> [<c01072e1>] cpu_idle+0x31/0x40
> [<c0105000>] _stext+0x0/0xf0
>
> [...]
>
> It keeps printing call traces so I have to reboot.
>
> HTH,
> Luca
>

-
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/