[ 70.046482][ T27] audit: type=1800 audit(1565938966.030:26): pid=9189 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 70.915372][ T27] kauditd_printk_skb: 2 callbacks suppressed [ 70.915385][ T27] audit: type=1800 audit(1565938966.940:29): pid=9189 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 70.948627][ T27] audit: type=1800 audit(1565938966.950:30): pid=9189 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.150' (ECDSA) to the list of known hosts. syzkaller login: [ 81.088555][ T9344] IPVS: ftp: loaded support on port[0] = 21 executing program executing program [ 81.428815][ T9351] [ 81.431908][ T9351] ====================================================== [ 81.439733][ T9351] WARNING: possible circular locking dependency detected [ 81.447091][ T9351] 5.3.0-rc4-next-20190814 #66 Not tainted [ 81.453039][ T9351] ------------------------------------------------------ [ 81.460326][ T9351] syz-executor590/9351 is trying to acquire lock: [ 81.466877][ T9351] ffffffff88f5eef0 (cpu_hotplug_lock.rw_sem){++++}, at: static_key_slow_dec+0x54/0xa0 [ 81.476745][ T9351] [ 81.476745][ T9351] but task is already holding lock: [ 81.484705][ T9351] ffff8880a96354d0 (&mm->mmap_sem#2){++++}, at: vm_mmap_pgoff+0x173/0x230 [ 81.493243][ T9351] [ 81.493243][ T9351] which lock already depends on the new lock. [ 81.493243][ T9351] [ 81.504200][ T9351] [ 81.504200][ T9351] the existing dependency chain (in reverse order) is: [ 81.513310][ T9351] [ 81.513310][ T9351] -> #2 (&mm->mmap_sem#2){++++}: [ 81.520674][ T9351] down_write+0x93/0x150 [ 81.525974][ T9351] mpol_rebind_mm+0x25/0xd0 [ 81.531106][ T9351] cpuset_attach+0x226/0x420 [ 81.536342][ T9351] cgroup_migrate_execute+0xc56/0x1350 [ 81.542319][ T9351] cgroup_migrate+0x14f/0x1f0 [ 81.547692][ T9351] cgroup_attach_task+0x57f/0x860 [ 81.553578][ T9351] __cgroup1_procs_write.constprop.0+0x321/0x400 [ 81.560684][ T9351] cgroup1_procs_write+0x2b/0x40 [ 81.566241][ T9351] cgroup_file_write+0x241/0x790 [ 81.571889][ T9351] kernfs_fop_write+0x2b8/0x480 [ 81.577498][ T9351] __vfs_write+0x8a/0x110 [ 81.582559][ T9351] vfs_write+0x268/0x5d0 [ 81.587906][ T9351] ksys_write+0x14f/0x290 [ 81.592853][ T9351] __x64_sys_write+0x73/0xb0 [ 81.598019][ T9351] do_syscall_64+0xfa/0x760 [ 81.603058][ T9351] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 81.609495][ T9351] [ 81.609495][ T9351] -> #1 (&cpuset_rwsem){++++}: [ 81.616626][ T9351] cpuset_read_lock+0x3e/0x150 [ 81.622004][ T9351] __sched_setscheduler+0xca2/0x2110 [ 81.628012][ T9351] _sched_setscheduler+0x10a/0x1b0 [ 81.634233][ T9351] sched_setscheduler_nocheck+0xb/0x10 [ 81.640225][ T9351] __kthread_create_on_node+0x32a/0x460 [ 81.646523][ T9351] kthread_create_on_node+0xbb/0xf0 [ 81.652514][ T9351] create_worker+0x25c/0x570 [ 81.657784][ T9351] workqueue_prepare_cpu+0xa1/0x100 [ 81.663614][ T9351] cpuhp_invoke_callback+0x21a/0x1c60 [ 81.669667][ T9351] _cpu_up+0x289/0x550 [ 81.674342][ T9351] do_cpu_up+0x171/0x190 [ 81.679204][ T9351] cpu_up+0x1b/0x20 [ 81.683792][ T9351] smp_init+0x248/0x261 [ 81.688615][ T9351] kernel_init_freeable+0x339/0x5be [ 81.694455][ T9351] kernel_init+0x12/0x1c5 [ 81.699402][ T9351] ret_from_fork+0x24/0x30 [ 81.704736][ T9351] [ 81.704736][ T9351] -> #0 (cpu_hotplug_lock.rw_sem){++++}: [ 81.712981][ T9351] __lock_acquire+0x25b6/0x4e70 [ 81.718533][ T9351] lock_acquire+0x190/0x410 [ 81.723866][ T9351] cpus_read_lock+0x3e/0x150 [ 81.729240][ T9351] static_key_slow_dec+0x54/0xa0 [ 81.734846][ T9351] sw_perf_event_destroy+0x8b/0x130 [ 81.740947][ T9351] _free_event+0x354/0x13a0 [ 81.746061][ T9351] put_event+0x47/0x60 [ 81.750662][ T9351] perf_mmap_close+0x585/0xe00 [ 81.755960][ T9351] remove_vma+0xb2/0x180 [ 81.760928][ T9351] __do_munmap+0x7b0/0x10f0 [ 81.765963][ T9351] mmap_region+0x227/0x1760 [ 81.771366][ T9351] do_mmap+0x853/0x1180 [ 81.776221][ T9351] vm_mmap_pgoff+0x1c5/0x230 [ 81.781355][ T9351] ksys_mmap_pgoff+0x4aa/0x630 [ 81.786782][ T9351] __x64_sys_mmap+0xe9/0x1b0 [ 81.792093][ T9351] do_syscall_64+0xfa/0x760 [ 81.797845][ T9351] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 81.813680][ T9351] [ 81.813680][ T9351] other info that might help us debug this: [ 81.813680][ T9351] [ 81.826966][ T9351] Chain exists of: [ 81.826966][ T9351] cpu_hotplug_lock.rw_sem --> &cpuset_rwsem --> &mm->mmap_sem#2 [ 81.826966][ T9351] [ 81.842454][ T9351] Possible unsafe locking scenario: [ 81.842454][ T9351] [ 81.850413][ T9351] CPU0 CPU1 [ 81.855799][ T9351] ---- ---- [ 81.861500][ T9351] lock(&mm->mmap_sem#2); [ 81.866137][ T9351] lock(&cpuset_rwsem); [ 81.873011][ T9351] lock(&mm->mmap_sem#2); [ 81.880151][ T9351] lock(cpu_hotplug_lock.rw_sem); [ 81.885444][ T9351] [ 81.885444][ T9351] *** DEADLOCK *** [ 81.885444][ T9351] [ 81.893708][ T9351] 1 lock held by syz-executor590/9351: [ 81.899651][ T9351] #0: ffff8880a96354d0 (&mm->mmap_sem#2){++++}, at: vm_mmap_pgoff+0x173/0x230 [ 81.908850][ T9351] [ 81.908850][ T9351] stack backtrace: [ 81.914997][ T9351] CPU: 0 PID: 9351 Comm: syz-executor590 Not tainted 5.3.0-rc4-next-20190814 #66 [ 81.924275][ T9351] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 81.934651][ T9351] Call Trace: [ 81.937969][ T9351] dump_stack+0x172/0x1f0 [ 81.942456][ T9351] print_circular_bug.isra.0.cold+0x163/0x172 [ 81.948616][ T9351] check_noncircular+0x32e/0x3e0 [ 81.953734][ T9351] ? _raw_spin_unlock_irq+0x28/0x90 [ 81.959093][ T9351] ? print_circular_bug.isra.0+0x230/0x230 [ 81.965330][ T9351] ? lockdep_hardirqs_on+0x418/0x5d0 [ 81.970670][ T9351] ? trace_hardirqs_on+0x67/0x240 [ 81.976722][ T9351] ? alloc_list_entry+0xc0/0xc0 [ 81.982190][ T9351] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 81.988556][ T9351] ? find_first_zero_bit+0x9a/0xc0 [ 81.994128][ T9351] __lock_acquire+0x25b6/0x4e70 [ 81.999415][ T9351] ? mark_held_locks+0xf0/0xf0 [ 82.004656][ T9351] lock_acquire+0x190/0x410 [ 82.009627][ T9351] ? static_key_slow_dec+0x54/0xa0 [ 82.015511][ T9351] ? swevent_hlist_put_cpu+0x1d0/0x1d0 [ 82.021399][ T9351] cpus_read_lock+0x3e/0x150 [ 82.026335][ T9351] ? static_key_slow_dec+0x54/0xa0 [ 82.031548][ T9351] static_key_slow_dec+0x54/0xa0 [ 82.036494][ T9351] sw_perf_event_destroy+0x8b/0x130 [ 82.042159][ T9351] ? swevent_hlist_put_cpu+0x1d0/0x1d0 [ 82.047638][ T9351] _free_event+0x354/0x13a0 [ 82.052693][ T9351] ? ring_buffer_attach+0x650/0x650 [ 82.057997][ T9351] ? ring_buffer_attach+0x2d8/0x650 [ 82.063288][ T9351] put_event+0x47/0x60 [ 82.067366][ T9351] perf_mmap_close+0x585/0xe00 [ 82.072140][ T9351] ? perf_compat_ioctl+0xa0/0xa0 [ 82.077274][ T9351] ? ___might_sleep+0x163/0x280 [ 82.082580][ T9351] ? __might_sleep+0x95/0x190 [ 82.087418][ T9351] ? perf_compat_ioctl+0xa0/0xa0 [ 82.092642][ T9351] remove_vma+0xb2/0x180 [ 82.097357][ T9351] __do_munmap+0x7b0/0x10f0 [ 82.102173][ T9351] mmap_region+0x227/0x1760 [ 82.106824][ T9351] ? __fd_install+0x1bc/0x640 [ 82.111534][ T9351] ? __x64_sys_brk+0x760/0x760 [ 82.116533][ T9351] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 82.122781][ T9351] ? get_unmapped_area+0x2ad/0x3d0 [ 82.127918][ T9351] do_mmap+0x853/0x1180 [ 82.132281][ T9351] vm_mmap_pgoff+0x1c5/0x230 [ 82.136884][ T9351] ? randomize_stack_top+0x110/0x110 [ 82.142294][ T9351] ? ksys_dup3+0x3e0/0x3e0 [ 82.146722][ T9351] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 82.152987][ T9351] ksys_mmap_pgoff+0x4aa/0x630 [ 82.157993][ T9351] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 82.163724][ T9351] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 82.169198][ T9351] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 82.174919][ T9351] ? do_syscall_64+0x26/0x760 [ 82.179784][ T9351] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.185972][ T9351] __x64_sys_mmap+0xe9/0x1b0 [ 82.190785][ T9351] do_syscall_64+0xfa/0x760 [ 82.195295][ T9351] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.201411][ T9351] RIP: 0033:0x4473b9 [ 82.205509][ T9351] Code: e8 4c bb 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 5b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00 executing program [ 82.225476][ T9351] RSP: 002b:00007f148465bda8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 82.233990][ T9351] RAX: ffffffffffffffda RBX: 00000000006dcc38 RCX: 00000000004473b9 [ 82.241969][ T9351] RDX: 0000000000000000 RSI: 0000000000003000 RDI: 0000000020ffd000 [ 82.250037][ T9351] RBP: 00000000006dcc30 R08: 0000000000000004 R09: 0000000000000000 [ 82.258018][ T9351] R10: 0000000000000011 R11: 0000000000000246 R12: 00000000006dcc3c [ 82.266269][ T9351] R13: 00007ffd3f4be3ef R14: 00007f148465c9c0 R15: 0000000000000000 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program