Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] startpar: service(s) returned failure: restorecond ...[?25l[?1c7[FAIL8[?25h[?0c failed! Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 56.075897][ T26] kauditd_printk_skb: 5 callbacks suppressed [ 56.075913][ T26] audit: type=1400 audit(1555648822.250:35): avc: denied { map } for pid=8335 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.168' (ECDSA) to the list of known hosts. executing program [ 76.650018][ T26] audit: type=1400 audit(1555648842.820:36): avc: denied { map } for pid=8347 comm="syz-executor864" path="/root/syz-executor864403595" dev="sda1" ino=1426 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 76.713401][ T26] audit: type=1400 audit(1555648842.880:37): avc: denied { map } for pid=8348 comm="syz-executor864" path="/dev/usbmon0" dev="devtmpfs" ino=17271 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 [ 76.713579][ T8350] [ 76.742148][ T8350] ====================================================== [ 76.749241][ T8350] WARNING: possible circular locking dependency detected [ 76.756278][ T8350] 5.1.0-rc5+ #74 Not tainted [ 76.760848][ T8350] ------------------------------------------------------ [ 76.767845][ T8350] syz-executor864/8350 is trying to acquire lock: [ 76.774235][ T8350] 0000000027de528b (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 76.783043][ T8350] [ 76.783043][ T8350] but task is already holding lock: [ 76.790499][ T8350] 00000000896e4bef (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 76.798859][ T8350] [ 76.798859][ T8350] which lock already depends on the new lock. [ 76.798859][ T8350] [ 76.809248][ T8350] [ 76.809248][ T8350] the existing dependency chain (in reverse order) is: [ 76.818248][ T8350] [ 76.818248][ T8350] -> #1 (&mm->mmap_sem){++++}: [ 76.825191][ T8350] lock_acquire+0x16f/0x3f0 [ 76.830198][ T8350] __might_fault+0x15e/0x1e0 [ 76.835302][ T8350] _copy_to_user+0x30/0x120 [ 76.840310][ T8350] mon_bin_get_event+0x117/0x450 [ 76.845745][ T8350] mon_bin_ioctl+0xacf/0xc80 [ 76.850848][ T8350] do_vfs_ioctl+0xd6e/0x1390 [ 76.855936][ T8350] ksys_ioctl+0xab/0xd0 [ 76.860693][ T8350] __x64_sys_ioctl+0x73/0xb0 [ 76.865811][ T8350] do_syscall_64+0x103/0x610 [ 76.870926][ T8350] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 76.877319][ T8350] [ 76.877319][ T8350] -> #0 (&rp->fetch_lock){+.+.}: [ 76.884429][ T8350] __lock_acquire+0x239c/0x3fb0 [ 76.889867][ T8350] lock_acquire+0x16f/0x3f0 [ 76.894884][ T8350] __mutex_lock+0xf7/0x1310 [ 76.899965][ T8350] mutex_lock_nested+0x16/0x20 [ 76.905240][ T8350] mon_bin_vma_fault+0x73/0x2d0 [ 76.910606][ T8350] __do_fault+0x116/0x4e0 [ 76.915446][ T8350] __handle_mm_fault+0xf6c/0x3ec0 [ 76.921044][ T8350] handle_mm_fault+0x43f/0xb30 [ 76.926320][ T8350] __get_user_pages+0x7b6/0x1a40 [ 76.931757][ T8350] populate_vma_page_range+0x20d/0x2a0 [ 76.937712][ T8350] __mm_populate+0x204/0x380 [ 76.942804][ T8350] vm_mmap_pgoff+0x213/0x230 [ 76.947955][ T8350] ksys_mmap_pgoff+0x4aa/0x630 [ 76.953244][ T8350] __x64_sys_mmap+0xe9/0x1b0 [ 76.958339][ T8350] do_syscall_64+0x103/0x610 [ 76.963567][ T8350] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 76.970012][ T8350] [ 76.970012][ T8350] other info that might help us debug this: [ 76.970012][ T8350] [ 76.980244][ T8350] Possible unsafe locking scenario: [ 76.980244][ T8350] [ 76.987687][ T8350] CPU0 CPU1 [ 76.993036][ T8350] ---- ---- [ 76.998380][ T8350] lock(&mm->mmap_sem); [ 77.002921][ T8350] lock(&rp->fetch_lock); [ 77.009888][ T8350] lock(&mm->mmap_sem); [ 77.016645][ T8350] lock(&rp->fetch_lock); [ 77.021124][ T8350] [ 77.021124][ T8350] *** DEADLOCK *** [ 77.021124][ T8350] [ 77.029249][ T8350] 1 lock held by syz-executor864/8350: [ 77.034681][ T8350] #0: 00000000896e4bef (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 77.043440][ T8350] [ 77.043440][ T8350] stack backtrace: [ 77.049355][ T8350] CPU: 0 PID: 8350 Comm: syz-executor864 Not tainted 5.1.0-rc5+ #74 [ 77.057487][ T8350] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 77.067646][ T8350] Call Trace: [ 77.070936][ T8350] dump_stack+0x172/0x1f0 [ 77.075261][ T8350] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 77.081838][ T8350] check_prev_add.constprop.0+0xf11/0x23c0 [ 77.087923][ T8350] ? check_usage+0x570/0x570 [ 77.092539][ T8350] ? depot_save_stack+0x1de/0x460 [ 77.097565][ T8350] ? graph_lock+0x7b/0x200 [ 77.101973][ T8350] ? __lockdep_reset_lock+0x450/0x450 [ 77.107350][ T8350] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 77.113649][ T8350] __lock_acquire+0x239c/0x3fb0 [ 77.118598][ T8350] ? depot_save_stack+0x1de/0x460 [ 77.123615][ T8350] ? mark_held_locks+0xf0/0xf0 [ 77.128379][ T8350] ? __do_fault+0x2b9/0x4e0 [ 77.132879][ T8350] lock_acquire+0x16f/0x3f0 [ 77.137363][ T8350] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.142372][ T8350] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.147397][ T8350] __mutex_lock+0xf7/0x1310 [ 77.151887][ T8350] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.156892][ T8350] ? fs_reclaim_acquire.part.0+0x30/0x30 [ 77.162596][ T8350] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.167618][ T8350] ? mutex_trylock+0x1e0/0x1e0 [ 77.172522][ T8350] ? ptlock_alloc+0x20/0x70 [ 77.177017][ T8350] ? rcu_read_lock_sched_held+0x110/0x130 [ 77.182722][ T8350] ? kmem_cache_alloc+0x32e/0x6f0 [ 77.188087][ T8350] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.194325][ T8350] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 77.200563][ T8350] mutex_lock_nested+0x16/0x20 [ 77.205314][ T8350] ? mutex_lock_nested+0x16/0x20 [ 77.210235][ T8350] mon_bin_vma_fault+0x73/0x2d0 [ 77.215073][ T8350] __do_fault+0x116/0x4e0 [ 77.219461][ T8350] ? mem_cgroup_try_charge_delay+0x6c/0xa0 [ 77.225266][ T8350] __handle_mm_fault+0xf6c/0x3ec0 [ 77.230279][ T8350] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 77.235813][ T8350] ? find_held_lock+0x35/0x130 [ 77.240663][ T8350] ? handle_mm_fault+0x322/0xb30 [ 77.245588][ T8350] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.251818][ T8350] ? kasan_check_read+0x11/0x20 [ 77.256664][ T8350] handle_mm_fault+0x43f/0xb30 [ 77.261412][ T8350] __get_user_pages+0x7b6/0x1a40 [ 77.266345][ T8350] ? follow_page_mask+0x19a0/0x19a0 [ 77.271532][ T8350] ? vma_set_page_prot+0x18c/0x240 [ 77.276788][ T8350] ? memset+0x32/0x40 [ 77.280989][ T8350] populate_vma_page_range+0x20d/0x2a0 [ 77.286766][ T8350] __mm_populate+0x204/0x380 [ 77.291514][ T8350] ? populate_vma_page_range+0x2a0/0x2a0 [ 77.297396][ T8350] vm_mmap_pgoff+0x213/0x230 [ 77.302047][ T8350] ? vma_is_stack_for_current+0xd0/0xd0 [ 77.307594][ T8350] ? ksys_dup3+0x3e0/0x3e0 [ 77.312009][ T8350] ksys_mmap_pgoff+0x4aa/0x630 [ 77.316769][ T8350] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 77.322457][ T8350] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 77.327913][ T8350] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 77.333357][ T8350] ? do_syscall_64+0x26/0x610 [ 77.338029][ T8350] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.344083][ T8350] __x64_sys_mmap+0xe9/0x1b0 [ 77.348659][ T8350] do_syscall_64+0x103/0x610 [ 77.353303][ T8350] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.359174][ T8350] RIP: 0033:0x44a679 [ 77.363047][ T8350] 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 [ 77.382737][ T8350] RSP: 002b:00007fafd4c07cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 77.391289][ T8350] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 000000000044a679 [ 77.399349][ T8350] RDX: 0000000000000002 RSI: 0000000000400000 RDI: 0000000020a19000 [ 77.407307][ T8350] RBP: 00000000006dbc30 R08: 0000000000000005 R09: 0000000000000000 [ 77.415259][ T8350] R10: 0000000000008012 R11: 0000000000000246 R12: 00000000006dbc3c [ 77.423214][ T8350] R13: 00007ffd40540d3f R14: 00007fafd4c089c0 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