[ 72.027124] ====================================================== [ 72.027617] [ INFO: possible circular locking dependency detected ] [ 72.027617] 3.5.0-rc4+ #145 Not tainted [ 72.027617] ------------------------------------------------------- [ 72.027617] systemd-shutdow/1 is trying to acquire lock: [ 72.027617] (cgroup_mutex){+.+.+.}, at: [] cgroup_lock+0x17/0x19 [ 72.027617] [ 72.027617] but task is already holding lock: [ 72.027617] (cpu_hotplug.lock){+.+.+.}, at: [] cpu_hotplug_begin+0x2c/0x53 [ 72.027617] [ 72.027617] which lock already depends on the new lock. [ 72.027617] [ 72.027617] [ 72.027617] the existing dependency chain (in reverse order) is: [ 72.027617] [ 72.027617] -> #4 (cpu_hotplug.lock){+.+.+.}: [ 72.027617] [] lock_acquire+0x8c/0xfc [ 72.027617] [] __mutex_lock_common+0x47/0x344 [ 72.027617] [] mutex_lock_nested+0x2f/0x36 [ 72.027617] [] get_online_cpus+0x2e/0x42 [ 72.027617] [] arch_jump_label_transform+0x17/0x4d [ 72.027617] [] __jump_label_update+0x3a/0x52 [ 72.027617] [] jump_label_update+0x8f/0x9b [ 72.027617] [] static_key_slow_inc+0x49/0x5d [ 72.027617] [] activate_jump_labels+0x19/0x35 [ 72.027617] [] do_one_initcall+0x7f/0x13a [ 72.027617] [] kernel_init+0x157/0x1db [ 72.027617] [] kernel_thread_helper+0x4/0x10 [ 72.027617] [ 72.027617] -> #3 (jump_label_mutex){+.+...}: [ 72.027617] [] lock_acquire+0x8c/0xfc [ 72.027617] [] __mutex_lock_common+0x47/0x344 [ 72.027617] [] mutex_lock_nested+0x2f/0x36 [ 72.027617] [] jump_label_lock+0x17/0x19 [ 72.027617] [] static_key_slow_inc+0x50/0x5d [ 72.027617] [] net_enable_timestamp+0x5d/0x61 [ 72.027617] [] sock_enable_timestamp+0x36/0x3b [ 72.027617] [] sock_setsockopt+0x363/0x57a [ 72.027617] [] sys_setsockopt+0x6d/0xa6 [ 72.027617] [] system_call_fastpath+0x16/0x1b [ 72.027617] [ 72.027617] -> #2 (sk_lock-AF_INET){+.+.+.}: [ 72.027617] [] lock_acquire+0x8c/0xfc [ 72.027617] [] lock_sock_nested+0x70/0x80 [ 72.027617] [] lock_sock+0xb/0xd [ 72.027617] [] tcp_close+0x1e/0x303 [ 72.027617] [] inet_release+0xc2/0xcd [ 72.027617] [] sock_release+0x1f/0x74 [ 72.027617] [] sock_close+0x27/0x2b [ 72.027617] [] fput+0x10b/0x20a [ 72.027617] [] filp_close+0x6f/0x7a [ 72.027617] [] sys_close+0xdb/0x11a [ 72.027617] [] setup_new_exec+0x286/0x2b2 [ 72.027617] [] load_elf_binary+0x343/0x1813 [ 72.027617] [] search_binary_handler+0xd3/0x2d3 [ 72.027617] [] do_execve_common.isra.31+0x296/0x393 [ 72.027617] [] do_execve+0x1b/0x1d [ 72.027617] [] sys_execve+0x43/0x5a [ 72.027617] [] stub_execve+0x6c/0xc0 [ 72.027617] [ 72.027617] -> #1 (&sig->cred_guard_mutex){+.+.+.}: [ 72.027617] [] lock_acquire+0x8c/0xfc [ 72.027617] [] __mutex_lock_common+0x47/0x344 [ 72.027617] [] mutex_lock_nested+0x2f/0x36 [ 72.027617] [] attach_task_by_pid+0x14d/0x4d1 [ 72.027617] [] cgroup_tasks_write+0x13/0x15 [ 72.027617] [] cgroup_file_write+0x101/0x25f [ 72.027617] [] vfs_write+0xa0/0x102 [ 72.027617] [] sys_write+0x43/0x70 [ 72.027617] [] system_call_fastpath+0x16/0x1b [ 72.027617] [ 72.027617] -> #0 (cgroup_mutex){+.+.+.}: [ 72.027617] [] __lock_acquire+0x9b0/0xd0c [ 72.027617] [] lock_acquire+0x8c/0xfc [ 72.027617] [] __mutex_lock_common+0x47/0x344 [ 72.027617] [] mutex_lock_nested+0x2f/0x36 [ 72.027617] [] cgroup_lock+0x17/0x19 [ 72.027617] [] cpuset_update_active_cpus+0x13/0x6f [ 72.027617] [] cpuset_cpu_inactive+0x1a/0x23 [ 72.027617] [] notifier_call_chain+0x6c/0x97 [ 72.027617] [] __raw_notifier_call_chain+0xe/0x10 [ 72.027617] [] __cpu_notify+0x20/0x37 [ 72.027617] [] _cpu_down+0x7d/0x240 [ 72.027617] [] disable_nonboot_cpus+0x67/0x11b [ 72.027617] [] kernel_power_off+0x48/0x6c [ 72.027617] [] sys_reboot+0x137/0x1ca [ 72.027617] [] system_call_fastpath+0x16/0x1b [ 72.027617] [ 72.027617] other info that might help us debug this: [ 72.027617] [ 72.027617] Chain exists of: [ 72.027617] cgroup_mutex --> jump_label_mutex --> cpu_hotplug.lock [ 72.027617] [ 72.027617] Possible unsafe locking scenario: [ 72.027617] [ 72.027617] CPU0 CPU1 [ 72.027617] ---- ---- [ 72.027617] lock(cpu_hotplug.lock); [ 72.027617] lock(jump_label_mutex); [ 72.027617] lock(cpu_hotplug.lock); [ 72.027617] lock(cgroup_mutex); [ 72.027617] [ 72.027617] *** DEADLOCK *** [ 72.027617] [ 72.027617] 3 locks held by systemd-shutdow/1: [ 72.027617] #0: (reboot_mutex){+.+.+.}, at: [] sys_reboot+0xc2/0x1ca [ 72.027617] #1: (cpu_add_remove_lock){+.+.+.}, at: [] cpu_maps_update_begin+0x17/0x19 [ 72.027617] #2: (cpu_hotplug.lock){+.+.+.}, at: [] cpu_hotplug_begin+0x2c/0x53 [ 72.027617] [ 72.027617] stack backtrace: [ 72.027617] Pid: 1, comm: systemd-shutdow Not tainted 3.5.0-rc4+ #145 [ 72.027617] Call Trace: [ 72.027617] [] print_circular_bug+0x1f8/0x209 [ 72.027617] [] __lock_acquire+0x9b0/0xd0c [ 72.027617] [] ? _raw_spin_unlock_irq+0x2d/0x36 [ 72.027617] [] lock_acquire+0x8c/0xfc [ 72.027617] [] ? cgroup_lock+0x17/0x19 [ 72.027617] [] __mutex_lock_common+0x47/0x344 [ 72.027617] [] ? cgroup_lock+0x17/0x19 [ 72.027617] [] ? cgroup_lock+0x17/0x19 [ 72.027617] [] mutex_lock_nested+0x2f/0x36 [ 72.027617] [] ? __bitmap_weight+0x33/0x7f [ 72.027617] [] cgroup_lock+0x17/0x19 [ 72.027617] [] cpuset_update_active_cpus+0x13/0x6f [ 72.027617] [] cpuset_cpu_inactive+0x1a/0x23 [ 72.027617] [] notifier_call_chain+0x6c/0x97 [ 72.027617] [] __raw_notifier_call_chain+0xe/0x10 [ 72.027617] [] __cpu_notify+0x20/0x37 [ 72.027617] [] _cpu_down+0x7d/0x240 [ 72.027617] [] ? printk+0x61/0x63 [ 72.027617] [] disable_nonboot_cpus+0x67/0x11b [ 72.027617] [] kernel_power_off+0x48/0x6c [ 72.027617] [] sys_reboot+0x137/0x1ca [ 72.027617] [] ? lock_acquire+0xa8/0xfc [ 72.027617] [] ? iterate_supers+0x83/0xc4 [ 72.027617] [] ? _raw_spin_unlock_bh+0x31/0x35 [ 72.027617] [] ? lock_release+0x160/0x1a7 [ 72.027617] [] ? sysret_check+0x22/0x5d [ 72.027617] [] ? trace_hardirqs_on_caller+0x117/0x173 [ 72.027617] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 72.027617] [] system_call_fastpath+0x16/0x1b