Project

General

Profile

Bug #306 » BUG2.txt

might_sleep during syscalls - Steve Rotolo, 07/16/2012 03:48 PM

 
When doing "lttng enable-event -k --syscall -a":

BUG: sleeping function called from invalid context at include/linux/kernel.h:195
in_atomic(): 1, irqs_disabled(): 0, pid: 7640, name: cyclictest
no locks held by cyclictest/7640.
Pid: 7640, comm: cyclictest Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff812e3fa8>] strlen_user+0x2e/0x51
[<ffffffffa0366cca>] __event_probe__compat_sys_open+0x5d/0x132 [lttng_tracer]
[<ffffffff810d0829>] ? __trace_buffer_unlock_commit+0x40/0x59
[<ffffffffa0366c6d>] ? __event_probe__compat_sys_creat+0x10f/0x10f [lttng_tracer]
[<ffffffffa03671af>] syscall_entry_probe+0x159/0x20d [lttng_tracer]
[<ffffffff8101b09c>] ? ftrace_raw_event_sys_enter+0xa7/0xb6
[<ffffffff8101a344>] syscall_trace_enter+0xdb/0x1a3
[<ffffffff817963bd>] sysenter_tracesys+0x59/0xac

BUG: sleeping function called from invalid context at kernel/rwsem.c:21
in_atomic(): 0, irqs_disabled(): 0, pid: 7795, name: lttng-sessiond
2 locks held by lttng-sessiond/7795:
#0: (sessions_mutex){......}, at: [<ffffffffa0346174>] lttng_session_enable+0x1f/0xa4 [lttng_tracer]
#1: (rcu_read_lock){......}, at: [<ffffffffa0330086>] rcu_read_lock+0x0/0x35 [lttng_statedump]
Pid: 7795, comm: lttng-sessiond Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff8178c220>] down_read+0x26/0x91
[<ffffffffa03303c1>] lttng_enumerate_task_vm_maps+0x5d/0xe3 [lttng_statedump]
[<ffffffffa03306fb>] do_lttng_statedump+0xc8/0x2b0 [lttng_statedump]
[<ffffffff8178b29e>] ? printk+0x68/0x6a
[<ffffffffa033090a>] lttng_statedump_start+0x27/0x2b [lttng_statedump]
[<ffffffffa03461d6>] lttng_session_enable+0x81/0xa4 [lttng_tracer]
[<ffffffffa0346bd8>] lttng_session_ioctl+0x56/0x70 [lttng_tracer]
[<ffffffff8114d227>] do_vfs_ioctl+0x26a/0x286
[<ffffffff8113ee60>] ? rcu_read_unlock+0x21/0x23
[<ffffffff8113efc8>] ? fget_light+0xb6/0xc5
[<ffffffff8114d299>] sys_ioctl+0x56/0x79
[<ffffffff81794d10>] tracesys+0xdd/0xe2

BUG: sleeping function called from invalid context at include/linux/kernel.h:195
in_atomic(): 1, irqs_disabled(): 0, pid: 4980, name: dnsmasq
no locks held by dnsmasq/4980.
Pid: 4980, comm: dnsmasq Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff812e3fa8>] strlen_user+0x2e/0x51
[<ffffffffa03616e5>] __event_probe__sys_newstat+0x56/0x10f [lttng_tracer]
[<ffffffff810d0829>] ? __trace_buffer_unlock_commit+0x40/0x59
[<ffffffffa036168f>] ? __event_probe__sys_newlstat+0x10f/0x10f [lttng_tracer]
[<ffffffffa036717e>] syscall_entry_probe+0x128/0x20d [lttng_tracer]
[<ffffffff8101b09c>] ? ftrace_raw_event_sys_enter+0xa7/0xb6
[<ffffffff8101a344>] syscall_trace_enter+0xdb/0x1a3
[<ffffffff81794cb1>] tracesys+0x7e/0xe2

BUG: sleeping function called from invalid context at include/linux/kernel.h:195
in_atomic(): 1, irqs_disabled(): 0, pid: 4408, name: hald-addon-stor
no locks held by hald-addon-stor/4408.
Pid: 4408, comm: hald-addon-stor Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff812e3fa8>] strlen_user+0x2e/0x51
[<ffffffffa03617fb>] __event_probe__sys_open+0x5d/0x132 [lttng_tracer]
[<ffffffff810d0829>] ? __trace_buffer_unlock_commit+0x40/0x59
[<ffffffffa036179e>] ? __event_probe__sys_newstat+0x10f/0x10f [lttng_tracer]
[<ffffffffa03671af>] syscall_entry_probe+0x159/0x20d [lttng_tracer]
[<ffffffff8101b09c>] ? ftrace_raw_event_sys_enter+0xa7/0xb6
[<ffffffff8101a344>] syscall_trace_enter+0xdb/0x1a3
[<ffffffff81794cb1>] tracesys+0x7e/0xe2

