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-next-kasan-gce-3,10.128.0.54' (ECDSA) to the list of known hosts. 2017/11/12 11:06:13 parsed 1 programs 2017/11/12 11:06:13 executed programs: 0 syzkaller login: [ 44.033578] [ 44.033931] ====================================================== [ 44.034822] WARNING: possible circular locking dependency detected [ 44.035672] 4.14.0-rc8-next-20171110+ #40 Not tainted [ 44.036374] ------------------------------------------------------ [ 44.037204] syz-executor0/3068 is trying to acquire lock: [ 44.037933] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 44.039069] [ 44.039069] but task is already holding lock: [ 44.040110] (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 44.041222] [ 44.041222] which lock already depends on the new lock. [ 44.041222] [ 44.042310] [ 44.042310] the existing dependency chain (in reverse order) is: [ 44.043309] [ 44.043309] -> #7 (&mm->mmap_sem){++++}: [ 44.044064] lock_acquire+0x1d5/0x580 [ 44.044642] __might_fault+0x13a/0x1d0 [ 44.045230] _copy_to_user+0x2c/0xc0 [ 44.045806] filldir+0x1a7/0x320 [ 44.046326] dcache_readdir+0x12d/0x5e0 [ 44.046926] iterate_dir+0x1ca/0x540 [ 44.047491] SyS_getdents+0x225/0x450 [ 44.048078] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.048773] [ 44.048773] -> #6 (&sb->s_type->i_mutex_key#5){++++}: [ 44.049657] lockref_put_or_lock+0x19/0x80 [ 44.050352] [ 44.050352] -> #5 ((completion)&req.done){+.+.}: [ 44.051178] lock_acquire+0x1d5/0x580 [ 44.051790] wait_for_completion+0xcb/0x7b0 [ 44.052434] devtmpfs_create_node+0x32b/0x4a0 [ 44.053117] device_add+0x120f/0x1640 [ 44.053691] device_create_groups_vargs+0x1f3/0x250 [ 44.059132] device_create+0xda/0x110 [ 44.063422] msr_device_create+0x26/0x40 [ 44.067968] cpuhp_invoke_callback+0x2ea/0x1d20 [ 44.073122] cpuhp_thread_fun+0x48b/0x7e0 [ 44.077755] smpboot_thread_fn+0x450/0x7c0 [ 44.082472] kthread+0x37a/0x440 [ 44.086325] ret_from_fork+0x24/0x30 [ 44.090525] [ 44.090525] -> #4 (cpuhp_state-up){+.+.}: [ 44.096116] lock_acquire+0x1d5/0x580 [ 44.100401] cpuhp_issue_call+0x1e5/0x520 [ 44.105043] __cpuhp_setup_state_cpuslocked+0x2c7/0x5f0 [ 44.110890] __cpuhp_setup_state+0xb0/0x140 [ 44.115696] page_writeback_init+0x4d/0x71 [ 44.120415] pagecache_init+0x48/0x4f [ 44.124700] start_kernel+0x6bc/0x74f [ 44.128986] x86_64_start_reservations+0x2a/0x2c [ 44.134226] x86_64_start_kernel+0x77/0x7a [ 44.138947] secondary_startup_64+0xa5/0xb0 [ 44.143752] [ 44.143752] -> #3 (cpuhp_state_mutex){+.+.}: [ 44.149604] lock_acquire+0x1d5/0x580 [ 44.153889] __mutex_lock+0x16f/0x1a80 [ 44.158260] mutex_lock_nested+0x16/0x20 [ 44.162805] __cpuhp_setup_state_cpuslocked+0x5b/0x5f0 [ 44.168571] __cpuhp_setup_state+0xb0/0x140 [ 44.173381] kvm_guest_init+0x1f3/0x20f [ 44.177843] setup_arch+0x17c4/0x19de [ 44.182131] start_kernel+0xa5/0x74f [ 44.186334] x86_64_start_reservations+0x2a/0x2c [ 44.191573] x86_64_start_kernel+0x77/0x7a [ 44.196293] secondary_startup_64+0xa5/0xb0 [ 44.201097] [ 44.201097] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 44.207487] lock_acquire+0x1d5/0x580 [ 44.211782] cpus_read_lock+0x42/0x90 [ 44.216069] static_key_slow_inc+0x9d/0x3c0 [ 44.220875] tracepoint_probe_register_prio+0x80d/0x9a0 [ 44.226724] tracepoint_probe_register+0x2a/0x40 [ 44.231964] trace_event_reg+0x167/0x320 [ 44.236513] perf_trace_init+0x4ef/0xab0 [ 44.241068] perf_tp_event_init+0x7d/0xf0 [ 44.245702] perf_try_init_event+0xc9/0x1f0 [ 44.250510] perf_event_alloc+0x1cc6/0x2b00 [ 44.255319] SYSC_perf_event_open+0x842/0x2f10 [ 44.260389] SyS_perf_event_open+0x39/0x50 [ 44.265111] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.270349] [ 44.270349] -> #1 (tracepoints_mutex){+.+.}: [ 44.276204] lock_acquire+0x1d5/0x580 [ 44.280490] __mutex_lock+0x16f/0x1a80 [ 44.284864] mutex_lock_nested+0x16/0x20 [ 44.289408] tracepoint_probe_register_prio+0xa0/0x9a0 [ 44.295172] tracepoint_probe_register+0x2a/0x40 [ 44.300412] trace_event_reg+0x167/0x320 [ 44.304959] perf_trace_init+0x4ef/0xab0 [ 44.309507] perf_tp_event_init+0x7d/0xf0 [ 44.314141] perf_try_init_event+0xc9/0x1f0 [ 44.318947] perf_event_alloc+0x1cc6/0x2b00 [ 44.323753] SYSC_perf_event_open+0x842/0x2f10 [ 44.328820] SyS_perf_event_open+0x39/0x50 [ 44.333539] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.338775] [ 44.338775] -> #0 (event_mutex){+.+.}: [ 44.344110] __lock_acquire+0x33ad/0x4840 [ 44.348746] lock_acquire+0x1d5/0x580 [ 44.353033] __mutex_lock+0x16f/0x1a80 [ 44.357407] mutex_lock_nested+0x16/0x20 [ 44.361954] perf_trace_destroy+0x28/0x100 [ 44.366673] tp_perf_event_destroy+0x15/0x20 [ 44.371567] _free_event+0x3bd/0x10f0 [ 44.375851] put_event+0x24/0x30 [ 44.379702] perf_mmap_close+0x60d/0x1010 [ 44.384335] remove_vma+0xb4/0x1b0 [ 44.388361] do_munmap+0x82a/0xdf0 [ 44.392395] mmap_region+0x59e/0x15a0 [ 44.396680] do_mmap+0x6c6/0xe10 [ 44.400533] vm_mmap_pgoff+0x1de/0x280 [ 44.404907] SyS_mmap_pgoff+0x23b/0x5f0 [ 44.409366] SyS_mmap+0x16/0x20 [ 44.413130] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.418465] [ 44.418465] other info that might help us debug this: [ 44.418465] [ 44.426572] Chain exists of: [ 44.426572] event_mutex --> &sb->s_type->i_mutex_key#5 --> &mm->mmap_sem [ 44.426572] [ 44.437900] Possible unsafe locking scenario: [ 44.437900] [ 44.443922] CPU0 CPU1 [ 44.448553] ---- ---- [ 44.453194] lock(&mm->mmap_sem); [ 44.456696] lock(&sb->s_type->i_mutex_key#5); [ 44.463846] lock(&mm->mmap_sem); [ 44.469868] lock(event_mutex); [ 44.473200] [ 44.473200] *** DEADLOCK *** [ 44.473200] [ 44.479222] 1 lock held by syz-executor0/3068: [ 44.483765] #0: (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 44.492225] [ 44.492225] stack backtrace: [ 44.496686] CPU: 0 PID: 3068 Comm: syz-executor0 Not tainted 4.14.0-rc8-next-20171110+ #40 [ 44.505050] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.514376] Call Trace: [ 44.516931] dump_stack+0x194/0x257 [ 44.520523] ? arch_local_irq_restore+0x53/0x53 [ 44.525157] print_circular_bug+0x42d/0x610 [ 44.529444] ? save_stack_trace+0x1a/0x20 [ 44.533562] check_prev_add+0x8b1/0x1580 [ 44.537589] ? copy_trace+0x150/0x150 [ 44.541357] ? check_usage+0xb50/0xb50 [ 44.545211] ? __lock_acquire+0x33ad/0x4840 [ 44.549495] ? __lock_acquire+0x33ad/0x4840 [ 44.553783] __lock_acquire+0x33ad/0x4840 [ 44.557896] ? __lock_acquire+0x33ad/0x4840 [ 44.562187] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.567343] ? print_usage_bug+0x3f0/0x3f0 [ 44.571541] ? check_noncircular+0x20/0x20 [ 44.575741] ? __perf_event_task_sched_out+0x268/0x1400 [ 44.581071] ? perf_event_sync_stat+0x5b0/0x5b0 [ 44.585713] ? check_noncircular+0x20/0x20 [ 44.589911] ? __lock_acquire+0x6e2/0x4840 [ 44.594110] ? find_held_lock+0x39/0x1d0 [ 44.598832] ? print_usage_bug+0x3f0/0x3f0 [ 44.603032] ? check_noncircular+0x20/0x20 [ 44.607236] ? perf_event_detach_bpf_prog+0x92/0x3d0 [ 44.612307] lock_acquire+0x1d5/0x580 [ 44.616074] ? perf_trace_destroy+0x28/0x100 [ 44.620448] ? lock_release+0xd90/0xd90 [ 44.624388] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.630235] ? perf_event_detach_bpf_prog+0x92/0x3d0 [ 44.635304] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.640460] ? rcu_note_context_switch+0x710/0x710 [ 44.645354] ? __might_sleep+0x95/0x190 [ 44.649293] ? perf_trace_destroy+0x28/0x100 [ 44.653665] __mutex_lock+0x16f/0x1a80 [ 44.657516] ? perf_trace_destroy+0x28/0x100 [ 44.661888] ? find_held_lock+0x39/0x1d0 [ 44.665912] ? perf_trace_destroy+0x28/0x100 [ 44.670286] ? mutex_lock_io_nested+0x1900/0x1900 [ 44.675091] ? lock_downgrade+0x990/0x990 [ 44.679207] ? lock_acquire+0x1d5/0x580 [ 44.683148] ? perf_mmap_close+0x5cb/0x1010 [ 44.687433] ? lock_release+0xd90/0xd90 [ 44.691373] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.697221] ? perf_mmap_close+0x33f/0x1010 [ 44.701509] ? find_held_lock+0x39/0x1d0 [ 44.705537] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 44.710343] ? print_usage_bug+0x3f0/0x3f0 [ 44.714553] ? wait_for_completion+0x7b0/0x7b0 [ 44.719108] ? __wake_up_common_lock+0x190/0x310 [ 44.723830] ? check_noncircular+0x20/0x20 [ 44.728030] ? find_held_lock+0x39/0x1d0 [ 44.732054] ? perf_addr_filters_splice+0x18f/0x810 [ 44.737035] ? free_filters_list+0x2f0/0x2f0 [ 44.741419] ? mutex_unlock+0xd/0x10 [ 44.745098] ? __lock_is_held+0xbc/0x140 [ 44.749126] mutex_lock_nested+0x16/0x20 [ 44.753155] ? mutex_lock_nested+0x16/0x20 [ 44.757352] perf_trace_destroy+0x28/0x100 [ 44.761549] ? perf_tp_event_init+0xf0/0xf0 [ 44.765836] tp_perf_event_destroy+0x15/0x20 [ 44.770207] _free_event+0x3bd/0x10f0 [ 44.773975] ? ring_buffer_attach+0x830/0x830 [ 44.778435] ? wait_for_completion+0x7b0/0x7b0 [ 44.782984] ? ring_buffer_put+0x140/0x140 [ 44.787186] ? lock_release+0xd90/0xd90 [ 44.791224] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 44.796290] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 44.801359] put_event+0x24/0x30 [ 44.804691] perf_mmap_close+0x60d/0x1010 [ 44.808807] ? perf_compat_ioctl+0x70/0x70 [ 44.813005] ? save_stack+0x43/0xd0 [ 44.816597] ? check_noncircular+0x20/0x20 [ 44.820797] ? do_munmap+0x82a/0xdf0 [ 44.824485] ? mmap_region+0x59e/0x15a0 [ 44.828423] ? do_mmap+0x6c6/0xe10 [ 44.831926] ? SyS_mmap_pgoff+0x23b/0x5f0 [ 44.836039] ? SyS_mmap+0x16/0x20 [ 44.839456] ? entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.844350] ? unmap_region+0x35c/0x4f0 [ 44.848289] ? up_read+0x40/0x40 [ 44.851618] ? check_noncircular+0x20/0x20 [ 44.855819] ? print_usage_bug+0x3f0/0x3f0 [ 44.860018] ? reusable_anon_vma+0x560/0x560 [ 44.864391] ? __lock_is_held+0xbc/0x140 [ 44.868432] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.874282] ? rcu_note_context_switch+0x710/0x710 [ 44.879177] ? __might_sleep+0x95/0x190 [ 44.883114] ? perf_compat_ioctl+0x70/0x70 [ 44.887313] remove_vma+0xb4/0x1b0 [ 44.890819] do_munmap+0x82a/0xdf0 [ 44.894326] mmap_region+0x59e/0x15a0 [ 44.898091] ? SyS_brk+0x6f0/0x6f0 [ 44.901594] ? arch_get_unmapped_area_topdown+0xba/0x8a0 [ 44.907008] ? arch_get_unmapped_area+0x750/0x750 [ 44.911814] ? lock_acquire+0x1d5/0x580 [ 44.915751] ? vm_mmap_pgoff+0x198/0x280 [ 44.919780] ? filp_close+0x1a1/0x240 [ 44.923544] ? selinux_mmap_addr+0x1f/0xf0 [ 44.927743] ? security_mmap_addr+0x79/0xa0 [ 44.932030] ? get_unmapped_area+0x265/0x300 [ 44.936406] do_mmap+0x6c6/0xe10 [ 44.939739] ? mmap_region+0x15a0/0x15a0 [ 44.943773] ? vm_mmap_pgoff+0x198/0x280 [ 44.947800] ? down_read_killable+0x180/0x180 [ 44.952259] ? security_mmap_file+0x143/0x180 [ 44.956719] vm_mmap_pgoff+0x1de/0x280 [ 44.960571] ? vma_is_stack_for_current+0xa0/0xa0 [ 44.965378] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.969840] ? SyS_futex+0x269/0x390 [ 44.973518] SyS_mmap_pgoff+0x23b/0x5f0 [ 44.977458] ? find_mergeable_anon_vma+0xd0/0xd0 [ 44.982179] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.987170] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.991890] SyS_mmap+0x16/0x20 [ 44.995134] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.999862] RIP: 0033:0x452879 [ 45.003018] RSP: 002b:00007f2e67b8cbe8 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 45.010690] RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452879 [ 45.017925] RDX: 0000000000000003 RSI: 0000000000292000 RDI: 0000000020000000 [ 45.025160] RBP: 0000000000000086 R08: ffffffffffffffff R09: 0000000000000000