[....] 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. [ 66.289925][ T26] kauditd_printk_skb: 5 callbacks suppressed [ 66.289938][ T26] audit: type=1800 audit(1562164630.383:33): pid=8986 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 66.319032][ T26] audit: type=1800 audit(1562164630.383:34): pid=8986 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 70.334881][ T26] audit: type=1400 audit(1562164634.423:35): avc: denied { map } for pid=9167 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.1.9' (ECDSA) to the list of known hosts. executing program [ 76.866472][ T26] audit: type=1400 audit(1562164640.953:36): avc: denied { map } for pid=9179 comm="syz-executor621" path="/root/syz-executor621485554" 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 [ 76.943044][ T26] audit: type=1400 audit(1562164641.033:37): avc: denied { map } for pid=9180 comm="syz-executor621" path="/dev/usbmon0" dev="devtmpfs" ino=1598 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.943206][ T9182] [ 76.972402][ T9182] ====================================================== [ 76.979398][ T9182] WARNING: possible circular locking dependency detected [ 76.986395][ T9182] 5.2.0-rc7+ #40 Not tainted [ 76.990957][ T9182] ------------------------------------------------------ [ 76.997964][ T9182] syz-executor621/9182 is trying to acquire lock: [ 77.004350][ T9182] 00000000289b893d (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 77.013103][ T9182] [ 77.013103][ T9182] but task is already holding lock: [ 77.020455][ T9182] 000000007bed88ca (&mm->mmap_sem#2){++++}, at: __mm_populate+0x270/0x380 [ 77.028942][ T9182] [ 77.028942][ T9182] which lock already depends on the new lock. [ 77.028942][ T9182] [ 77.039341][ T9182] [ 77.039341][ T9182] the existing dependency chain (in reverse order) is: [ 77.048328][ T9182] [ 77.048328][ T9182] -> #1 (&mm->mmap_sem#2){++++}: [ 77.055444][ T9182] __might_fault+0x15e/0x1e0 [ 77.060540][ T9182] _copy_to_user+0x30/0x120 [ 77.065557][ T9182] mon_bin_read+0x329/0x640 [ 77.070560][ T9182] do_iter_read+0x4a4/0x660 [ 77.075578][ T9182] vfs_readv+0xf0/0x160 [ 77.080229][ T9182] do_preadv+0x1c4/0x280 [ 77.084968][ T9182] __x64_sys_preadv+0x9a/0xf0 [ 77.090167][ T9182] do_syscall_64+0xfd/0x680 [ 77.095178][ T9182] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.101562][ T9182] [ 77.101562][ T9182] -> #0 (&rp->fetch_lock){+.+.}: [ 77.108656][ T9182] lock_acquire+0x16f/0x3f0 [ 77.113681][ T9182] __mutex_lock+0xf7/0x1310 [ 77.118681][ T9182] mutex_lock_nested+0x16/0x20 [ 77.123944][ T9182] mon_bin_vma_fault+0x73/0x2d0 [ 77.129292][ T9182] __do_fault+0x111/0x4d0 [ 77.134142][ T9182] __handle_mm_fault+0xf67/0x3eb0 [ 77.139732][ T9182] handle_mm_fault+0x3b7/0xa90 [ 77.144995][ T9182] __get_user_pages+0x7b6/0x1a40 [ 77.150437][ T9182] populate_vma_page_range+0x20d/0x2a0 [ 77.156393][ T9182] __mm_populate+0x204/0x380 [ 77.161510][ T9182] vm_mmap_pgoff+0x213/0x230 [ 77.166606][ T9182] ksys_mmap_pgoff+0x4aa/0x630 [ 77.171905][ T9182] __x64_sys_mmap+0xe9/0x1b0 [ 77.177021][ T9182] do_syscall_64+0xfd/0x680 [ 77.182045][ T9182] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.188433][ T9182] [ 77.188433][ T9182] other info that might help us debug this: [ 77.188433][ T9182] [ 77.198639][ T9182] Possible unsafe locking scenario: [ 77.198639][ T9182] [ 77.206081][ T9182] CPU0 CPU1 [ 77.211467][ T9182] ---- ---- [ 77.216816][ T9182] lock(&mm->mmap_sem#2); [ 77.221231][ T9182] lock(&rp->fetch_lock); [ 77.228162][ T9182] lock(&mm->mmap_sem#2); [ 77.235085][ T9182] lock(&rp->fetch_lock); [ 77.239475][ T9182] [ 77.239475][ T9182] *** DEADLOCK *** [ 77.239475][ T9182] [ 77.247602][ T9182] 1 lock held by syz-executor621/9182: [ 77.253034][ T9182] #0: 000000007bed88ca (&mm->mmap_sem#2){++++}, at: __mm_populate+0x270/0x380 [ 77.261977][ T9182] [ 77.261977][ T9182] stack backtrace: [ 77.267845][ T9182] CPU: 1 PID: 9182 Comm: syz-executor621 Not tainted 5.2.0-rc7+ #40 [ 77.275791][ T9182] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 77.285820][ T9182] Call Trace: [ 77.289117][ T9182] dump_stack+0x172/0x1f0 [ 77.293450][ T9182] print_circular_bug.cold+0x1cc/0x28f [ 77.298887][ T9182] __lock_acquire+0x3755/0x5490 [ 77.303715][ T9182] ? lockdep_hardirqs_on+0x418/0x5d0 [ 77.308980][ T9182] ? mark_held_locks+0xf0/0xf0 [ 77.313724][ T9182] ? save_stack+0x5c/0x90 [ 77.318033][ T9182] ? save_stack+0x23/0x90 [ 77.322342][ T9182] ? __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 77.328137][ T9182] ? kasan_slab_alloc+0xf/0x20 [ 77.332877][ T9182] ? kmem_cache_alloc+0x11a/0x6f0 [ 77.337880][ T9182] ? pte_alloc_one+0x6d/0x1a0 [ 77.342533][ T9182] ? __handle_mm_fault+0xf67/0x3eb0 [ 77.347726][ T9182] lock_acquire+0x16f/0x3f0 [ 77.352213][ T9182] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.357218][ T9182] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.362220][ T9182] __mutex_lock+0xf7/0x1310 [ 77.366701][ T9182] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.371702][ T9182] ? fs_reclaim_acquire.part.0+0x30/0x30 [ 77.377309][ T9182] ? mon_bin_vma_fault+0x73/0x2d0 [ 77.382312][ T9182] ? mutex_trylock+0x1e0/0x1e0 [ 77.387055][ T9182] ? ptlock_alloc+0x20/0x70 [ 77.391559][ T9182] ? rcu_read_lock_sched_held+0x110/0x130 [ 77.397256][ T9182] ? kmem_cache_alloc+0x32b/0x6f0 [ 77.402259][ T9182] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.408496][ T9182] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 77.414715][ T9182] mutex_lock_nested+0x16/0x20 [ 77.419453][ T9182] ? mutex_lock_nested+0x16/0x20 [ 77.424376][ T9182] mon_bin_vma_fault+0x73/0x2d0 [ 77.429205][ T9182] __do_fault+0x111/0x4d0 [ 77.433532][ T9182] ? mem_cgroup_try_charge_delay+0x6c/0xa0 [ 77.439320][ T9182] __handle_mm_fault+0xf67/0x3eb0 [ 77.444324][ T9182] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 77.449848][ T9182] ? find_held_lock+0x35/0x130 [ 77.454675][ T9182] ? handle_mm_fault+0x292/0xa90 [ 77.459592][ T9182] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.465813][ T9182] ? kasan_check_read+0x11/0x20 [ 77.470676][ T9182] handle_mm_fault+0x3b7/0xa90 [ 77.475423][ T9182] __get_user_pages+0x7b6/0x1a40 [ 77.480338][ T9182] ? follow_page_mask+0x19a0/0x19a0 [ 77.485524][ T9182] ? vma_set_page_prot+0x18c/0x240 [ 77.490620][ T9182] ? memset+0x32/0x40 [ 77.494578][ T9182] populate_vma_page_range+0x20d/0x2a0 [ 77.500015][ T9182] __mm_populate+0x204/0x380 [ 77.504585][ T9182] ? populate_vma_page_range+0x2a0/0x2a0 [ 77.510212][ T9182] ? kasan_check_write+0x14/0x20 [ 77.515137][ T9182] vm_mmap_pgoff+0x213/0x230 [ 77.520081][ T9182] ? vma_is_stack_for_current+0xd0/0xd0 [ 77.525639][ T9182] ? ksys_dup3+0x3e0/0x3e0 [ 77.530053][ T9182] ksys_mmap_pgoff+0x4aa/0x630 [ 77.534795][ T9182] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 77.540404][ T9182] ? rcu_read_lock_sched_held+0x110/0x130 [ 77.546114][ T9182] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 77.551557][ T9182] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 77.556997][ T9182] ? do_syscall_64+0x26/0x680 [ 77.561652][ T9182] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.567697][ T9182] __x64_sys_mmap+0xe9/0x1b0 [ 77.572266][ T9182] do_syscall_64+0xfd/0x680 [ 77.576768][ T9182] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.582728][ T9182] RIP: 0033:0x44a6f9 [ 77.586607][ T9182] 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.608562][ T9182] RSP: 002b:00007f3074b40cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 77.616949][ T9182] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 000000000044a6f9 [ 77.624896][ T9182] RDX: 0000000000000002 RSI: 0000000000400000 RDI: 0000000020a05000 [ 77.632843][ T9182] RBP: 00000000006dbc30 R08: 0000000000000005 R09: 0000000000000000 [ 77.640789][ T9182] R10: 0000000000008012 R11: 0000000000000246 R12: 00000000006dbc3c [ 77.648752][ T9182] R13: 00007ffd532021ef R14: 00007f3074b419c0 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 executing program executing program executing program