Warning: Permanently added '10.128.0.66' (ECDSA) to the list of known hosts. executing program [ 52.456796] audit: type=1400 audit(1562163310.000:36): avc: denied { map } for pid=7795 comm="syz-executor077" path="/root/syz-executor077535862" 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 [ 52.512498] audit: type=1400 audit(1562163310.050:37): avc: denied { map } for pid=7795 comm="syz-executor077" path="/dev/usbmon0" dev="devtmpfs" ino=15639 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 [ 52.512680] [ 52.539751] ====================================================== [ 52.546044] WARNING: possible circular locking dependency detected [ 52.552377] 4.19.57 #29 Not tainted [ 52.555990] ------------------------------------------------------ [ 52.562307] syz-executor077/7797 is trying to acquire lock: [ 52.568122] 000000006258b47a (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 52.576173] [ 52.576173] but task is already holding lock: [ 52.582126] 00000000b20a6a96 (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 52.589737] [ 52.589737] which lock already depends on the new lock. [ 52.589737] [ 52.598030] [ 52.598030] the existing dependency chain (in reverse order) is: [ 52.605986] [ 52.605986] -> #1 (&mm->mmap_sem){++++}: [ 52.611516] __might_fault+0x15e/0x1e0 [ 52.615903] _copy_to_user+0x30/0x120 [ 52.620204] mon_bin_read+0x329/0x640 [ 52.624502] do_iter_read+0x490/0x640 [ 52.628796] vfs_readv+0xf0/0x160 [ 52.632745] do_preadv+0x1c4/0x280 [ 52.636784] __x64_sys_preadv+0x9a/0xf0 [ 52.641257] do_syscall_64+0xfd/0x620 [ 52.645588] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.651272] [ 52.651272] -> #0 (&rp->fetch_lock){+.+.}: [ 52.656975] lock_acquire+0x16f/0x3f0 [ 52.661274] __mutex_lock+0xf7/0x1300 [ 52.665586] mutex_lock_nested+0x16/0x20 [ 52.670145] mon_bin_vma_fault+0x73/0x2d0 [ 52.674806] __do_fault+0x111/0x480 [ 52.678945] __handle_mm_fault+0xf6d/0x3f80 [ 52.683774] handle_mm_fault+0x43f/0xb30 [ 52.688334] __get_user_pages+0x609/0x17a0 [ 52.693063] populate_vma_page_range+0x20d/0x2a0 [ 52.698321] __mm_populate+0x204/0x380 [ 52.702705] vm_mmap_pgoff+0x213/0x230 [ 52.707091] ksys_mmap_pgoff+0x4aa/0x630 [ 52.711652] __x64_sys_mmap+0xe9/0x1b0 [ 52.716061] do_syscall_64+0xfd/0x620 [ 52.720391] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.726080] [ 52.726080] other info that might help us debug this: [ 52.726080] [ 52.734289] Possible unsafe locking scenario: [ 52.734289] [ 52.740326] CPU0 CPU1 [ 52.746099] ---- ---- [ 52.750743] lock(&mm->mmap_sem); [ 52.754278] lock(&rp->fetch_lock); [ 52.760491] lock(&mm->mmap_sem); [ 52.766547] lock(&rp->fetch_lock); [ 52.770382] [ 52.770382] *** DEADLOCK *** [ 52.770382] [ 52.776430] 1 lock held by syz-executor077/7797: [ 52.781161] #0: 00000000b20a6a96 (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 52.789213] [ 52.789213] stack backtrace: [ 52.793702] CPU: 1 PID: 7797 Comm: syz-executor077 Not tainted 4.19.57 #29 [ 52.800692] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.810045] Call Trace: [ 52.813806] dump_stack+0x172/0x1f0 [ 52.817440] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 52.822805] __lock_acquire+0x2e6d/0x48f0 [ 52.826938] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 52.832023] ? depot_save_stack+0x1de/0x460 [ 52.836406] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 52.841499] ? mark_held_locks+0x100/0x100 [ 52.845717] ? save_stack+0x45/0xd0 [ 52.849339] ? kasan_kmalloc+0xce/0xf0 [ 52.853207] ? kasan_slab_alloc+0xf/0x20 [ 52.857248] ? kmem_cache_alloc+0x12e/0x700 [ 52.861552] ? __lock_is_held+0xb6/0x140 [ 52.865592] ? __mm_populate+0x204/0x380 [ 52.869647] ? mon_bin_vma_fault+0x73/0x2d0 [ 52.873970] lock_acquire+0x16f/0x3f0 [ 52.877858] ? mon_bin_vma_fault+0x73/0x2d0 [ 52.882248] ? mon_bin_vma_fault+0x73/0x2d0 [ 52.886571] __mutex_lock+0xf7/0x1300 [ 52.890357] ? mon_bin_vma_fault+0x73/0x2d0 [ 52.894674] ? __lock_is_held+0xb6/0x140 [ 52.898726] ? mon_bin_vma_fault+0x73/0x2d0 [ 52.903037] ? mutex_trylock+0x1e0/0x1e0 [ 52.907087] ? __lock_is_held+0xb6/0x140 [ 52.911139] ? rcu_read_lock_sched_held+0x110/0x130 [ 52.916136] ? kmem_cache_alloc+0x32a/0x700 [ 52.920440] mutex_lock_nested+0x16/0x20 [ 52.924481] ? mutex_lock_nested+0x16/0x20 [ 52.928694] mon_bin_vma_fault+0x73/0x2d0 [ 52.932820] __do_fault+0x111/0x480 [ 52.936429] ? mem_cgroup_try_charge_delay+0x6c/0xa0 [ 52.941628] __handle_mm_fault+0xf6d/0x3f80 [ 52.946023] ? vmf_insert_mixed_mkwrite+0x90/0x90 [ 52.950933] ? find_held_lock+0x35/0x130 [ 52.954974] ? handle_mm_fault+0x322/0xb30 [ 52.959193] ? kasan_check_read+0x11/0x20 [ 52.963460] handle_mm_fault+0x43f/0xb30 [ 52.967503] __get_user_pages+0x609/0x17a0 [ 52.971729] ? follow_page_mask+0x19d0/0x19d0 [ 52.976207] ? memset+0x32/0x40 [ 52.979469] populate_vma_page_range+0x20d/0x2a0 [ 52.984694] __mm_populate+0x204/0x380 [ 52.988577] ? populate_vma_page_range+0x2a0/0x2a0 [ 52.993491] vm_mmap_pgoff+0x213/0x230 [ 52.997362] ? vma_is_stack_for_current+0xd0/0xd0 [ 53.002206] ? iterate_fd+0x360/0x360 [ 53.006001] ksys_mmap_pgoff+0x4aa/0x630 [ 53.010043] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 53.014953] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.019703] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.024443] ? do_syscall_64+0x26/0x620 [ 53.028404] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.033754] __x64_sys_mmap+0xe9/0x1b0 [ 53.037643] do_syscall_64+0xfd/0x620 [ 53.041428] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.046598] RIP: 0033:0x4497f9 [ 53.049770] 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 [ 53.068653] RSP: 002b:00007f886793ccd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 53.076344] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 00000000004497f9 [ 53.083592] RDX: 0000000000000002 RSI: 0000000000400000 RDI: 0000000020a05000 [ 53.090853] RBP: 00000000006dac30 R08: 0000000000000005 R09: 0000000000000000 [ 53.098105] R10: 0000000000008012 R11: 0000000000000246 R12: 00000000006dac3c [ 53.105376] R13: 00007ffd30a8e19f R14: 00007f886793d9c0 R15: 20c49ba5e353f7cf