INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-mmots-kasan-gce-9,10.128.0.42' (ECDSA) to the list of known hosts. 2017/11/12 11:19:08 parsed 1 programs 2017/11/12 11:19:08 executed programs: 0 syzkaller login: [ 43.243621] [ 43.243992] ====================================================== [ 43.244870] WARNING: possible circular locking dependency detected [ 43.245721] 4.14.0-rc8-mm1+ #21 Not tainted [ 43.246361] ------------------------------------------------------ [ 43.247931] syz-executor0/3237 is trying to acquire lock: [ 43.248676] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 43.249807] [ 43.249807] but task is already holding lock: [ 43.250607] (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 43.251724] [ 43.251724] which lock already depends on the new lock. [ 43.251724] [ 43.252953] [ 43.252953] the existing dependency chain (in reverse order) is: [ 43.253949] [ 43.253949] -> #7 (&mm->mmap_sem){++++}: [ 43.254687] lock_acquire+0x1d5/0x580 [ 43.255274] __might_fault+0x13a/0x1d0 [ 43.255861] _copy_to_user+0x2c/0xc0 [ 43.256426] filldir+0x1a7/0x320 [ 43.256946] dcache_readdir+0x12d/0x5e0 [ 43.257555] iterate_dir+0x1ca/0x540 [ 43.258165] SyS_getdents+0x225/0x450 [ 43.258741] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 43.259496] [ 43.259496] -> #6 (&sb->s_type->i_mutex_key#5){++++}: [ 43.260391] handle_create+0x30c/0x760 [ 43.261029] [ 43.261029] -> #5 ((completion)&req.done){+.+.}: [ 43.261864] lock_acquire+0x1d5/0x580 [ 43.262521] wait_for_completion+0xcb/0x7b0 [ 43.263176] devtmpfs_create_node+0x32b/0x4a0 [ 43.264583] device_add+0x120f/0x1640 [ 43.268869] device_create_groups_vargs+0x1f3/0x250 [ 43.274371] device_create+0xda/0x110 [ 43.278671] msr_device_create+0x26/0x40 [ 43.283219] cpuhp_invoke_callback+0x2ea/0x1d20 [ 43.288374] cpuhp_thread_fun+0x48b/0x7e0 [ 43.293011] smpboot_thread_fn+0x450/0x7c0 [ 43.297741] kthread+0x37a/0x440 [ 43.301593] ret_from_fork+0x24/0x30 [ 43.305800] [ 43.305800] -> #4 (cpuhp_state-up){+.+.}: [ 43.311402] lock_acquire+0x1d5/0x580 [ 43.315685] cpuhp_issue_call+0x1e5/0x520 [ 43.320317] __cpuhp_setup_state_cpuslocked+0x282/0x600 [ 43.326165] __cpuhp_setup_state+0xb0/0x140 [ 43.330973] page_writeback_init+0x4d/0x71 [ 43.335692] pagecache_init+0x48/0x4f [ 43.339978] start_kernel+0x6bc/0x74f [ 43.344262] x86_64_start_reservations+0x2a/0x2c [ 43.349502] x86_64_start_kernel+0x77/0x7a [ 43.354221] secondary_startup_64+0xa5/0xb0 [ 43.359025] [ 43.359025] -> #3 (cpuhp_state_mutex){+.+.}: [ 43.364880] lock_acquire+0x1d5/0x580 [ 43.369165] __mutex_lock+0x16f/0x1a80 [ 43.373537] mutex_lock_nested+0x16/0x20 [ 43.378084] __cpuhp_setup_state_cpuslocked+0x5b/0x600 [ 43.383844] __cpuhp_setup_state+0xb0/0x140 [ 43.388652] kvm_guest_init+0x1f3/0x20f [ 43.393112] setup_arch+0x17c4/0x19de [ 43.397396] start_kernel+0xa5/0x74f [ 43.401596] x86_64_start_reservations+0x2a/0x2c [ 43.406837] x86_64_start_kernel+0x77/0x7a [ 43.411558] secondary_startup_64+0xa5/0xb0 [ 43.416363] [ 43.416363] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 43.422740] lock_acquire+0x1d5/0x580 [ 43.427028] cpus_read_lock+0x42/0x90 [ 43.431315] static_key_slow_inc+0x9d/0x3c0 [ 43.436124] tracepoint_probe_register_prio+0x80d/0x9a0 [ 43.441974] tracepoint_probe_register+0x2a/0x40 [ 43.447215] trace_event_reg+0x167/0x320 [ 43.451773] perf_trace_init+0x4ef/0xab0 [ 43.456321] perf_tp_event_init+0x7d/0xf0 [ 43.460954] perf_try_init_event+0xc9/0x1f0 [ 43.465761] perf_event_alloc+0x1cc6/0x2b00 [ 43.470584] SYSC_perf_event_open+0x842/0x2f10 [ 43.475651] SyS_perf_event_open+0x39/0x50 [ 43.480370] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 43.485607] [ 43.485607] -> #1 (tracepoints_mutex){+.+.}: [ 43.491462] lock_acquire+0x1d5/0x580 [ 43.495748] __mutex_lock+0x16f/0x1a80 [ 43.500125] mutex_lock_nested+0x16/0x20 [ 43.504672] tracepoint_probe_register_prio+0xa0/0x9a0 [ 43.510434] tracepoint_probe_register+0x2a/0x40 [ 43.515675] trace_event_reg+0x167/0x320 [ 43.520221] perf_trace_init+0x4ef/0xab0 [ 43.524767] perf_tp_event_init+0x7d/0xf0 [ 43.529398] perf_try_init_event+0xc9/0x1f0 [ 43.534213] perf_event_alloc+0x1cc6/0x2b00 [ 43.539021] SYSC_perf_event_open+0x842/0x2f10 [ 43.544087] SyS_perf_event_open+0x39/0x50 [ 43.548807] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 43.554047] [ 43.554047] -> #0 (event_mutex){+.+.}: [ 43.559384] __lock_acquire+0x3498/0x47f0 [ 43.564018] lock_acquire+0x1d5/0x580 [ 43.568304] __mutex_lock+0x16f/0x1a80 [ 43.572679] mutex_lock_nested+0x16/0x20 [ 43.577230] perf_trace_destroy+0x28/0x100 [ 43.581962] tp_perf_event_destroy+0x15/0x20 [ 43.586855] _free_event+0x3bd/0x10f0 [ 43.591147] put_event+0x24/0x30 [ 43.595000] perf_mmap_close+0x60d/0x1010 [ 43.599634] remove_vma+0xb4/0x1b0 [ 43.603659] do_munmap+0x82a/0xdf0 [ 43.607698] mmap_region+0x59e/0x15a0 [ 43.611985] do_mmap+0x6c6/0xe10 [ 43.615838] vm_mmap_pgoff+0x1de/0x280 [ 43.620210] SyS_mmap_pgoff+0x23b/0x5f0 [ 43.624672] SyS_mmap+0x16/0x20 [ 43.628439] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 43.633679] [ 43.633679] other info that might help us debug this: [ 43.633679] [ 43.641786] Chain exists of: [ 43.641786] event_mutex --> &sb->s_type->i_mutex_key#5 --> &mm->mmap_sem [ 43.641786] [ 43.653113] Possible unsafe locking scenario: [ 43.653113] [ 43.659135] CPU0 CPU1 [ 43.663767] ---- ---- [ 43.668397] lock(&mm->mmap_sem); [ 43.671902] lock(&sb->s_type->i_mutex_key#5); [ 43.679055] lock(&mm->mmap_sem); [ 43.685077] lock(event_mutex); [ 43.688408] [ 43.688408] *** DEADLOCK *** [ 43.688408] [ 43.694432] 1 lock held by syz-executor0/3237: [ 43.698989] #0: (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 43.707712] [ 43.707712] stack backtrace: [ 43.712175] CPU: 1 PID: 3237 Comm: syz-executor0 Not tainted 4.14.0-rc8-mm1+ #21 [ 43.719669] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.728986] Call Trace: [ 43.731541] dump_stack+0x194/0x257 [ 43.735137] ? arch_local_irq_restore+0x53/0x53 [ 43.739774] print_circular_bug+0x42d/0x610 [ 43.744062] ? save_stack_trace+0x1a/0x20 [ 43.748176] check_prev_add+0x666/0x15f0 [ 43.752203] ? copy_trace+0x150/0x150 [ 43.755969] ? check_usage+0xb60/0xb60 [ 43.759822] ? __lock_acquire+0x3498/0x47f0 [ 43.764108] ? __lock_acquire+0x3498/0x47f0 [ 43.768398] __lock_acquire+0x3498/0x47f0 [ 43.772510] ? __lock_acquire+0x3498/0x47f0 [ 43.776800] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.781954] ? print_usage_bug+0x3f0/0x3f0 [ 43.786154] ? check_noncircular+0x20/0x20 [ 43.790355] ? __perf_event_task_sched_out+0x268/0x1400 [ 43.795686] ? perf_event_sync_stat+0x5b0/0x5b0 [ 43.800323] ? check_noncircular+0x20/0x20 [ 43.804523] ? __lock_acquire+0x6e9/0x47f0 [ 43.808723] ? find_held_lock+0x39/0x1d0 [ 43.812748] ? print_usage_bug+0x3f0/0x3f0 [ 43.816950] ? check_noncircular+0x20/0x20 [ 43.821154] ? perf_event_detach_bpf_prog+0x92/0x3d0 [ 43.826224] lock_acquire+0x1d5/0x580 [ 43.829991] ? perf_trace_destroy+0x28/0x100 [ 43.834363] ? lock_release+0xda0/0xda0 [ 43.838303] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 43.844150] ? perf_event_detach_bpf_prog+0x92/0x3d0 [ 43.849218] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.854374] ? rcu_note_context_switch+0x710/0x710 [ 43.859268] ? __might_sleep+0x95/0x190 [ 43.863208] ? perf_trace_destroy+0x28/0x100 [ 43.867584] __mutex_lock+0x16f/0x1a80 [ 43.871438] ? perf_trace_destroy+0x28/0x100 [ 43.875809] ? find_held_lock+0x39/0x1d0 [ 43.879833] ? perf_trace_destroy+0x28/0x100 [ 43.884208] ? mutex_lock_io_nested+0x1900/0x1900 [ 43.889016] ? lock_downgrade+0x980/0x980 [ 43.893131] ? lock_acquire+0x1d5/0x580 [ 43.897069] ? perf_mmap_close+0x5cb/0x1010 [ 43.901355] ? lock_release+0xda0/0xda0 [ 43.905294] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 43.911144] ? perf_mmap_close+0x33f/0x1010 [ 43.915430] ? find_held_lock+0x39/0x1d0 [ 43.919453] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 43.924260] ? print_usage_bug+0x3f0/0x3f0 [ 43.928468] ? wait_for_completion+0x7b0/0x7b0 [ 43.933014] ? __wake_up_common_lock+0x190/0x310 [ 43.937735] ? check_noncircular+0x20/0x20 [ 43.941941] ? find_held_lock+0x39/0x1d0 [ 43.945971] ? perf_addr_filters_splice+0x18f/0x810 [ 43.950952] ? free_filters_list+0x2f0/0x2f0 [ 43.955327] ? mutex_unlock+0xd/0x10 [ 43.959006] ? __lock_is_held+0xbc/0x140 [ 43.963034] mutex_lock_nested+0x16/0x20 [ 43.967061] ? mutex_lock_nested+0x16/0x20 [ 43.971260] perf_trace_destroy+0x28/0x100 [ 43.975458] ? perf_tp_event_init+0xf0/0xf0 [ 43.979745] tp_perf_event_destroy+0x15/0x20 [ 43.984117] _free_event+0x3bd/0x10f0 [ 43.987884] ? ring_buffer_attach+0x830/0x830 [ 43.992344] ? wait_for_completion+0x7b0/0x7b0 [ 43.996890] ? ring_buffer_put+0x140/0x140 [ 44.001098] ? lock_release+0xda0/0xda0 [ 44.005038] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 44.010108] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 44.015181] put_event+0x24/0x30 [ 44.018511] perf_mmap_close+0x60d/0x1010 [ 44.022625] ? perf_compat_ioctl+0x70/0x70 [ 44.026825] ? save_stack+0x43/0xd0 [ 44.031439] ? check_noncircular+0x20/0x20 [ 44.035640] ? do_munmap+0x82a/0xdf0 [ 44.039315] ? mmap_region+0x59e/0x15a0 [ 44.043256] ? do_mmap+0x6c6/0xe10 [ 44.046760] ? SyS_mmap_pgoff+0x23b/0x5f0 [ 44.050874] ? SyS_mmap+0x16/0x20 [ 44.054295] ? entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.059189] ? unmap_region+0x35c/0x4f0 [ 44.063126] ? up_read+0x40/0x40 [ 44.066457] ? check_noncircular+0x20/0x20 [ 44.070659] ? print_usage_bug+0x3f0/0x3f0 [ 44.074858] ? reusable_anon_vma+0x560/0x560 [ 44.079232] ? __lock_is_held+0xbc/0x140 [ 44.083261] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.089113] ? rcu_note_context_switch+0x710/0x710 [ 44.094009] ? __might_sleep+0x95/0x190 [ 44.097949] ? perf_compat_ioctl+0x70/0x70 [ 44.102148] remove_vma+0xb4/0x1b0 [ 44.105653] do_munmap+0x82a/0xdf0 [ 44.109159] mmap_region+0x59e/0x15a0 [ 44.112925] ? SyS_brk+0x6f0/0x6f0 [ 44.116431] ? arch_get_unmapped_area_topdown+0xba/0x8a0 [ 44.121846] ? arch_get_unmapped_area+0x750/0x750 [ 44.126660] ? lock_acquire+0x1d5/0x580 [ 44.130600] ? vm_mmap_pgoff+0x198/0x280 [ 44.134629] ? filp_close+0x1a1/0x240 [ 44.138397] ? selinux_mmap_addr+0x1f/0xf0 [ 44.142595] ? security_mmap_addr+0x79/0xa0 [ 44.146882] ? get_unmapped_area+0x265/0x300 [ 44.151255] do_mmap+0x6c6/0xe10 [ 44.154587] ? mmap_region+0x15a0/0x15a0 [ 44.158613] ? vm_mmap_pgoff+0x198/0x280 [ 44.162648] ? down_read_killable+0x180/0x180 [ 44.167110] ? security_mmap_file+0x143/0x180 [ 44.171570] vm_mmap_pgoff+0x1de/0x280 [ 44.175423] ? vma_is_stack_for_current+0xa0/0xa0 [ 44.180228] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.184691] ? SyS_futex+0x269/0x390 [ 44.188369] SyS_mmap_pgoff+0x23b/0x5f0 [ 44.192310] ? find_mergeable_anon_vma+0xd0/0xd0 [ 44.197068] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.202051] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.206774] SyS_mmap+0x16/0x20 [ 44.210021] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.214742] RIP: 0033:0x452879 [ 44.217895] RSP: 002b:00007f45a3abbbe8 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 44.225570] RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452879 [ 44.232807] RDX: 0000000000000003 RSI: 0000000000292000 RDI: 0000000020000000 [ 44.240045] RBP: 0000000000000086 R08: ffffffffffffffff R09: 0000000000000000