Warning: Permanently added '10.128.1.47' (ECDSA) to the list of known hosts. executing program [ 56.020242] audit: type=1400 audit(1556179680.707:36): avc: denied { map } for pid=8008 comm="syz-executor377" path="/root/syz-executor377612397" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 56.029766] [ 56.046893] audit: type=1400 audit(1556179680.707:37): avc: denied { map } for pid=8008 comm="syz-executor377" path="/dev/usbmon0" dev="devtmpfs" ino=481 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 [ 56.048171] ====================================================== [ 56.080366] WARNING: possible circular locking dependency detected [ 56.086684] 4.19.36 #4 Not tainted [ 56.090203] ------------------------------------------------------ [ 56.096516] syz-executor377/8009 is trying to acquire lock: [ 56.102218] 00000000d86f1a94 (&mm->mmap_sem){++++}, at: __might_fault+0xfb/0x1e0 [ 56.109768] [ 56.109768] but task is already holding lock: [ 56.115735] 00000000cb62a95d (&rp->fetch_lock){+.+.}, at: mon_bin_read+0x60/0x640 [ 56.123359] [ 56.123359] which lock already depends on the new lock. [ 56.123359] [ 56.131660] [ 56.131660] the existing dependency chain (in reverse order) is: [ 56.139383] [ 56.139383] -> #1 (&rp->fetch_lock){+.+.}: [ 56.145216] __mutex_lock+0xf7/0x1300 [ 56.149531] mutex_lock_nested+0x16/0x20 [ 56.154106] mon_bin_vma_fault+0x73/0x2d0 [ 56.158786] __do_fault+0x116/0x480 [ 56.163410] __handle_mm_fault+0xf72/0x3f80 [ 56.170783] handle_mm_fault+0x43f/0xb30 [ 56.175427] __get_user_pages+0x609/0x1770 [ 56.180285] populate_vma_page_range+0x20d/0x2a0 [ 56.185562] __mm_populate+0x204/0x380 [ 56.190536] vm_mmap_pgoff+0x213/0x230 [ 56.195284] ksys_mmap_pgoff+0x4aa/0x630 [ 56.200274] __x64_sys_mmap+0xe9/0x1b0 [ 56.205224] do_syscall_64+0x103/0x610 [ 56.210190] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.216288] [ 56.216288] -> #0 (&mm->mmap_sem){++++}: [ 56.222086] lock_acquire+0x16f/0x3f0 [ 56.226517] __might_fault+0x15e/0x1e0 [ 56.230926] _copy_to_user+0x30/0x120 [ 56.235333] mon_bin_read+0x329/0x640 [ 56.239688] __vfs_read+0x116/0x800 [ 56.244243] vfs_read+0x194/0x3d0 [ 56.248209] ksys_read+0xea/0x1f0 [ 56.252347] __x64_sys_read+0x73/0xb0 [ 56.256664] do_syscall_64+0x103/0x610 [ 56.261109] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.266807] [ 56.266807] other info that might help us debug this: [ 56.266807] [ 56.275460] Possible unsafe locking scenario: [ 56.275460] [ 56.284142] CPU0 CPU1 [ 56.291089] ---- ---- [ 56.297003] lock(&rp->fetch_lock); [ 56.300787] lock(&mm->mmap_sem); [ 56.306930] lock(&rp->fetch_lock); [ 56.313415] lock(&mm->mmap_sem); [ 56.316987] [ 56.316987] *** DEADLOCK *** [ 56.316987] [ 56.323056] 1 lock held by syz-executor377/8009: [ 56.327892] #0: 00000000cb62a95d (&rp->fetch_lock){+.+.}, at: mon_bin_read+0x60/0x640 [ 56.335962] [ 56.335962] stack backtrace: [ 56.340700] CPU: 0 PID: 8009 Comm: syz-executor377 Not tainted 4.19.36 #4 [ 56.347611] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.357882] Call Trace: [ 56.360567] dump_stack+0x172/0x1f0 [ 56.364195] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 56.369700] __lock_acquire+0x2e6d/0x48f0 [ 56.373849] ? mark_held_locks+0xb1/0x100 [ 56.378195] ? mark_held_locks+0x100/0x100 [ 56.382444] ? _raw_spin_unlock_irqrestore+0xa4/0xe0 [ 56.387893] lock_acquire+0x16f/0x3f0 [ 56.393080] ? __might_fault+0xfb/0x1e0 [ 56.398288] __might_fault+0x15e/0x1e0 [ 56.405746] ? __might_fault+0xfb/0x1e0 [ 56.411086] _copy_to_user+0x30/0x120 [ 56.416270] mon_bin_read+0x329/0x640 [ 56.421452] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.427482] __vfs_read+0x116/0x800 [ 56.431152] ? copy_from_buf.isra.0+0x1c0/0x1c0 [ 56.436085] ? vfs_copy_file_range+0xba0/0xba0 [ 56.440753] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.446436] ? __inode_security_revalidate+0xda/0x120 [ 56.455842] ? avc_policy_seqno+0xd/0x70 [ 56.464017] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 56.469941] ? security_file_permission+0x1ce/0x230 [ 56.475142] ? security_file_permission+0x8f/0x230 [ 56.481224] ? rw_verify_area+0x118/0x360 [ 56.486537] vfs_read+0x194/0x3d0 [ 56.490967] ksys_read+0xea/0x1f0 [ 56.494954] ? kernel_write+0x120/0x120 [ 56.499127] ? do_syscall_64+0x26/0x610 [ 56.503539] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.509251] ? do_syscall_64+0x26/0x610 [ 56.513271] __x64_sys_read+0x73/0xb0 [ 56.517121] do_syscall_64+0x103/0x610 [ 56.522840] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.528066] RIP: 0033:0x449739 [ 56.531429] Code: e8 ec b9 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 [ 56.551677] RSP: 002b:00007fa47c035ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 56.560016] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000449739 [ 56.567555] RDX: 000000000000002f RSI: