[ 40.157741][ T26] audit: type=1800 audit(1570982225.671:27): pid=7686 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 40.177186][ T26] audit: type=1800 audit(1570982225.671:28): pid=7686 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 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. [ 41.027833][ T26] audit: type=1800 audit(1570982226.611:29): pid=7686 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 41.047309][ T26] audit: type=1800 audit(1570982226.611:30): pid=7686 uid=0 auid=4294967295 ses=4294967295 subj=_ 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.112' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 52.635514][ T7856] [ 52.637891][ T7856] ====================================================== [ 52.644899][ T7856] WARNING: possible circular locking dependency detected [ 52.651893][ T7856] 5.4.0-rc2+ #0 Not tainted [ 52.656367][ T7856] ------------------------------------------------------ [ 52.663359][ T7856] syz-executor510/7856 is trying to acquire lock: [ 52.669780][ T7856] ffff8880a8eab100 (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x6d/0x260 [ 52.678516][ T7856] [ 52.678516][ T7856] but task is already holding lock: [ 52.685971][ T7856] ffff8880900f6b58 (&mm->mmap_sem#2){++++}, at: __mm_populate+0x156/0x3d0 [ 52.694464][ T7856] [ 52.694464][ T7856] which lock already depends on the new lock. [ 52.694464][ T7856] [ 52.704841][ T7856] [ 52.704841][ T7856] the existing dependency chain (in reverse order) is: [ 52.713827][ T7856] [ 52.713827][ T7856] -> #1 (&mm->mmap_sem#2){++++}: [ 52.720928][ T7856] lock_acquire+0x158/0x250 [ 52.725926][ T7856] __might_fault+0xf5/0x160 [ 52.730964][ T7856] _copy_to_user+0x2c/0x150 [ 52.735958][ T7856] mon_bin_read+0x1ac/0x7b0 [ 52.740958][ T7856] __vfs_read+0xb8/0x730 [ 52.745699][ T7856] vfs_read+0x1dd/0x420 [ 52.750352][ T7856] ksys_read+0x117/0x220 [ 52.755087][ T7856] __x64_sys_read+0x7b/0x90 [ 52.760084][ T7856] do_syscall_64+0xf7/0x1c0 [ 52.765086][ T7856] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.771474][ T7856] [ 52.771474][ T7856] -> #0 (&rp->fetch_lock){+.+.}: [ 52.778581][ T7856] validate_chain+0x161e/0x7bc0 executing program [ 52.783945][ T7856] __lock_acquire+0xc75/0x1be0 [ 52.789203][ T7856] lock_acquire+0x158/0x250 [ 52.794203][ T7856] __mutex_lock_common+0x14c/0x2e20 [ 52.799904][ T7856] mutex_lock_nested+0x1b/0x30 [ 52.805170][ T7856] mon_bin_vma_fault+0x6d/0x260 [ 52.810511][ T7856] __do_fault+0x144/0x3d0 [ 52.815333][ T7856] handle_mm_fault+0x369f/0x5ff0 [ 52.820761][ T7856] __get_user_pages+0x1002/0x1610 [ 52.826287][ T7856] populate_vma_page_range+0x1fd/0x250 [ 52.832243][ T7856] __mm_populate+0x278/0x3d0 [ 52.837335][ T7856] vm_mmap_pgoff+0x1a0/0x1d0 [ 52.842416][ T7856] ksys_mmap_pgoff+0x46b/0x560 [ 52.847677][ T7856] __x64_sys_mmap+0x103/0x120 [ 52.852844][ T7856] do_syscall_64+0xf7/0x1c0 [ 52.857840][ T7856] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.864217][ T7856] [ 52.864217][ T7856] other info that might help us debug this: [ 52.864217][ T7856] [ 52.874415][ T7856] Possible unsafe locking scenario: [ 52.874415][ T7856] [ 52.881876][ T7856] CPU0 CPU1 [ 52.887217][ T7856] ---- ---- [ 52.892559][ T7856] lock(&mm->mmap_sem#2); [ 52.896946][ T7856] lock(&rp->fetch_lock); [ 52.903861][ T7856] lock(&mm->mmap_sem#2); [ 52.910763][ T7856] lock(&rp->fetch_lock); [ 52.915147][ T7856] [ 52.915147][ T7856] *** DEADLOCK *** [ 52.915147][ T7856] [ 52.923306][ T7856] 1 lock held by syz-executor510/7856: executing program [ 52.928732][ T7856] #0: ffff8880900f6b58 (&mm->mmap_sem#2){++++}, at: __mm_populate+0x156/0x3d0 [ 52.937645][ T7856] [ 52.937645][ T7856] stack backtrace: [ 52.943512][ T7856] CPU: 0 PID: 7856 Comm: syz-executor510 Not tainted 5.4.0-rc2+ #0 [ 52.951373][ T7856] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.961403][ T7856] Call Trace: [ 52.964670][ T7856] dump_stack+0x1d8/0x2f8 [ 52.968974][ T7856] print_circular_bug+0xc2d/0xe60 [ 52.974015][ T7856] ? stack_trace_save+0xb6/0x150 [ 52.978925][ T7856] ? save_trace+0x3f/0xa20 [ 52.983315][ T7856] check_noncircular+0x206/0x3a0 [ 52.988223][ T7856] validate_chain+0x161e/0x7bc0 [ 52.993047][ T7856] ? __kasan_check_read+0x11/0x20 [ 52.998042][ T7856] ? mark_lock+0x107/0x1650 [ 53.002514][ T7856] ? register_lock_class+0x99/0xea0 [ 53.007700][ T7856] ? lockdep_hardirqs_on+0x3c5/0x7d0 [ 53.012957][ T7856] ? _raw_spin_unlock_irqrestore+0x77/0xe0 [ 53.018735][ T7856] __lock_acquire+0xc75/0x1be0 [ 53.023470][ T7856] ? kasan_slab_alloc+0xf/0x20 [ 53.028203][ T7856] ? kmem_cache_alloc+0x1f5/0x2e0 [ 53.033198][ T7856] ? ptlock_alloc+0x20/0x70 [ 53.037697][ T7856] ? pte_alloc_one+0x6e/0x180 [ 53.042345][ T7856] ? __do_fault+0xdd/0x3d0 [ 53.046733][ T7856] ? handle_mm_fault+0x369f/0x5ff0 [ 53.051839][ T7856] ? trace_lock_acquire+0x159/0x1d0 [ 53.057007][ T7856] lock_acquire+0x158/0x250 [ 53.061482][ T7856] ? mon_bin_vma_fault+0x6d/0x260 [ 53.066476][ T7856] __mutex_lock_common+0x14c/0x2e20 [ 53.071647][ T7856] ? mon_bin_vma_fault+0x6d/0x260 [ 53.076640][ T7856] ? mon_bin_vma_fault+0x6d/0x260 [ 53.081637][ T7856] ? lockdep_init_map+0x2a/0x680 executing program [ 53.086547][ T7856] mutex_lock_nested+0x1b/0x30 [ 53.091283][ T7856] mon_bin_vma_fault+0x6d/0x260 [ 53.096102][ T7856] __do_fault+0x144/0x3d0 [ 53.100408][ T7856] handle_mm_fault+0x369f/0x5ff0 [ 53.105321][ T7856] __get_user_pages+0x1002/0x1610 [ 53.110318][ T7856] populate_vma_page_range+0x1fd/0x250 [ 53.115769][ T7856] __mm_populate+0x278/0x3d0 [ 53.120350][ T7856] vm_mmap_pgoff+0x1a0/0x1d0 [ 53.124912][ T7856] ksys_mmap_pgoff+0x46b/0x560 [ 53.129646][ T7856] __x64_sys_mmap+0x103/0x120 [ 53.134292][ T7856] do_syscall_64+0xf7/0x1c0 [ 53.138769][ T7856] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.144640][ T7856] RIP: 0033:0x44a729 [ 53.148505][ T7856] Code: e8 0c e8 ff ff 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 7b cb fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 53.168085][ T7856] RSP: 002b:00007ff695595cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 53.176465][ T7856] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a729 executing program executing program executing program executing program executing program [ 53.184410][ T7856] RDX: 000000000300001f RSI: 0000000000003000 RDI: 0000000020ffa000 [ 53.192357][ T7856] RBP: 00000000006dbc20 R08: 0000000000000004 R09: 0000000000000000 [ 53.200298][ T7856] R10: 0000000000002012 R11: 0000000000000246 R12: 00000000006dbc2c [ 53.208245][ T7856] R13: 00007ffc26c9ac7f R14: 00007ff6955969c0 R15: 00000000006dbc20 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 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 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 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 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 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 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