BUG: sleeping function called from invalid context at include/linux/kernel.h:195
in_atomic(): 1, irqs_disabled(): 0, pid: 5201, name: gnome-settings-
no locks held by gnome-settings-/5201.
Pid: 5201, comm: gnome-settings- Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff812e3fa8>] strlen_user+0x2e/0x51
[<ffffffffa035e3e1>] __event_probe__sys_inotify_add_watch+0x67/0x12c [lttng_tracer]
[<ffffffff810d0829>] ? __trace_buffer_unlock_commit+0x40/0x59
[<ffffffffa035e37a>] ? __event_probe__sys_openat+0x15d/0x15d [lttng_tracer]
[<ffffffffa03671af>] syscall_entry_probe+0x159/0x20d [lttng_tracer]
[<ffffffff8101b09c>] ? ftrace_raw_event_sys_enter+0xa7/0xb6
[<ffffffff8101a344>] syscall_trace_enter+0xdb/0x1a3
[<ffffffff81794cb1>] tracesys+0x7e/0xe2

BUG: sleeping function called from invalid context at include/linux/kernel.h:195
in_atomic(): 1, irqs_disabled(): 0, pid: 4546, name: sendmail
no locks held by sendmail/4546.
Pid: 4546, comm: sendmail Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff812e3fa8>] strlen_user+0x2e/0x51
[<ffffffffa03617fb>] __event_probe__sys_open+0x5d/0x132 [lttng_tracer]
[<ffffffff810d0829>] ? __trace_buffer_unlock_commit+0x40/0x59
[<ffffffffa036179e>] ? __event_probe__sys_newstat+0x10f/0x10f [lttng_tracer]
[<ffffffffa03671af>] syscall_entry_probe+0x159/0x20d [lttng_tracer]
[<ffffffff8101b09c>] ? ftrace_raw_event_sys_enter+0xa7/0xb6
[<ffffffff8101a344>] syscall_trace_enter+0xdb/0x1a3
[<ffffffff81794cb1>] tracesys+0x7e/0xe2

BUG: sleeping function called from invalid context at include/linux/kernel.h:195
in_atomic(): 1, irqs_disabled(): 0, pid: 5201, name: gnome-settings-
no locks held by gnome-settings-/5201.
Pid: 5201, comm: gnome-settings- Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff812e3fa8>] strlen_user+0x2e/0x51
[<ffffffffa035e3e1>] __event_probe__sys_inotify_add_watch+0x67/0x12c [lttng_tracer]
[<ffffffff810d0829>] ? __trace_buffer_unlock_commit+0x40/0x59
[<ffffffffa035e37a>] ? __event_probe__sys_openat+0x15d/0x15d [lttng_tracer]
[<ffffffffa03671af>] syscall_entry_probe+0x159/0x20d [lttng_tracer]
[<ffffffff8101b09c>] ? ftrace_raw_event_sys_enter+0xa7/0xb6
[<ffffffff8101a344>] syscall_trace_enter+0xdb/0x1a3
[<ffffffff81794cb1>] tracesys+0x7e/0xe2

BUG: sleeping function called from invalid context at include/linux/kernel.h:195
in_atomic(): 1, irqs_disabled(): 0, pid: 7949, name: bash
no locks held by bash/7949.
Pid: 7949, comm: bash Tainted: G O 3.3.8 #1
Call Trace:
[<ffffffff8106eb8c>] __might_sleep+0x114/0x118
[<ffffffff812e3fa8>] strlen_user+0x2e/0x51
[<ffffffffa036139a>] __event_probe__sys_execve+0x5e/0x135 [lttng_tracer]
[<ffffffff810d0829>] ? __trace_buffer_unlock_commit+0x40/0x59
[<ffffffffa036133c>] ? __event_probe__sys_truncate+0x10f/0x10f [lttng_tracer]
[<ffffffffa03671af>] syscall_entry_probe+0x159/0x20d [lttng_tracer]
[<ffffffff8101b09c>] ? ftrace_raw_event_sys_enter+0xa7/0xb6
[<ffffffff8101a344>] syscall_trace_enter+0xdb/0x1a3
[<ffffffff81794cb1>] tracesys+0x7e/0xe2

(2-2/3)