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-8,10.128.0.18' (ECDSA) to the list of known hosts. 2017/08/24 09:06:06 parsed 1 programs 2017/08/24 09:06:06 executed programs: 0 syzkaller login: [ 36.900966] [ 36.902644] ====================================================== [ 36.908933] WARNING: possible circular locking dependency detected [ 36.915355] 4.13.0-rc6-next-20170824+ #8 Not tainted [ 36.920422] ------------------------------------------------------ [ 36.926707] syz-executor0/3166 is trying to acquire lock: [ 36.932217] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 36.940442] [ 36.940442] but task is already holding lock: [ 36.946388] (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 36.954414] [ 36.954414] which lock already depends on the new lock. [ 36.954414] [ 36.962701] [ 36.962701] the existing dependency chain (in reverse order) is: [ 36.970285] [ 36.970285] -> #7 (&mm->mmap_sem){++++}: [ 36.975803] __lock_acquire+0x3286/0x4620 [ 36.980446] lock_acquire+0x1d5/0x580 [ 36.984734] __might_fault+0x13a/0x1d0 [ 36.989108] _copy_to_user+0x2c/0xc0 [ 36.993311] filldir+0x1a7/0x320 [ 36.997176] dcache_readdir+0x12d/0x5e0 [ 37.001633] iterate_dir+0x4b2/0x5d0 [ 37.005841] SyS_getdents+0x225/0x450 [ 37.010137] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 37.015375] [ 37.015375] -> #6 (&sb->s_type->i_mutex_key#5){++++}: [ 37.022019] down_write+0x87/0x120 [ 37.026048] handle_create+0x30c/0x760 [ 37.030424] devtmpfsd+0x3eb/0x520 [ 37.034449] kthread+0x39c/0x470 [ 37.038305] ret_from_fork+0x2a/0x40 [ 37.042507] [ 37.042507] -> #5 ((complete)&req.done){+.+.}: [ 37.048546] __lock_acquire+0x3286/0x4620 [ 37.053178] lock_acquire+0x1d5/0x580 [ 37.057463] wait_for_completion+0xc8/0x770 [ 37.062273] devtmpfs_create_node+0x32b/0x4a0 [ 37.067253] device_add+0x120f/0x1640 [ 37.071538] device_create_groups_vargs+0x1f3/0x250 [ 37.077037] device_create+0xda/0x110 [ 37.081324] msr_device_create+0x26/0x40 [ 37.085871] cpuhp_invoke_callback+0x256/0x14d0 [ 37.091026] cpuhp_thread_fun+0x265/0x520 [ 37.095658] smpboot_thread_fn+0x489/0x850 [ 37.100379] kthread+0x39c/0x470 [ 37.104229] ret_from_fork+0x2a/0x40 [ 37.108427] [ 37.108427] -> #4 (cpuhp_state){+.+.}: [ 37.113763] __lock_acquire+0x3286/0x4620 [ 37.118397] lock_acquire+0x1d5/0x580 [ 37.122693] cpuhp_issue_call+0x1a2/0x3e0 [ 37.127326] __cpuhp_setup_state_cpuslocked+0x2e7/0x610 [ 37.133185] __cpuhp_setup_state+0xb0/0x140 [ 37.137997] page_writeback_init+0x4d/0x71 [ 37.142715] pagecache_init+0x48/0x4f [ 37.147009] start_kernel+0x71a/0x7ad [ 37.151303] x86_64_start_reservations+0x2a/0x2c [ 37.156553] x86_64_start_kernel+0x13c/0x149 [ 37.161448] verify_cpu+0x0/0xfb [ 37.165296] [ 37.165296] -> #3 (cpuhp_state_mutex){+.+.}: [ 37.171162] __lock_acquire+0x3286/0x4620 [ 37.175796] lock_acquire+0x1d5/0x580 [ 37.180083] __mutex_lock+0x16f/0x1870 [ 37.184456] mutex_lock_nested+0x16/0x20 [ 37.189013] __cpuhp_setup_state_cpuslocked+0x5b/0x610 [ 37.194774] __cpuhp_setup_state+0xb0/0x140 [ 37.199582] kvm_guest_init+0x1f3/0x20f [ 37.204043] setup_arch+0x1899/0x1ab3 [ 37.208329] start_kernel+0xa5/0x7ad [ 37.212622] x86_64_start_reservations+0x2a/0x2c [ 37.217863] x86_64_start_kernel+0x13c/0x149 [ 37.222756] verify_cpu+0x0/0xfb [ 37.226605] [ 37.226605] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 37.232983] __lock_acquire+0x3286/0x4620 [ 37.237616] lock_acquire+0x1d5/0x580 [ 37.241902] cpus_read_lock+0x42/0x90 [ 37.246192] static_key_slow_inc+0x9d/0x3c0 [ 37.251004] tracepoint_probe_register_prio+0x80d/0x9a0 [ 37.256852] tracepoint_probe_register+0x2a/0x40 [ 37.262097] trace_event_reg+0x167/0x320 [ 37.266646] perf_trace_init+0x504/0xab0 [ 37.271192] perf_tp_event_init+0x7d/0xf0 [ 37.275826] perf_try_init_event+0xc9/0x1f0 [ 37.280632] perf_event_alloc+0x1c5b/0x2a00 [ 37.285449] SYSC_perf_event_open+0x7f3/0x2d90 [ 37.290516] SyS_perf_event_open+0x39/0x50 [ 37.295247] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 37.300485] [ 37.300485] -> #1 (tracepoints_mutex){+.+.}: [ 37.306340] __lock_acquire+0x3286/0x4620 [ 37.310971] lock_acquire+0x1d5/0x580 [ 37.315254] __mutex_lock+0x16f/0x1870 [ 37.319624] mutex_lock_nested+0x16/0x20 [ 37.324170] tracepoint_probe_register_prio+0xa0/0x9a0 [ 37.329940] tracepoint_probe_register+0x2a/0x40 [ 37.335184] trace_event_reg+0x167/0x320 [ 37.339729] perf_trace_init+0x504/0xab0 [ 37.344273] perf_tp_event_init+0x7d/0xf0 [ 37.349529] perf_try_init_event+0xc9/0x1f0 [ 37.354334] perf_event_alloc+0x1c5b/0x2a00 [ 37.359141] SYSC_perf_event_open+0x7f3/0x2d90 [ 37.364219] SyS_perf_event_open+0x39/0x50 [ 37.368954] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 37.374192] [ 37.374192] -> #0 (event_mutex){+.+.}: [ 37.379525] check_prev_add+0x865/0x1520 [ 37.384071] __lock_acquire+0x3286/0x4620 [ 37.388713] lock_acquire+0x1d5/0x580 [ 37.393001] __mutex_lock+0x16f/0x1870 [ 37.397374] mutex_lock_nested+0x16/0x20 [ 37.401922] perf_trace_destroy+0x28/0x100 [ 37.406643] tp_perf_event_destroy+0x15/0x20 [ 37.411546] _free_event+0x401/0x1130 [ 37.415848] put_event+0x24/0x30 [ 37.419699] perf_mmap_close+0x60d/0xf90 [ 37.424246] remove_vma+0xb4/0x1b0 [ 37.428269] do_munmap+0x82a/0xdf0 [ 37.432292] mmap_region+0x59e/0x15a0 [ 37.436575] do_mmap+0x6a1/0xd50 [ 37.440438] vm_mmap_pgoff+0x1de/0x280 [ 37.444820] SyS_mmap_pgoff+0x23b/0x5f0 [ 37.449278] SyS_mmap+0x16/0x20 [ 37.453062] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 37.458311] [ 37.458311] other info that might help us debug this: [ 37.458311] [ 37.466427] Chain exists of: [ 37.466427] event_mutex --> &sb->s_type->i_mutex_key#5 --> &mm->mmap_sem [ 37.466427] [ 37.477762] Possible unsafe locking scenario: [ 37.477762] [ 37.483792] CPU0 CPU1 [ 37.488420] ---- ---- [ 37.493049] lock(&mm->mmap_sem); [ 37.496556] lock(&sb->s_type->i_mutex_key#5); [ 37.503706] lock(&mm->mmap_sem); [ 37.509724] lock(event_mutex); [ 37.513056] [ 37.513056] *** DEADLOCK *** [ 37.513056] [ 37.519078] 1 lock held by syz-executor0/3166: [ 37.523621] #0: (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 37.532090] [ 37.532090] stack backtrace: [ 37.536553] CPU: 0 PID: 3166 Comm: syz-executor0 Not tainted 4.13.0-rc6-next-20170824+ #8 [ 37.544828] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.554146] Call Trace: [ 37.556702] dump_stack+0x194/0x257 [ 37.560295] ? arch_local_irq_restore+0x53/0x53 [ 37.564948] print_circular_bug+0x503/0x710 [ 37.569239] ? print_circular_bug_entry+0xb0/0xb0 [ 37.574061] ? __unwind_start+0x169/0x330 [ 37.578186] check_prev_add+0x865/0x1520 [ 37.582211] ? copy_trace+0x1d0/0x1d0 [ 37.585985] ? check_usage+0xb70/0xb70 [ 37.589838] ? hlock_class+0x140/0x140 [ 37.593688] ? copy_trace+0x1d0/0x1d0 [ 37.597455] __lock_acquire+0x3286/0x4620 [ 37.601581] ? __lock_acquire+0x3286/0x4620 [ 37.605867] ? copy_trace+0x1d0/0x1d0 [ 37.609633] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 37.614799] ? __unwind_start+0x169/0x330 [ 37.618912] ? unwind_get_return_address+0x61/0xa0 [ 37.623808] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 37.629657] ? do_munmap+0x82a/0xdf0 [ 37.633344] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 37.639194] ? lock_downgrade+0x990/0x990 [ 37.643314] ? mmap_region+0x59e/0x15a0 [ 37.647255] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 37.652248] ? unwind_next_frame.part.6+0x1ae/0xc70 [ 37.657230] ? unwind_dump+0x4c0/0x4c0 [ 37.661082] ? unwind_dump+0x4c0/0x4c0 [ 37.664935] ? unwind_dump+0x4c0/0x4c0 [ 37.668794] ? __unwind_start+0x169/0x330 [ 37.672905] ? unwind_get_return_address+0x61/0xa0 [ 37.677797] ? __save_stack_trace+0x61/0xd0 [ 37.682092] ? check_noncircular+0x20/0x20 [ 37.686302] ? do_munmap+0x82a/0xdf0 [ 37.689990] ? save_stack_trace+0x16/0x20 [ 37.694102] ? __lock_acquire+0x20f4/0x4620 [ 37.698387] ? save_stack_trace+0x16/0x20 [ 37.702497] ? __lock_acquire+0x20f4/0x4620 [ 37.706794] lock_acquire+0x1d5/0x580 [ 37.710570] ? perf_trace_destroy+0x28/0x100 [ 37.714953] ? lock_release+0xd70/0xd70 [ 37.718893] ? check_same_owner+0x320/0x320 [ 37.723187] ? preempt_notifier_dec+0x20/0x20 [ 37.727648] ? rcu_note_context_switch+0x710/0x710 [ 37.732539] ? __might_sleep+0x95/0x190 [ 37.736481] ? perf_trace_destroy+0x28/0x100 [ 37.740857] __mutex_lock+0x16f/0x1870 [ 37.744707] ? perf_trace_destroy+0x28/0x100 [ 37.749080] ? __sched_text_start+0x8/0x8 [ 37.753277] ? perf_trace_destroy+0x28/0x100 [ 37.757649] ? mutex_lock_io_nested+0x1740/0x1740 [ 37.762456] ? lock_acquire+0x1d5/0x580 [ 37.766398] ? perf_mmap_close+0x5cb/0xf90 [ 37.770599] ? check_same_owner+0x320/0x320 [ 37.774895] ? check_noncircular+0x20/0x20 [ 37.779094] ? perf_mmap_close+0x33f/0xf90 [ 37.783302] ? check_noncircular+0x20/0x20 [ 37.787501] ? check_noncircular+0x20/0x20 [ 37.791703] ? print_usage_bug+0x480/0x480 [ 37.795916] ? __mutex_lock+0x16f/0x1870 [ 37.799941] ? perf_mmap_close+0x5cb/0xf90 [ 37.804144] ? print_usage_bug+0x480/0x480 [ 37.808365] ? find_held_lock+0x39/0x1d0 [ 37.812392] ? check_noncircular+0x20/0x20 [ 37.816591] ? perf_addr_filters_splice+0x18f/0x810 [ 37.821572] ? lock_downgrade+0x990/0x990 [ 37.825697] ? free_filters_list+0x2f0/0x2f0 [ 37.830073] ? __wake_up+0x1e/0x50 [ 37.833577] ? __lock_is_held+0xbc/0x140 [ 37.837604] mutex_lock_nested+0x16/0x20 [ 37.841628] ? mutex_lock_nested+0x16/0x20 [ 37.845828] perf_trace_destroy+0x28/0x100 [ 37.850026] ? perf_tp_event_init+0xf0/0xf0 [ 37.854315] tp_perf_event_destroy+0x15/0x20 [ 37.858699] _free_event+0x401/0x1130 [ 37.862464] ? ring_buffer_attach+0x830/0x830 [ 37.866935] ? wait_for_completion+0x770/0x770 [ 37.871482] ? ring_buffer_put+0x140/0x140 [ 37.875684] ? lock_release+0xd70/0xd70 [ 37.879624] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 37.884701] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 37.889780] put_event+0x24/0x30 [ 37.893113] perf_mmap_close+0x60d/0xf90 [ 37.897141] ? perf_compat_ioctl+0x70/0x70 [ 37.901344] ? save_stack_trace+0x16/0x20