[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 58.158836][ T26] audit: type=1800 audit(1571044317.572:25): pid=8618 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 58.198478][ T26] audit: type=1800 audit(1571044317.582:26): pid=8618 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 58.233022][ T26] audit: type=1800 audit(1571044317.592:27): pid=8618 uid=0 auid=4294967295 ses=4294967295 subj==unconfined 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.48' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 69.014614][ T8774] [ 69.017124][ T8774] ====================================================== [ 69.024129][ T8774] WARNING: possible circular locking dependency detected [ 69.031223][ T8774] 5.4.0-rc2+ #0 Not tainted [ 69.035794][ T8774] ------------------------------------------------------ [ 69.043098][ T8774] syz-executor055/8774 is trying to acquire lock: [ 69.049491][ T8774] ffff8880a23a8d00 (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 69.058344][ T8774] [ 69.058344][ T8774] but task is already holding lock: [ 69.066067][ T8774] ffff888093b3a398 (&mm->mmap_sem#2){++++}, at: __mm_populate+0x270/0x380 [ 69.074579][ T8774] [ 69.074579][ T8774] which lock already depends on the new lock. [ 69.074579][ T8774] [ 69.084971][ T8774] [ 69.084971][ T8774] the existing dependency chain (in reverse order) is: [ 69.094451][ T8774] [ 69.094451][ T8774] -> #1 (&mm->mmap_sem#2){++++}: [ 69.101568][ T8774] __might_fault+0x15e/0x1e0 [ 69.107121][ T8774] _copy_to_user+0x30/0x160 [ 69.112226][ T8774] mon_bin_get_event+0x117/0x450 [ 69.117664][ T8774] mon_bin_ioctl+0xacf/0xc80 [ 69.122769][ T8774] do_vfs_ioctl+0xdb6/0x13e0 [ 69.127950][ T8774] ksys_ioctl+0xab/0xd0 [ 69.132605][ T8774] __x64_sys_ioctl+0x73/0xb0 [ 69.137696][ T8774] do_syscall_64+0xfa/0x760 [ 69.142703][ T8774] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 69.149089][ T8774] [ 69.149089][ T8774] -> #0 (&rp->fetch_lock){+.+.}: [ 69.156632][ T8774] __lock_acquire+0x2596/0x4a00 [ 69.162095][ T8774] lock_acquire+0x190/0x410 [ 69.167109][ T8774] __mutex_lock+0x156/0x13c0 [ 69.172418][ T8774] mutex_lock_nested+0x16/0x20 [ 69.177706][ T8774] mon_bin_vma_fault+0x73/0x2d0 [ 69.183064][ T8774] __do_fault+0x111/0x540 [ 69.187903][ T8774] __handle_mm_fault+0x2dd0/0x4040 [ 69.193515][ T8774] handle_mm_fault+0x3b7/0xaa0 [ 69.198864][ T8774] __get_user_pages+0x7d4/0x1b30 [ 69.204300][ T8774] populate_vma_page_range+0x20d/0x2a0 [ 69.210259][ T8774] __mm_populate+0x204/0x380 [ 69.215366][ T8774] vm_mmap_pgoff+0x213/0x230 [ 69.220455][ T8774] ksys_mmap_pgoff+0x4aa/0x630 [ 69.225718][ T8774] __x64_sys_mmap+0xe9/0x1b0 [ 69.230808][ T8774] do_syscall_64+0xfa/0x760 [ 69.235833][ T8774] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 69.242220][ T8774] [ 69.242220][ T8774] other info that might help us debug this: [ 69.242220][ T8774] [ 69.252512][ T8774] Possible unsafe locking scenario: [ 69.252512][ T8774] [ 69.259942][ T8774] CPU0 CPU1 [ 69.265302][ T8774] ---- ---- [ 69.270654][ T8774] lock(&mm->mmap_sem#2); [ 69.275067][ T8774] lock(&rp->fetch_lock); [ 69.281985][ T8774] lock(&mm->mmap_sem#2); [ 69.288902][ T8774] lock(&rp->fetch_lock); [ 69.293309][ T8774] [ 69.293309][ T8774] *** DEADLOCK *** [ 69.293309][ T8774] [ 69.301457][ T8774] 1 lock held by syz-executor055/8774: [ 69.307014][ T8774] #0: ffff888093b3a398 (&mm->mmap_sem#2){++++}, at: __mm_populate+0x270/0x380 [ 69.315944][ T8774] [ 69.315944][ T8774] stack backtrace: [ 69.321910][ T8774] CPU: 0 PID: 8774 Comm: syz-executor055 Not tainted 5.4.0-rc2+ #0 [ 69.329782][ T8774] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 69.339912][ T8774] Call Trace: [ 69.343208][ T8774] dump_stack+0x172/0x1f0 [ 69.347523][ T8774] print_circular_bug.isra.0.cold+0x163/0x172 [ 69.353575][ T8774] check_noncircular+0x32e/0x3e0 [ 69.358530][ T8774] ? print_circular_bug.isra.0+0x230/0x230 [ 69.364417][ T8774] ? alloc_list_entry+0xc0/0xc0 [ 69.369248][ T8774] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 69.375472][ T8774] ? find_first_zero_bit+0x9a/0xc0 [ 69.380575][ T8774] __lock_acquire+0x2596/0x4a00 [ 69.385407][ T8774] ? stack_depot_save+0x25a/0x450 [ 69.390419][ T8774] ? mark_held_locks+0xf0/0xf0 [ 69.395288][ T8774] lock_acquire+0x190/0x410 [ 69.399790][ T8774] ? mon_bin_vma_fault+0x73/0x2d0 [ 69.405783][ T8774] __mutex_lock+0x156/0x13c0 [ 69.410363][ T8774] ? mon_bin_vma_fault+0x73/0x2d0 [ 69.415387][ T8774] ? __kasan_check_read+0x11/0x20 [ 69.420401][ T8774] ? mon_bin_vma_fault+0x73/0x2d0 [ 69.425407][ T8774] ? mutex_trylock+0x2d0/0x2d0 [ 69.430176][ T8774] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 69.435767][ T8774] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 69.441741][ T8774] ? __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 69.447553][ T8774] ? kmem_cache_alloc+0x364/0x710 [ 69.452765][ T8774] ? stack_trace_consume_entry+0x190/0x190 [ 69.458578][ T8774] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 69.464899][ T8774] mutex_lock_nested+0x16/0x20 [ 69.469718][ T8774] ? mutex_lock_nested+0x16/0x20 [ 69.474651][ T8774] mon_bin_vma_fault+0x73/0x2d0 [ 69.479498][ T8774] __do_fault+0x111/0x540 [ 69.483809][ T8774] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 69.490049][ T8774] __handle_mm_fault+0x2dd0/0x4040 [ 69.495157][ T8774] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 69.500686][ T8774] ? handle_mm_fault+0x292/0xaa0 [ 69.505610][ T8774] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 69.511949][ T8774] ? __kasan_check_read+0x11/0x20 [ 69.516969][ T8774] handle_mm_fault+0x3b7/0xaa0 [ 69.521777][ T8774] __get_user_pages+0x7d4/0x1b30 [ 69.526718][ T8774] ? mark_held_locks+0xf0/0xf0 [ 69.531487][ T8774] ? follow_page_mask+0x1cf0/0x1cf0 [ 69.536669][ T8774] ? __mm_populate+0x270/0x380 [ 69.541419][ T8774] ? memset+0x32/0x40 [ 69.545386][ T8774] populate_vma_page_range+0x20d/0x2a0 [ 69.550829][ T8774] __mm_populate+0x204/0x380 [ 69.555405][ T8774] ? populate_vma_page_range+0x2a0/0x2a0 [ 69.561124][ T8774] ? __kasan_check_write+0x14/0x20 [ 69.566219][ T8774] ? up_write+0x155/0x490 [ 69.570540][ T8774] vm_mmap_pgoff+0x213/0x230 [ 69.575133][ T8774] ? randomize_stack_top+0x110/0x110 [ 69.580526][ T8774] ? ksys_dup3+0x3e0/0x3e0 [ 69.585084][ T8774] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 69.591238][ T8774] ksys_mmap_pgoff+0x4aa/0x630 [ 69.596151][ T8774] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 69.601834][ T8774] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 69.607296][ T8774] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 69.612739][ T8774] ? do_syscall_64+0x26/0x760 [ 69.617413][ T8774] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 69.623476][ T8774] __x64_sys_mmap+0xe9/0x1b0 [ 69.628064][ T8774] do_syscall_64+0xfa/0x760 [ 69.632573][ T8774] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 69.638475][ T8774] RIP: 0033:0x44a739 [ 69.642456][ T8774] 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 [ 69.662388][ T8774] RSP: 002b:00007fdc5dd12cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 69.670781][ T8774] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 000000000044a739 [ 69.678746][ T8774] RDX: 0000000002000001 RSI: 0000000002000000 RDI: 0000000020ffd000 [ 69.686708][ T8774] RBP: 00000000006dbc30 R08: 0000000000000005 R09: 0000000000000000 [ 69.694664][ T8774] R10: 03eb6b06d1207692 R11: 0000000000000246 R12: 00000000006dbc3c [ 69.702881][ T8774] R13: 00007ffd37345d4f R14: 00007fdc5dd139c0 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