Warning: Permanently added '10.128.0.101' (ECDSA) to the list of known hosts. [ 48.157940] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 48.271839] audit: type=1400 audit(1571728630.760:37): avc: denied { map } for pid=6820 comm="syz-executor273" path="/root/syz-executor273489809" 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 [ 48.347108] audit: type=1400 audit(1571728630.830:38): avc: denied { map } for pid=6821 comm="syz-executor273" path="/dev/usbmon4" dev="devtmpfs" ino=1499 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 [ 48.347199] [ 48.374266] ====================================================== [ 48.380558] WARNING: possible circular locking dependency detected [ 48.386856] 4.14.150 #0 Not tainted [ 48.390455] ------------------------------------------------------ [ 48.396852] syz-executor273/6823 is trying to acquire lock: [ 48.402538] (&rp->fetch_lock){+.+.}, at: [] mon_bin_vma_fault+0x6f/0x280 [ 48.411054] [ 48.411054] but task is already holding lock: [ 48.417058] (&mm->mmap_sem){++++}, at: [] __mm_populate+0x1e5/0x2c0 [ 48.425102] [ 48.425102] which lock already depends on the new lock. [ 48.425102] [ 48.433395] [ 48.433395] the existing dependency chain (in reverse order) is: [ 48.440991] [ 48.440991] -> #1 (&mm->mmap_sem){++++}: [ 48.446517] lock_acquire+0x16f/0x430 [ 48.450814] __might_fault+0x143/0x1d0 [ 48.455237] _copy_to_user+0x2c/0xd0 [ 48.459462] mon_bin_read+0x2fb/0x5e0 [ 48.463760] __vfs_read+0x105/0x6a0 [ 48.467882] vfs_read+0x137/0x350 [ 48.472089] SyS_read+0xfd/0x230 [ 48.475997] do_syscall_64+0x1e8/0x640 [ 48.480380] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.486064] [ 48.486064] -> #0 (&rp->fetch_lock){+.+.}: [ 48.491774] __lock_acquire+0x2cb3/0x4620 [ 48.496418] lock_acquire+0x16f/0x430 [ 48.500713] __mutex_lock+0xe8/0x1470 [ 48.505010] mutex_lock_nested+0x16/0x20 [ 48.509578] mon_bin_vma_fault+0x6f/0x280 [ 48.514250] __do_fault+0x104/0x390 [ 48.518377] __handle_mm_fault+0x2460/0x3470 [ 48.523295] handle_mm_fault+0x293/0x7c0 [ 48.527856] __get_user_pages+0x465/0x1220 [ 48.532590] populate_vma_page_range+0x18e/0x230 [ 48.537841] __mm_populate+0x198/0x2c0 [ 48.542225] vm_mmap_pgoff+0x1be/0x1d0 [ 48.546607] SyS_mmap_pgoff+0x3ca/0x520 [ 48.551075] SyS_mmap+0x16/0x20 [ 48.554851] do_syscall_64+0x1e8/0x640 [ 48.559235] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.564925] [ 48.564925] other info that might help us debug this: [ 48.564925] [ 48.573053] Possible unsafe locking scenario: [ 48.573053] [ 48.579085] CPU0 CPU1 [ 48.583749] ---- ---- [ 48.588399] lock(&mm->mmap_sem); [ 48.591925] lock(&rp->fetch_lock); [ 48.598315] lock(&mm->mmap_sem); [ 48.604349] lock(&rp->fetch_lock); [ 48.608040] [ 48.608040] *** DEADLOCK *** [ 48.608040] [ 48.614102] 1 lock held by syz-executor273/6823: [ 48.618840] #0: (&mm->mmap_sem){++++}, at: [] __mm_populate+0x1e5/0x2c0 [ 48.627324] [ 48.627324] stack backtrace: [ 48.631803] CPU: 0 PID: 6823 Comm: syz-executor273 Not tainted 4.14.150 #0 [ 48.638792] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.648144] Call Trace: [ 48.650762] dump_stack+0x138/0x197 [ 48.654378] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 48.659764] __lock_acquire+0x2cb3/0x4620 [ 48.663931] ? trace_hardirqs_on_caller+0x400/0x590 [ 48.668960] ? trace_hardirqs_on+0x10/0x10 [ 48.673367] ? kasan_slab_alloc+0xf/0x20 [ 48.677415] ? kmem_cache_alloc+0x12e/0x780 [ 48.681789] ? ptlock_alloc+0x20/0x70 [ 48.685575] lock_acquire+0x16f/0x430 [ 48.689355] ? mon_bin_vma_fault+0x6f/0x280 [ 48.693659] ? mon_bin_vma_fault+0x6f/0x280 [ 48.697964] __mutex_lock+0xe8/0x1470 [ 48.701744] ? mon_bin_vma_fault+0x6f/0x280 [ 48.706043] ? save_trace+0x290/0x290 [ 48.709824] ? mon_bin_vma_fault+0x6f/0x280 [ 48.714177] ? mutex_trylock+0x1c0/0x1c0 [ 48.718227] ? ptlock_alloc+0x20/0x70 [ 48.722183] ? rcu_lockdep_current_cpu_online+0xf2/0x140 [ 48.727619] ? rcu_read_lock_sched_held+0x110/0x130 [ 48.732653] ? kmem_cache_alloc+0x611/0x780 [ 48.736977] ? __lock_acquire+0x5f7/0x4620 [ 48.741189] ? __lockdep_init_map+0x10c/0x570 [ 48.745663] mutex_lock_nested+0x16/0x20 [ 48.749714] ? mutex_lock_nested+0x16/0x20 [ 48.753927] mon_bin_vma_fault+0x6f/0x280 [ 48.758054] __do_fault+0x104/0x390 [ 48.761746] ? trace_hardirqs_on+0x10/0x10 [ 48.765975] __handle_mm_fault+0x2460/0x3470 [ 48.770360] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 48.775095] ? find_held_lock+0x35/0x130 [ 48.779131] ? handle_mm_fault+0x1b6/0x7c0 [ 48.783349] handle_mm_fault+0x293/0x7c0 [ 48.787395] __get_user_pages+0x465/0x1220 [ 48.791615] ? follow_page_mask+0x1560/0x1560 [ 48.796085] ? memset+0x32/0x40 [ 48.799341] populate_vma_page_range+0x18e/0x230 [ 48.804072] __mm_populate+0x198/0x2c0 [ 48.807936] ? populate_vma_page_range+0x230/0x230 [ 48.812844] vm_mmap_pgoff+0x1be/0x1d0 [ 48.816706] ? vma_is_stack_for_current+0xa0/0xa0 [ 48.821698] ? __fget+0x237/0x370 [ 48.825129] SyS_mmap_pgoff+0x3ca/0x520 [ 48.829168] ? find_mergeable_anon_vma+0x2c0/0x2c0 [ 48.834076] ? do_syscall_64+0x53/0x640 [ 48.838046] ? align_vdso_addr+0x60/0x60 [ 48.843763] SyS_mmap+0x16/0x20 [ 48.847041] do_syscall_64+0x1e8/0x640 [ 48.850913] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 48.855738] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.860903] RIP: 0033:0x44a689 [ 48.864082] RSP: 002b:00007f71e4a95cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 48.871775] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 000000000044a689 [ 48.879022] RDX: 0000000002000001 RSI: 0000000002000000 RDI: 0000000020ffd000 [ 48.886269] RBP: 00000000006dbc30 R08: 0000000000000005 R09: 0000000000000000 [ 48.893528] R10: 03eb6b06d1207692 R11: 0000000000000246 R12: 00000000006dbc3c [ 48.900783] R13: 00007ffc8cfdc57f R14: 00007f71e4a969c0 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