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.34' (ECDSA) to the list of known hosts. 2017/11/10 14:19:28 parsed 1 programs 2017/11/10 14:19:28 executed programs: 0 syzkaller login: [ 33.699649] [ 33.699996] ====================================================== [ 33.700827] WARNING: possible circular locking dependency detected [ 33.701657] 4.14.0-rc8-next-20171110+ #40 Not tainted [ 33.702383] ------------------------------------------------------ [ 33.703264] syz-executor0/3112 is trying to acquire lock: [ 33.704003] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 33.705142] [ 33.705142] but task is already holding lock: [ 33.705926] (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 33.706985] [ 33.706985] which lock already depends on the new lock. [ 33.706985] [ 33.708072] [ 33.708072] the existing dependency chain (in reverse order) is: [ 33.709067] [ 33.709067] -> #7 (&mm->mmap_sem){++++}: [ 33.709822] lock_acquire+0x1d5/0x580 [ 33.710397] __might_fault+0x13a/0x1d0 [ 33.710985] _copy_to_user+0x2c/0xc0 [ 33.711550] filldir+0x1a7/0x320 [ 33.712071] dcache_readdir+0x12d/0x5e0 [ 33.712682] iterate_dir+0x1ca/0x540 [ 33.713246] SyS_getdents+0x225/0x450 [ 33.713826] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.714519] [ 33.714519] -> #6 (&sb->s_type->i_mutex_key#5){++++}: [ 33.715402] __schedule+0x24e/0x2060 [ 33.715963] [ 33.715963] -> #5 ((completion)&req.done){+.+.}: [ 33.716815] lock_acquire+0x1d5/0x580 [ 33.717420] wait_for_completion+0xcb/0x7b0 [ 33.718073] devtmpfs_create_node+0x32b/0x4a0 [ 33.718737] device_add+0x120f/0x1640 [ 33.719310] device_create_groups_vargs+0x1f3/0x250 [ 33.720051] device_create+0xda/0x110 [ 33.724341] msr_device_create+0x26/0x40 [ 33.728887] cpuhp_invoke_callback+0x2ea/0x1d20 [ 33.734042] cpuhp_thread_fun+0x48b/0x7e0 [ 33.738676] smpboot_thread_fn+0x450/0x7c0 [ 33.743395] kthread+0x37a/0x440 [ 33.747248] ret_from_fork+0x24/0x30 [ 33.751446] [ 33.751446] -> #4 (cpuhp_state-up){+.+.}: [ 33.757053] lock_acquire+0x1d5/0x580 [ 33.761344] cpuhp_issue_call+0x1e5/0x520 [ 33.765976] __cpuhp_setup_state_cpuslocked+0x2c7/0x5f0 [ 33.771831] __cpuhp_setup_state+0xb0/0x140 [ 33.776639] page_writeback_init+0x4d/0x71 [ 33.781368] pagecache_init+0x48/0x4f [ 33.785654] start_kernel+0x6bc/0x74f [ 33.789939] x86_64_start_reservations+0x2a/0x2c [ 33.795184] x86_64_start_kernel+0x77/0x7a [ 33.799906] secondary_startup_64+0xa5/0xb0 [ 33.804714] [ 33.804714] -> #3 (cpuhp_state_mutex){+.+.}: [ 33.810573] lock_acquire+0x1d5/0x580 [ 33.814870] __mutex_lock+0x16f/0x1a80 [ 33.819263] mutex_lock_nested+0x16/0x20 [ 33.823821] __cpuhp_setup_state_cpuslocked+0x5b/0x5f0 [ 33.829585] __cpuhp_setup_state+0xb0/0x140 [ 33.834393] kvm_guest_init+0x1f3/0x20f [ 33.838850] setup_arch+0x17c4/0x19de [ 33.843136] start_kernel+0xa5/0x74f [ 33.847333] x86_64_start_reservations+0x2a/0x2c [ 33.852573] x86_64_start_kernel+0x77/0x7a [ 33.857296] secondary_startup_64+0xa5/0xb0 [ 33.862100] [ 33.862100] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 33.868482] lock_acquire+0x1d5/0x580 [ 33.872765] cpus_read_lock+0x42/0x90 [ 33.877050] static_key_slow_inc+0x9d/0x3c0 [ 33.881858] tracepoint_probe_register_prio+0x80d/0x9a0 [ 33.887703] tracepoint_probe_register+0x2a/0x40 [ 33.892945] trace_event_reg+0x167/0x320 [ 33.897489] perf_trace_init+0x4ef/0xab0 [ 33.902034] perf_tp_event_init+0x7d/0xf0 [ 33.906667] perf_try_init_event+0xc9/0x1f0 [ 33.911471] perf_event_alloc+0x1cc6/0x2b00 [ 33.916276] SYSC_perf_event_open+0x842/0x2f10 [ 33.921343] SyS_perf_event_open+0x39/0x50 [ 33.926066] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.931306] [ 33.931306] -> #1 (tracepoints_mutex){+.+.}: [ 33.937160] lock_acquire+0x1d5/0x580 [ 33.941445] __mutex_lock+0x16f/0x1a80 [ 33.945817] mutex_lock_nested+0x16/0x20 [ 33.950365] tracepoint_probe_register_prio+0xa0/0x9a0 [ 33.956125] tracepoint_probe_register+0x2a/0x40 [ 33.961364] trace_event_reg+0x167/0x320 [ 33.965908] perf_trace_init+0x4ef/0xab0 [ 33.970452] perf_tp_event_init+0x7d/0xf0 [ 33.975081] perf_try_init_event+0xc9/0x1f0 [ 33.979885] perf_event_alloc+0x1cc6/0x2b00 [ 33.984690] SYSC_perf_event_open+0x842/0x2f10 [ 33.989764] SyS_perf_event_open+0x39/0x50 [ 33.994481] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.999717] [ 33.999717] -> #0 (event_mutex){+.+.}: [ 34.005049] __lock_acquire+0x33ad/0x4840 [ 34.009679] lock_acquire+0x1d5/0x580 [ 34.013963] __mutex_lock+0x16f/0x1a80 [ 34.018336] mutex_lock_nested+0x16/0x20 [ 34.022893] perf_trace_destroy+0x28/0x100 [ 34.027612] tp_perf_event_destroy+0x15/0x20 [ 34.032506] _free_event+0x3bd/0x10f0 [ 34.036789] put_event+0x24/0x30 [ 34.040639] perf_mmap_close+0x60d/0x1010 [ 34.045275] remove_vma+0xb4/0x1b0 [ 34.049300] do_munmap+0x82a/0xdf0 [ 34.053324] mmap_region+0x59e/0x15a0 [ 34.057607] do_mmap+0x6c6/0xe10 [ 34.061457] vm_mmap_pgoff+0x1de/0x280 [ 34.065827] SyS_mmap_pgoff+0x23b/0x5f0 [ 34.070287] SyS_mmap+0x16/0x20 [ 34.074052] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.079291] [ 34.079291] other info that might help us debug this: [ 34.079291] [ 34.087394] Chain exists of: [ 34.087394] event_mutex --> &sb->s_type->i_mutex_key#5 --> &mm->mmap_sem [ 34.087394] [ 34.098807] Possible unsafe locking scenario: [ 34.098807] [ 34.104827] CPU0 CPU1 [ 34.109458] ---- ---- [ 34.114086] lock(&mm->mmap_sem); [ 34.117589] lock(&sb->s_type->i_mutex_key#5); [ 34.124738] lock(&mm->mmap_sem); [ 34.130757] lock(event_mutex); [ 34.134087] [ 34.134087] *** DEADLOCK *** [ 34.134087] [ 34.140125] 1 lock held by syz-executor0/3112: [ 34.144667] #0: (&mm->mmap_sem){++++}, at: [] vm_mmap_pgoff+0x198/0x280 [ 34.153126] [ 34.153126] stack backtrace: [ 34.157587] CPU: 1 PID: 3112 Comm: syz-executor0 Not tainted 4.14.0-rc8-next-20171110+ #40 [ 34.165961] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.175282] Call Trace: [ 34.177841] dump_stack+0x194/0x257 [ 34.181432] ? arch_local_irq_restore+0x53/0x53 [ 34.186067] print_circular_bug+0x42d/0x610 [ 34.190353] ? save_stack_trace+0x1a/0x20 [ 34.194467] check_prev_add+0x8b1/0x1580 [ 34.198508] ? copy_trace+0x150/0x150 [ 34.202274] ? check_usage+0xb50/0xb50 [ 34.206125] ? __lock_acquire+0x33ad/0x4840 [ 34.210408] ? __lock_acquire+0x33ad/0x4840 [ 34.214696] __lock_acquire+0x33ad/0x4840 [ 34.218805] ? __lock_acquire+0x33ad/0x4840 [ 34.223094] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.228247] ? print_usage_bug+0x3f0/0x3f0 [ 34.232444] ? check_noncircular+0x20/0x20 [ 34.236645] ? __perf_event_task_sched_out+0x268/0x1400 [ 34.241973] ? perf_event_sync_stat+0x5b0/0x5b0 [ 34.246606] ? check_noncircular+0x20/0x20 [ 34.250804] ? __lock_acquire+0x6e2/0x4840 [ 34.254999] ? find_held_lock+0x39/0x1d0 [ 34.259023] ? print_usage_bug+0x3f0/0x3f0 [ 34.263218] ? check_noncircular+0x20/0x20 [ 34.267418] ? perf_event_detach_bpf_prog+0x92/0x3d0 [ 34.272488] lock_acquire+0x1d5/0x580 [ 34.276255] ? perf_trace_destroy+0x28/0x100 [ 34.280626] ? lock_release+0xd90/0xd90 [ 34.284563] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 34.290410] ? perf_event_detach_bpf_prog+0x92/0x3d0 [ 34.295477] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.300631] ? rcu_note_context_switch+0x710/0x710 [ 34.305524] ? __might_sleep+0x95/0x190 [ 34.309464] ? perf_trace_destroy+0x28/0x100 [ 34.313834] __mutex_lock+0x16f/0x1a80 [ 34.317685] ? perf_trace_destroy+0x28/0x100 [ 34.322054] ? find_held_lock+0x39/0x1d0 [ 34.326079] ? perf_trace_destroy+0x28/0x100 [ 34.330450] ? mutex_lock_io_nested+0x1900/0x1900 [ 34.335253] ? lock_downgrade+0x990/0x990 [ 34.339364] ? lock_acquire+0x1d5/0x580 [ 34.343301] ? perf_mmap_close+0x5cb/0x1010 [ 34.347590] ? lock_release+0xd90/0xd90 [ 34.351526] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 34.357372] ? perf_mmap_close+0x33f/0x1010 [ 34.361660] ? find_held_lock+0x39/0x1d0 [ 34.365687] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 34.370509] ? print_usage_bug+0x3f0/0x3f0 [ 34.374719] ? wait_for_completion+0x7b0/0x7b0 [ 34.379273] ? __wake_up_common_lock+0x190/0x310 [ 34.383998] ? check_noncircular+0x20/0x20 [ 34.388205] ? find_held_lock+0x39/0x1d0 [ 34.392239] ? perf_addr_filters_splice+0x18f/0x810 [ 34.397224] ? free_filters_list+0x2f0/0x2f0 [ 34.401600] ? mutex_unlock+0xd/0x10 [ 34.405280] ? __lock_is_held+0xbc/0x140 [ 34.409308] mutex_lock_nested+0x16/0x20 [ 34.413334] ? mutex_lock_nested+0x16/0x20 [ 34.417536] perf_trace_destroy+0x28/0x100 [ 34.421734] ? perf_tp_event_init+0xf0/0xf0 [ 34.426022] tp_perf_event_destroy+0x15/0x20 [ 34.430397] _free_event+0x3bd/0x10f0 [ 34.434162] ? ring_buffer_attach+0x830/0x830 [ 34.438622] ? wait_for_completion+0x7b0/0x7b0 [ 34.443168] ? ring_buffer_put+0x140/0x140 [ 34.447367] ? lock_release+0xd90/0xd90 [ 34.451305] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 34.456370] ? atomic_dec_and_mutex_lock+0x112/0x150 [ 34.461438] put_event+0x24/0x30 [ 34.464768] perf_mmap_close+0x60d/0x1010 [ 34.468881] ? perf_compat_ioctl+0x70/0x70 [ 34.473085] ? save_stack+0x43/0xd0 [ 34.476674] ? check_noncircular+0x20/0x20 [ 34.480883] ? do_munmap+0x82a/0xdf0 [ 34.484565] ? mmap_region+0x59e/0x15a0 [ 34.488508] ? do_mmap+0x6c6/0xe10 [ 34.492015] ? SyS_mmap_pgoff+0x23b/0x5f0 [ 34.496130] ? SyS_mmap+0x16/0x20 [ 34.499550] ? entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.504443] ? unmap_region+0x35c/0x4f0 [ 34.508381] ? up_read+0x40/0x40 [ 34.511710] ? check_noncircular+0x20/0x20 [ 34.515918] ? print_usage_bug+0x3f0/0x3f0 [ 34.520119] ? reusable_anon_vma+0x560/0x560 [ 34.524494] ? __lock_is_held+0xbc/0x140 [ 34.528524] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 34.534375] ? rcu_note_context_switch+0x710/0x710 [ 34.539266] ? __might_sleep+0x95/0x190 [ 34.543208] ? perf_compat_ioctl+0x70/0x70 [ 34.547405] remove_vma+0xb4/0x1b0 [ 34.550908] do_munmap+0x82a/0xdf0 [ 34.554414] mmap_region+0x59e/0x15a0 [ 34.558179] ? SyS_brk+0x6f0/0x6f0 [ 34.561684] ? arch_get_unmapped_area_topdown+0xba/0x8a0 [ 34.567098] ? arch_get_unmapped_area+0x750/0x750 [ 34.571902] ? lock_acquire+0x1d5/0x580 [ 34.575841] ? vm_mmap_pgoff+0x198/0x280 [ 34.579868] ? filp_close+0x1a1/0x240 [ 34.583632] ? selinux_mmap_addr+0x1f/0xf0 [ 34.587828] ? security_mmap_addr+0x79/0xa0 [ 34.592112] ? get_unmapped_area+0x265/0x300 [ 34.596486] do_mmap+0x6c6/0xe10 [ 34.599817] ? mmap_region+0x15a0/0x15a0 [ 34.603839] ? vm_mmap_pgoff+0x198/0x280 [ 34.607867] ? down_read_killable+0x180/0x180 [ 34.612324] ? security_mmap_file+0x143/0x180 [ 34.616783] vm_mmap_pgoff+0x1de/0x280 [ 34.620634] ? vma_is_stack_for_current+0xa0/0xa0 [ 34.625441] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.629902] ? SyS_futex+0x269/0x390 [ 34.633578] SyS_mmap_pgoff+0x23b/0x5f0 [ 34.637516] ? find_mergeable_anon_vma+0xd0/0xd0 [ 34.642236] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.647217] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.651939] SyS_mmap+0x16/0x20 [ 34.655184] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.659902] RIP: 0033:0x452879 [ 34.663055] RSP: 002b:00007f176b9e5be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 34.670726] RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452879 [ 34.677960] RDX: 0000000000000003 RSI: 0000000000292000 RDI: 0000000020000000 [ 34.685196] RBP: 0000000000000086 R08: ffffffffffffffff R09: 0000000000000000 [ 34.692432] R10: 0000000000000032 R11: 0000000000000212 R12: 0000000000000000 [ 34.699665] R13: 00007fff205fed2f R14: 00007f176b9e69c0 R15: 0000000000000007