[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 39.065027][ T26] audit: type=1800 audit(1555648818.132:25): pid=7737 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 39.098934][ T26] audit: type=1800 audit(1555648818.132:26): pid=7737 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 39.125312][ T26] audit: type=1800 audit(1555648818.132:27): pid=7737 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 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. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.196' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 51.234129][ T7891] [ 51.236506][ T7891] ====================================================== [ 51.243541][ T7891] WARNING: possible circular locking dependency detected [ 51.250550][ T7891] 5.1.0-rc5+ #74 Not tainted [ 51.255123][ T7891] ------------------------------------------------------ [ 51.262125][ T7891] syz-executor073/7891 is trying to acquire lock: [ 51.268515][ T7891] 000000001a40eb3b (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 51.277272][ T7891] [ 51.277272][ T7891] but task is already holding lock: [ 51.284662][ T7891] 0000000092548d67 (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 51.293092][ T7891] [ 51.293092][ T7891] which lock already depends on the new lock. [ 51.293092][ T7891] [ 51.303588][ T7891] [ 51.303588][ T7891] the existing dependency chain (in reverse order) is: [ 51.312625][ T7891] [ 51.312625][ T7891] -> #1 (&mm->mmap_sem){++++}: [ 51.319634][ T7891] lock_acquire+0x16f/0x3f0 [ 51.324643][ T7891] __might_fault+0x15e/0x1e0 [ 51.329957][ T7891] _copy_to_user+0x30/0x120 [ 51.335038][ T7891] mon_bin_get_event+0x117/0x450 [ 51.340487][ T7891] mon_bin_ioctl+0xacf/0xc80 [ 51.345590][ T7891] do_vfs_ioctl+0xd6e/0x1390 [ 51.350688][ T7891] ksys_ioctl+0xab/0xd0 [ 51.355353][ T7891] __x64_sys_ioctl+0x73/0xb0 [ 51.360457][ T7891] do_syscall_64+0x103/0x610 [ 51.365558][ T7891] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.371945][ T7891] [ 51.371945][ T7891] -> #0 (&rp->fetch_lock){+.+.}: [ 51.379051][ T7891] __lock_acquire+0x239c/0x3fb0 [ 51.384412][ T7891] lock_acquire+0x16f/0x3f0 [ 51.389423][ T7891] __mutex_lock+0xf7/0x1310 [ 51.394556][ T7891] mutex_lock_nested+0x16/0x20 [ 51.399866][ T7891] mon_bin_vma_fault+0x73/0x2d0 [ 51.405228][ T7891] __do_fault+0x116/0x4e0 [ 51.410060][ T7891] __handle_mm_fault+0xf6c/0x3ec0 [ 51.415591][ T7891] handle_mm_fault+0x43f/0xb30 [ 51.420867][ T7891] __get_user_pages+0x7b6/0x1a40 [ 51.426398][ T7891] populate_vma_page_range+0x20d/0x2a0 [ 51.432705][ T7891] __mm_populate+0x204/0x380 [ 51.437902][ T7891] vm_mmap_pgoff+0x213/0x230 [ 51.442996][ T7891] ksys_mmap_pgoff+0x4aa/0x630 [ 51.448258][ T7891] __x64_sys_mmap+0xe9/0x1b0 [ 51.453444][ T7891] do_syscall_64+0x103/0x610 [ 51.458544][ T7891] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.465116][ T7891] [ 51.465116][ T7891] other info that might help us debug this: [ 51.465116][ T7891] [ 51.475366][ T7891] Possible unsafe locking scenario: [ 51.475366][ T7891] [ 51.482892][ T7891] CPU0 CPU1 [ 51.488283][ T7891] ---- ---- [ 51.493726][ T7891] lock(&mm->mmap_sem); [ 51.497947][ T7891] lock(&rp->fetch_lock); [ 51.504858][ T7891] lock(&mm->mmap_sem); [ 51.511613][ T7891] lock(&rp->fetch_lock); [ 51.516378][ T7891] [ 51.516378][ T7891] *** DEADLOCK *** [ 51.516378][ T7891] [ 51.524547][ T7891] 1 lock held by syz-executor073/7891: [ 51.530070][ T7891] #0: 0000000092548d67 (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 51.538894][ T7891] [ 51.538894][ T7891] stack backtrace: [ 51.544774][ T7891] CPU: 1 PID: 7891 Comm: syz-executor073 Not tainted 5.1.0-rc5+ #74 [ 51.552993][ T7891] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.563467][ T7891] Call Trace: [ 51.566796][ T7891] dump_stack+0x172/0x1f0 [ 51.571219][ T7891] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 51.577541][ T7891] check_prev_add.constprop.0+0xf11/0x23c0 [ 51.583486][ T7891] ? check_usage+0x570/0x570 [ 51.588073][ T7891] ? depot_save_stack+0x1de/0x460 [ 51.593090][ T7891] ? graph_lock+0x7b/0x200 [ 51.597498][ T7891] ? __lockdep_reset_lock+0x450/0x450 [ 51.602945][ T7891] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 51.609391][ T7891] __lock_acquire+0x239c/0x3fb0 [ 51.614354][ T7891] ? depot_save_stack+0x1de/0x460 [ 51.619720][ T7891] ? mark_held_locks+0xf0/0xf0 [ 51.624471][ T7891] ? __do_fault+0x2b9/0x4e0 [ 51.628964][ T7891] lock_acquire+0x16f/0x3f0 [ 51.633446][ T7891] ? mon_bin_vma_fault+0x73/0x2d0 [ 51.638447][ T7891] ? mon_bin_vma_fault+0x73/0x2d0 [ 51.643710][ T7891] __mutex_lock+0xf7/0x1310 [ 51.648207][ T7891] ? mon_bin_vma_fault+0x73/0x2d0 [ 51.653220][ T7891] ? fs_reclaim_acquire.part.0+0x30/0x30 [ 51.658954][ T7891] ? mon_bin_vma_fault+0x73/0x2d0 [ 51.666178][ T7891] ? mutex_trylock+0x1e0/0x1e0 [ 51.677071][ T7891] ? ptlock_alloc+0x20/0x70 [ 51.681577][ T7891] ? rcu_read_lock_sched_held+0x110/0x130 [ 51.687291][ T7891] ? kmem_cache_alloc+0x32e/0x6f0 [ 51.692311][ T7891] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.698979][ T7891] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 51.705263][ T7891] mutex_lock_nested+0x16/0x20 [ 51.710057][ T7891] ? mutex_lock_nested+0x16/0x20 [ 51.715174][ T7891] mon_bin_vma_fault+0x73/0x2d0 [ 51.720015][ T7891] __do_fault+0x116/0x4e0 [ 51.724329][ T7891] ? mem_cgroup_try_charge_delay+0x6c/0xa0 [ 51.730140][ T7891] __handle_mm_fault+0xf6c/0x3ec0 [ 51.735165][ T7891] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 51.740832][ T7891] ? find_held_lock+0x35/0x130 [ 51.745600][ T7891] ? handle_mm_fault+0x322/0xb30 [ 51.750625][ T7891] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.757396][ T7891] ? kasan_check_read+0x11/0x20 [ 51.762246][ T7891] handle_mm_fault+0x43f/0xb30 [ 51.766995][ T7891] __get_user_pages+0x7b6/0x1a40 [ 51.771922][ T7891] ? follow_page_mask+0x19a0/0x19a0 [ 51.777172][ T7891] ? vma_set_page_prot+0x18c/0x240 [ 51.782289][ T7891] ? memset+0x32/0x40 [ 51.786289][ T7891] populate_vma_page_range+0x20d/0x2a0 [ 51.791737][ T7891] __mm_populate+0x204/0x380 [ 51.796428][ T7891] ? populate_vma_page_range+0x2a0/0x2a0 [ 51.802041][ T7891] vm_mmap_pgoff+0x213/0x230 [ 51.806631][ T7891] ? vma_is_stack_for_current+0xd0/0xd0 [ 51.812410][ T7891] ? ksys_dup3+0x3e0/0x3e0 [ 51.816814][ T7891] ksys_mmap_pgoff+0x4aa/0x630 [ 51.821776][ T7891] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 51.827404][ T7891] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.832851][ T7891] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.838300][ T7891] ? do_syscall_64+0x26/0x610 [ 51.842959][ T7891] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.849015][ T7891] __x64_sys_mmap+0xe9/0x1b0 [ 51.853593][ T7891] do_syscall_64+0x103/0x610 [ 51.858206][ T7891] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.864081][ T7891] RIP: 0033:0x44a679 [ 51.868112][ T7891] Code: e8 8c b5 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 2b cc fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 51.887907][ T7891] RSP: 002b:00007fdaf1ffecd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 51.896418][ T7891] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 000000000044a679 [ 51.904425][ T7891] RDX: 0000000000000002 RSI: 0000000000400000 RDI: 0000000020a19000 [ 51.912473][ T7891] RBP: 00000000006dbc30 R08: 0000000000000005 R09: 0000000000000000 [ 51.920472][ T7891] R10: 0000000000008012 R11: 0000000000000246 R12: 00000000006dbc3c [ 51.928440][ T7891] R13: 00007ffec280167f R14: 00007fdaf1fff9c0 R15: 20c49ba5e353f7cf 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