Project

General

Profile

Actions

Bug #1155

closed

BUG: scheduling while atomic and BUG: sleeping function called from invalid context

Added by Fredrik Gustavsson about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/21/2018
Due date:
% Done:

0%

Estimated time:

Description

Hi,

Preempt-rt kernel 4.1.21-rt13 with lttng-modules 2.9.5 on a arm32.

I would get some stack traces of this kind and if I provoke the system by loading it, the fault will appear quite quickly.
I see the lttng-tracer in the printout.

The sleeping function called from invalid context is much more common than the scheduling while atomic but the stack traces will be the same.

We previously used 2.8.7 and did not get this error then.

If we revert a6370148ab4a6f210c29372febcffd87b440cc50
"select, poll and epoll_wait overrides on ARM 32-bit"
We do not see the error.

[ 186.864953] BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:925
[ 186.864959] in_atomic(): 1, irqs_disabled(): 0, pid: 6756, name: hackbench
[ 186.864963] no locks held by hackbench/6756.
[ 186.864970] Preemption disabled at:[< (null)>] (null)

[ 186.864981] CPU: 8 PID: 6756 Comm: hackbench Tainted: G C 4.1.21-rt13 #1
[ 186.864984] Hardware name:
[ 186.865006] [<c041b028>] (unwind_backtrace) from [<c0414c88>] (show_stack+0x20/0x24)
[ 186.865020] [<c0414c88>] (show_stack) from [<c0a62b0c>] (dump_stack+0xb4/0xe4)
[ 186.865032] [<c0a62b0c>] (dump_stack) from [<c0460d9c>] (might_sleep+0x1b8/0x2a8)
[ 186.865041] [<c0460d9c>] (
_might_sleep) from [<c0a67d4c>] (rt_spin_lock+0x34/0x6c)
[ 186.865053] [<c0a67d4c>] (rt_spin_lock) from [<c054c4b0>] (get_page_from_freelist+0x284/0xa0c)
[ 186.865065] [<c054c4b0>] (get_page_from_freelist) from [<c054ce28>] (
_alloc_pages_nodemask+0x1f0/0xa7c)
[ 186.865075] [<c054ce28>] (_alloc_pages_nodemask) from [<c0587ce8>] (new_slab+0x98/0x2f4)
[ 186.865085] [<c0587ce8>] (new_slab) from [<c058a7ec>] (
_slab_alloc.constprop.9+0x3ac/0x488)
[ 186.865093] [<c058a7ec>] (_slab_alloc.constprop.9) from [<c058ac48>] (_kmalloc+0x380/0x4f4)
[ 186.865170] [<c058ac48>] (_kmalloc) from [<bf081338>] (_event_probe__syscall_entry_poll+0xf4/0x480 [lttng_tracer])
[ 186.865263] [<bf081338>] (_event_probe_syscall_entry_poll [lttng_tracer]) from [<bf093200>] (syscall_entry_probe.part.0+0x158/0x2a0 [lttng_tracer])
[ 186.865349] [<bf093200>] (syscall_entry_probe.part.0 [lttng_tracer]) from [<bf0933a8>] (syscall_entry_probe+0x60/0x64 [lttng_tracer])
[ 186.865406] [<bf0933a8>] (syscall_entry_probe [lttng_tracer]) from [<c0412a94>] (syscall_trace_enter+0x114/0x3c4)
[ 186.865421] [<c0412a94>] (syscall_trace_enter) from [<c040fff8>] (__sys_trace+0xc/0x38)


Files

lttng_kernel_load (2.23 KB) lttng_kernel_load Fredrik Gustavsson, 02/24/2018 09:51 AM
stresstest (2.72 KB) stresstest Fredrik Gustavsson, 02/24/2018 09:51 AM
Actions

Also available in: Atom PDF