[ 71.135265][ T26] audit: type=1800 audit(1571568281.075:33): pid=9033 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 74.980095][ T26] kauditd_printk_skb: 7 callbacks suppressed [ 74.980108][ T26] audit: type=1400 audit(1571568284.925:41): avc: denied { map } for pid=9211 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.143' (ECDSA) to the list of known hosts. executing program [ 82.028107][ T26] audit: type=1400 audit(1571568291.965:42): avc: denied { map } for pid=9223 comm="syz-executor400" path="/root/syz-executor400109576" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 82.088857][ T26] audit: type=1400 audit(1571568292.025:43): avc: denied { map } for pid=9224 comm="syz-executor400" path="/dev/usbmon4" dev="devtmpfs" ino=17868 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usbmon_device_t:s0 tclass=chr_file permissive=1 [ 82.089010][ T9226] [ 82.117492][ T9226] ====================================================== [ 82.124662][ T9226] WARNING: possible circular locking dependency detected [ 82.131674][ T9226] 5.4.0-rc3+ #0 Not tainted [ 82.136259][ T9226] ------------------------------------------------------ [ 82.143524][ T9226] syz-executor400/9226 is trying to acquire lock: [ 82.149963][ T9226] ffff888099c22d00 (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 82.158838][ T9226] [ 82.158838][ T9226] but task is already holding lock: [ 82.166187][ T9226] ffff8880a81fd5d8 (&mm->mmap_sem#2){++++}, at: __mm_populate+0x270/0x380 [ 82.174816][ T9226] [ 82.174816][ T9226] which lock already depends on the new lock. [ 82.174816][ T9226] [ 82.185201][ T9226] [ 82.185201][ T9226] the existing dependency chain (in reverse order) is: [ 82.194198][ T9226] [ 82.194198][ T9226] -> #1 (&mm->mmap_sem#2){++++}: [ 82.201314][ T9226] __might_fault+0x15e/0x1e0 [ 82.206421][ T9226] _copy_to_user+0x30/0x160 [ 82.211424][ T9226] mon_bin_read+0x329/0x640 [ 82.216426][ T9226] __vfs_read+0x8a/0x110 [ 82.221337][ T9226] vfs_read+0x1f0/0x440 [ 82.226210][ T9226] ksys_read+0x14f/0x290 [ 82.230985][ T9226] __x64_sys_read+0x73/0xb0 [ 82.235990][ T9226] do_syscall_64+0xfa/0x760 [ 82.240991][ T9226] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.247387][ T9226] [ 82.247387][ T9226] -> #0 (&rp->fetch_lock){+.+.}: [ 82.254506][ T9226] __lock_acquire+0x2596/0x4a00 [ 82.259869][ T9226] lock_acquire+0x190/0x410 [ 82.264890][ T9226] __mutex_lock+0x156/0x13c0 [ 82.270001][ T9226] mutex_lock_nested+0x16/0x20 [ 82.275261][ T9226] mon_bin_vma_fault+0x73/0x2d0 [ 82.280610][ T9226] __do_fault+0x111/0x540 [ 82.285435][ T9226] __handle_mm_fault+0x2dd0/0x4040 [ 82.291038][ T9226] handle_mm_fault+0x3b7/0xaa0 [ 82.296298][ T9226] __get_user_pages+0x7d4/0x1b30 [ 82.301729][ T9226] populate_vma_page_range+0x20d/0x2a0 [ 82.307683][ T9226] __mm_populate+0x204/0x380 [ 82.312767][ T9226] vm_mmap_pgoff+0x213/0x230 [ 82.317858][ T9226] ksys_mmap_pgoff+0x4aa/0x630 [ 82.323142][ T9226] __x64_sys_mmap+0xe9/0x1b0 [ 82.328230][ T9226] do_syscall_64+0xfa/0x760 [ 82.333320][ T9226] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.339701][ T9226] [ 82.339701][ T9226] other info that might help us debug this: [ 82.339701][ T9226] [ 82.349908][ T9226] Possible unsafe locking scenario: [ 82.349908][ T9226] [ 82.357463][ T9226] CPU0 CPU1 [ 82.362891][ T9226] ---- ---- [ 82.368243][ T9226] lock(&mm->mmap_sem#2); [ 82.372739][ T9226] lock(&rp->fetch_lock); [ 82.379668][ T9226] lock(&mm->mmap_sem#2); [ 82.386682][ T9226] lock(&rp->fetch_lock); [ 82.391232][ T9226] [ 82.391232][ T9226] *** DEADLOCK *** [ 82.391232][ T9226] [ 82.399360][ T9226] 1 lock held by syz-executor400/9226: [ 82.407230][ T9226] #0: ffff8880a81fd5d8 (&mm->mmap_sem#2){++++}, at: __mm_populate+0x270/0x380 [ 82.416156][ T9226] [ 82.416156][ T9226] stack backtrace: [ 82.422032][ T9226] CPU: 1 PID: 9226 Comm: syz-executor400 Not tainted 5.4.0-rc3+ #0 [ 82.430043][ T9226] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 82.440200][ T9226] Call Trace: [ 82.443476][ T9226] dump_stack+0x172/0x1f0 [ 82.447819][ T9226] print_circular_bug.isra.0.cold+0x163/0x172 [ 82.453866][ T9226] check_noncircular+0x32e/0x3e0 [ 82.458793][ T9226] ? print_circular_bug.isra.0+0x230/0x230 [ 82.464600][ T9226] ? alloc_list_entry+0xc0/0xc0 [ 82.469440][ T9226] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 82.475678][ T9226] ? find_first_zero_bit+0x9a/0xc0 [ 82.480773][ T9226] __lock_acquire+0x2596/0x4a00 [ 82.485692][ T9226] ? stack_depot_save+0x25a/0x450 [ 82.490692][ T9226] ? mark_held_locks+0xf0/0xf0 [ 82.495437][ T9226] lock_acquire+0x190/0x410 [ 82.499930][ T9226] ? mon_bin_vma_fault+0x73/0x2d0 [ 82.504942][ T9226] __mutex_lock+0x156/0x13c0 [ 82.509505][ T9226] ? mon_bin_vma_fault+0x73/0x2d0 [ 82.514514][ T9226] ? __kasan_check_read+0x11/0x20 [ 82.519512][ T9226] ? mon_bin_vma_fault+0x73/0x2d0 [ 82.524509][ T9226] ? mutex_trylock+0x2d0/0x2d0 [ 82.529258][ T9226] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 82.534778][ T9226] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 82.540741][ T9226] ? __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 82.546523][ T9226] ? kmem_cache_alloc+0x364/0x710 [ 82.551526][ T9226] ? stack_trace_consume_entry+0x190/0x190 [ 82.557309][ T9226] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 82.563529][ T9226] mutex_lock_nested+0x16/0x20 [ 82.568268][ T9226] ? mutex_lock_nested+0x16/0x20 [ 82.573203][ T9226] mon_bin_vma_fault+0x73/0x2d0 [ 82.578030][ T9226] __do_fault+0x111/0x540 [ 82.582355][ T9226] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 82.588662][ T9226] __handle_mm_fault+0x2dd0/0x4040 [ 82.593763][ T9226] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 82.599327][ T9226] ? handle_mm_fault+0x292/0xaa0 [ 82.604353][ T9226] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 82.610579][ T9226] ? __kasan_check_read+0x11/0x20 [ 82.615591][ T9226] handle_mm_fault+0x3b7/0xaa0 [ 82.620350][ T9226] __get_user_pages+0x7d4/0x1b30 [ 82.625271][ T9226] ? mark_held_locks+0xf0/0xf0 [ 82.630016][ T9226] ? follow_page_mask+0x1cf0/0x1cf0 [ 82.635216][ T9226] ? __mm_populate+0x270/0x380 [ 82.639964][ T9226] ? memset+0x32/0x40 [ 82.643934][ T9226] populate_vma_page_range+0x20d/0x2a0 [ 82.649365][ T9226] __mm_populate+0x204/0x380 [ 82.653932][ T9226] ? populate_vma_page_range+0x2a0/0x2a0 [ 82.659546][ T9226] ? __kasan_check_write+0x14/0x20 [ 82.664637][ T9226] ? up_write+0x155/0x490 [ 82.668944][ T9226] vm_mmap_pgoff+0x213/0x230 [ 82.673515][ T9226] ? randomize_stack_top+0x110/0x110 [ 82.678773][ T9226] ? ksys_dup3+0x3e0/0x3e0 [ 82.683167][ T9226] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 82.689305][ T9226] ksys_mmap_pgoff+0x4aa/0x630 [ 82.694047][ T9226] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 82.699655][ T9226] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 82.705092][ T9226] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 82.710525][ T9226] ? do_syscall_64+0x26/0x760 [ 82.715185][ T9226] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.721233][ T9226] __x64_sys_mmap+0xe9/0x1b0 [ 82.725804][ T9226] do_syscall_64+0xfa/0x760 [ 82.730400][ T9226] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.736397][ T9226] RIP: 0033:0x44a689 [ 82.740273][ T9226] 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 [ 82.759864][ T9226] RSP: 002b:00007fcce0445cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 82.768253][ T9226] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 000000000044a689 [ 82.776240][ T9226] RDX: 0000000002000001 RSI: 0000000002000000 RDI: 0000000020ffd000 [ 82.784188][ T9226] RBP: 00000000006dbc30 R08: 0000000000000005 R09: 0000000000000000 [ 82.792146][ T9226] R10: 03eb6b06d1207692 R11: 0000000000000246 R12: 00000000006dbc3c [ 82.800102][ T9226] R13: 00007ffe7f6a81af R14: 00007fcce04469c0 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