Bug #306
closedkernel modules hitting might_sleep()
0%
Description
I am testing out LTTng kernel modules 2.0.4 on a 3.3.8 kernel and I am seeing LOTs of "BUG: sleeping function called from invalid context" errors on the console. I have attached 2 files showing various stack traces leading to might_sleep(); one is while tracing all "tracepoints", the other is while tracing all "syscalls".
I have also attached my kernel config.
Files
Updated by Mathieu Desnoyers over 12 years ago
- Status changed from New to Confirmed
- Assignee set to Mathieu Desnoyers
- Priority changed from Normal to High
Updated by Mathieu Desnoyers over 12 years ago
- Status changed from Confirmed to Resolved
Fixed by commits:
master branch:
commit 0658bdda04bf2b00a1a4a3fcb92bfd805d30fde9
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Wed Aug 22 17:09:20 2012 -0400
Fix: statedump: disable vm maps enumeration
We need the tasklist lock to correctly dump these, which is unavailable
to modules. Disable this feature for now.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 7b8ea3a503536c9d00f8bb14958a150cbf7370c0
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Wed Aug 22 16:30:20 2012 -0400
Fix: ensure userspace accesses are done with _inatomic
Otherwise, triggers scheduling while atomic (might_sleep()) warnings,
since we call those from a tracepoint probe (with preemption disabled).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
stable-2.0 branch:
commit 67ee762a41793b34750f655737e5fbe7f5be1dc5
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Wed Aug 22 17:09:20 2012 -0400
Fix: statedump: disable vm maps enumeration
We need the tasklist lock to correctly dump these, which is unavailable
to modules. Disable this feature for now.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit b8ec0e19b7c494de10aa3a008d6733ee6d5c6fc7
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Wed Aug 22 16:30:20 2012 -0400
Fix: ensure userspace accesses are done with _inatomic
Otherwise, triggers scheduling while atomic (might_sleep()) warnings,
since we call those from a tracepoint probe (with preemption disabled).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>