Warning: Permanently added '10.128.0.219' (ECDSA) to the list of known hosts. executing program [ 43.932578][ T26] audit: type=1400 audit(1552236184.883:36): avc: denied { map } for pid=7623 comm="syz-executor080" path="/root/syz-executor080474132" 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 [ 43.993877][ T26] audit: type=1400 audit(1552236184.943:37): avc: denied { map } for pid=7623 comm="syz-executor080" path="/dev/usbmon0" dev="devtmpfs" ino=15760 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 [ 43.994008][ T7625] [ 44.024062][ T7625] ====================================================== [ 44.031056][ T7625] WARNING: possible circular locking dependency detected [ 44.038054][ T7625] 5.0.0+ #15 Not tainted [ 44.042271][ T7625] ------------------------------------------------------ [ 44.049266][ T7625] syz-executor080/7625 is trying to acquire lock: [ 44.055652][ T7625] 00000000290464ab (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 44.064400][ T7625] [ 44.064400][ T7625] but task is already holding lock: [ 44.071741][ T7625] 000000009e74fbff (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 44.080051][ T7625] [ 44.080051][ T7625] which lock already depends on the new lock. [ 44.080051][ T7625] [ 44.090428][ T7625] [ 44.090428][ T7625] the existing dependency chain (in reverse order) is: [ 44.099417][ T7625] [ 44.099417][ T7625] -> #1 (&mm->mmap_sem){++++}: [ 44.106339][ T7625] lock_acquire+0x16f/0x3f0 [ 44.111341][ T7625] __might_fault+0x15e/0x1e0 [ 44.116430][ T7625] _copy_to_user+0x30/0x120 [ 44.121431][ T7625] mon_bin_read+0x329/0x640 [ 44.126433][ T7625] do_iter_read+0x4a9/0x660 [ 44.131432][ T7625] vfs_readv+0xf0/0x160 [ 44.136084][ T7625] do_preadv+0x1c4/0x280 [ 44.140824][ T7625] __x64_sys_preadv+0x9a/0xf0 [ 44.146010][ T7625] do_syscall_64+0x103/0x610 [ 44.151098][ T7625] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.157485][ T7625] [ 44.157485][ T7625] -> #0 (&rp->fetch_lock){+.+.}: [ 44.164577][ T7625] __lock_acquire+0x239c/0x3fb0 [ 44.169930][ T7625] lock_acquire+0x16f/0x3f0 [ 44.174935][ T7625] __mutex_lock+0xf7/0x1310 [ 44.179935][ T7625] mutex_lock_nested+0x16/0x20 [ 44.185197][ T7625] mon_bin_vma_fault+0x73/0x2d0 [ 44.190547][ T7625] __do_fault+0x116/0x4e0 [ 44.195374][ T7625] __handle_mm_fault+0xf6c/0x3ec0 [ 44.200894][ T7625] handle_mm_fault+0x43f/0xb30 [ 44.206156][ T7625] __get_user_pages+0x7b6/0x1a40 [ 44.211591][ T7625] populate_vma_page_range+0x20d/0x2a0 [ 44.217546][ T7625] __mm_populate+0x204/0x380 [ 44.222636][ T7625] vm_mmap_pgoff+0x213/0x230 [ 44.227723][ T7625] ksys_mmap_pgoff+0x4aa/0x630 [ 44.232985][ T7625] __x64_sys_mmap+0xe9/0x1b0 [ 44.238076][ T7625] do_syscall_64+0x103/0x610 [ 44.243169][ T7625] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.249553][ T7625] [ 44.249553][ T7625] other info that might help us debug this: [ 44.249553][ T7625] [ 44.259757][ T7625] Possible unsafe locking scenario: [ 44.259757][ T7625] [ 44.267185][ T7625] CPU0 CPU1 [ 44.272526][ T7625] ---- ---- [ 44.277983][ T7625] lock(&mm->mmap_sem); [ 44.282201][ T7625] lock(&rp->fetch_lock); [ 44.289107][ T7625] lock(&mm->mmap_sem); [ 44.295855][ T7625] lock(&rp->fetch_lock); [ 44.300247][ T7625] [ 44.300247][ T7625] *** DEADLOCK *** [ 44.300247][ T7625] [ 44.308368][ T7625] 1 lock held by syz-executor080/7625: [ 44.313799][ T7625] #0: 000000009e74fbff (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 44.322553][ T7625] [ 44.322553][ T7625] stack backtrace: [ 44.328426][ T7625] CPU: 1 PID: 7625 Comm: syz-executor080 Not tainted 5.0.0+ #15 [ 44.336027][ T7625] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.346057][ T7625] Call Trace: [ 44.349329][ T7625] dump_stack+0x172/0x1f0 [ 44.353640][ T7625] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 44.359685][ T7625] check_prev_add.constprop.0+0xf11/0x23c0 [ 44.365468][ T7625] ? check_usage+0x570/0x570 [ 44.370038][ T7625] ? depot_save_stack+0x1de/0x460 [ 44.375046][ T7625] ? graph_lock+0x7b/0x200 [ 44.379440][ T7625] ? __lockdep_reset_lock+0x450/0x450 [ 44.384838][ T7625] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 44.391056][ T7625] __lock_acquire+0x239c/0x3fb0 [ 44.395886][ T7625] ? depot_save_stack+0x1de/0x460 [ 44.400889][ T7625] ? mark_held_locks+0xf0/0xf0 [ 44.405630][ T7625] ? __do_fault+0x2b9/0x4e0 [ 44.410113][ T7625] lock_acquire+0x16f/0x3f0 [ 44.414595][ T7625] ? mon_bin_vma_fault+0x73/0x2d0 [ 44.419632][ T7625] ? mon_bin_vma_fault+0x73/0x2d0 [ 44.424634][ T7625] __mutex_lock+0xf7/0x1310 [ 44.429113][ T7625] ? mon_bin_vma_fault+0x73/0x2d0 [ 44.434149][ T7625] ? fs_reclaim_acquire.part.0+0x30/0x30 [ 44.439759][ T7625] ? mon_bin_vma_fault+0x73/0x2d0 [ 44.444763][ T7625] ? mutex_trylock+0x1e0/0x1e0 [ 44.449504][ T7625] ? ptlock_alloc+0x20/0x70 [ 44.453986][ T7625] ? rcu_read_lock_sched_held+0x110/0x130 [ 44.459679][ T7625] ? kmem_cache_alloc+0x32e/0x6f0 [ 44.464858][ T7625] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.471092][ T7625] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 44.477312][ T7625] mutex_lock_nested+0x16/0x20 [ 44.482053][ T7625] ? mutex_lock_nested+0x16/0x20 [ 44.486978][ T7625] mon_bin_vma_fault+0x73/0x2d0 [ 44.491844][ T7625] __do_fault+0x116/0x4e0 [ 44.496155][ T7625] ? mem_cgroup_try_charge_delay+0x6c/0xa0 [ 44.501943][ T7625] __handle_mm_fault+0xf6c/0x3ec0 [ 44.506949][ T7625] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 44.512506][ T7625] ? find_held_lock+0x35/0x130 [ 44.517251][ T7625] ? handle_mm_fault+0x322/0xb30 [ 44.522254][ T7625] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.528480][ T7625] ? kasan_check_read+0x11/0x20 [ 44.533316][ T7625] handle_mm_fault+0x43f/0xb30 [ 44.538065][ T7625] __get_user_pages+0x7b6/0x1a40 [ 44.542982][ T7625] ? follow_page_mask+0x19a0/0x19a0 [ 44.548155][ T7625] ? vma_set_page_prot+0x18c/0x240 [ 44.553241][ T7625] ? memset+0x32/0x40 [ 44.557203][ T7625] populate_vma_page_range+0x20d/0x2a0 [ 44.562638][ T7625] __mm_populate+0x204/0x380 [ 44.567210][ T7625] ? populate_vma_page_range+0x2a0/0x2a0 [ 44.572831][ T7625] vm_mmap_pgoff+0x213/0x230 [ 44.577404][ T7625] ? vma_is_stack_for_current+0xd0/0xd0 [ 44.582924][ T7625] ? ksys_dup3+0x3e0/0x3e0 [ 44.587319][ T7625] ksys_mmap_pgoff+0x4aa/0x630 [ 44.592064][ T7625] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 44.597679][ T7625] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.603114][ T7625] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.608675][ T7625] ? do_syscall_64+0x26/0x610 [ 44.613373][ T7625] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.619420][ T7625] __x64_sys_mmap+0xe9/0x1b0 [ 44.623992][ T7625] do_syscall_64+0x103/0x610 [ 44.628564][ T7625] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.634436][ T7625] RIP: 0033:0x449669 [ 44.638311][ T7625] Code: e8 9c b8 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 ab d6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 44.657894][ T7625] RSP: 002b:00007f85c7dc7cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 44.666314][ T7625] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000449669 [ 44.674262][ T7625] RDX: 0000000000000013 RSI: 0000000000400000 RDI: 0000000020a05000 [ 44.682296][ T7625] RBP: 00000000006dac30 R08: 0000000000000005 R09: 0000000000000000 [ 44.690246][ T7625] R10: 0000000000008012 R11: 0000000000000246 R12: 00000000006dac3c [ 44.698216][ T7625] R13: 00007ffca1d7c94f R14: 00007f85c7dc89c0 R15: 20c49ba5e353f7cf