Warning: Permanently added '10.128.0.189' (ECDSA) to the list of known hosts. [ 71.229350] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 71.365297] audit: type=1400 audit(1556058878.236:36): avc: denied { map } for pid=7022 comm="syz-executor592" path="/root/syz-executor592124223" dev="sda1" ino=1426 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 71.441227] audit: type=1400 audit(1556058878.316:37): avc: denied { map } for pid=7023 comm="syz-executor592" path="/dev/usbmon0" dev="devtmpfs" ino=186 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 [ 71.441384] [ 71.468292] ====================================================== [ 71.474581] WARNING: possible circular locking dependency detected [ 71.480875] 4.14.113 #3 Not tainted [ 71.484588] ------------------------------------------------------ [ 71.490885] syz-executor592/7025 is trying to acquire lock: [ 71.496572] (&rp->fetch_lock){+.+.}, at: [] mon_bin_vma_fault+0x6f/0x280 [ 71.505071] [ 71.505071] but task is already holding lock: [ 71.511059] (&mm->mmap_sem){++++}, at: [] __mm_populate+0x1e5/0x2c0 [ 71.519219] [ 71.519219] which lock already depends on the new lock. [ 71.519219] [ 71.527612] [ 71.527612] the existing dependency chain (in reverse order) is: [ 71.535210] [ 71.535210] -> #1 (&mm->mmap_sem){++++}: [ 71.540748] lock_acquire+0x16f/0x430 [ 71.545053] __might_fault+0x143/0x1d0 [ 71.549534] _copy_to_user+0x2c/0xd0 [ 71.553755] mon_bin_get_event+0x10a/0x430 [ 71.558591] mon_bin_ioctl+0x9b4/0xb50 [ 71.563175] do_vfs_ioctl+0x7b9/0x1070 [ 71.567567] SyS_ioctl+0x8f/0xc0 [ 71.571435] do_syscall_64+0x1eb/0x630 [ 71.575829] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 71.581517] [ 71.581517] -> #0 (&rp->fetch_lock){+.+.}: [ 71.587227] __lock_acquire+0x2c89/0x45e0 [ 71.591876] lock_acquire+0x16f/0x430 [ 71.596172] __mutex_lock+0xe8/0x1470 [ 71.600471] mutex_lock_nested+0x16/0x20 [ 71.605030] mon_bin_vma_fault+0x6f/0x280 [ 71.609685] __do_fault+0x109/0x390 [ 71.613818] __handle_mm_fault+0xde6/0x3470 [ 71.618637] handle_mm_fault+0x293/0x7c0 [ 71.623195] __get_user_pages+0x465/0x1250 [ 71.627936] populate_vma_page_range+0x18e/0x230 [ 71.633196] __mm_populate+0x198/0x2c0 [ 71.637631] vm_mmap_pgoff+0x1be/0x1d0 [ 71.642065] SyS_mmap_pgoff+0x3ca/0x520 [ 71.646552] SyS_mmap+0x16/0x20 [ 71.650331] do_syscall_64+0x1eb/0x630 [ 71.654724] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 71.660524] [ 71.660524] other info that might help us debug this: [ 71.660524] [ 71.668657] Possible unsafe locking scenario: [ 71.668657] [ 71.674695] CPU0 CPU1 [ 71.680393] ---- ---- [ 71.685068] lock(&mm->mmap_sem); [ 71.688586] lock(&rp->fetch_lock); [ 71.694796] lock(&mm->mmap_sem); [ 71.700833] lock(&rp->fetch_lock); [ 71.704521] [ 71.704521] *** DEADLOCK *** [ 71.704521] [ 71.710570] 1 lock held by syz-executor592/7025: [ 71.715301] #0: (&mm->mmap_sem){++++}, at: [] __mm_populate+0x1e5/0x2c0 [ 71.723790] [ 71.723790] stack backtrace: [ 71.728270] CPU: 0 PID: 7025 Comm: syz-executor592 Not tainted 4.14.113 #3 [ 71.735259] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 71.744596] Call Trace: [ 71.747174] dump_stack+0x138/0x19c [ 71.750881] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 71.756241] __lock_acquire+0x2c89/0x45e0 [ 71.760374] ? trace_hardirqs_on_caller+0x400/0x590 [ 71.765374] ? trace_hardirqs_on+0x10/0x10 [ 71.769593] ? kasan_slab_alloc+0xf/0x20 [ 71.773631] ? kmem_cache_alloc+0x12e/0x780 [ 71.777994] ? ptlock_alloc+0x20/0x70 [ 71.781777] lock_acquire+0x16f/0x430 [ 71.785565] ? mon_bin_vma_fault+0x6f/0x280 [ 71.789873] ? mon_bin_vma_fault+0x6f/0x280 [ 71.794470] __mutex_lock+0xe8/0x1470 [ 71.798460] ? mon_bin_vma_fault+0x6f/0x280 [ 71.802760] ? save_trace+0x290/0x290 [ 71.806534] ? mon_bin_vma_fault+0x6f/0x280 [ 71.810840] ? mutex_trylock+0x1c0/0x1c0 [ 71.814883] ? ptlock_alloc+0x20/0x70 [ 71.818662] ? rcu_lockdep_current_cpu_online+0xf2/0x140 [ 71.824140] ? rcu_read_lock_sched_held+0x110/0x130 [ 71.829230] ? kmem_cache_alloc+0x613/0x780 [ 71.833544] ? __lockdep_init_map+0x10c/0x570 [ 71.838024] mutex_lock_nested+0x16/0x20 [ 71.842070] ? mutex_lock_nested+0x16/0x20 [ 71.846361] mon_bin_vma_fault+0x6f/0x280 [ 71.850879] __do_fault+0x109/0x390 [ 71.854481] __handle_mm_fault+0xde6/0x3470 [ 71.858781] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 71.863520] ? find_held_lock+0x35/0x130 [ 71.867567] ? handle_mm_fault+0x1b6/0x7c0 [ 71.871778] handle_mm_fault+0x293/0x7c0 [ 71.875824] __get_user_pages+0x465/0x1250 [ 71.880042] ? follow_page_mask+0x1550/0x1550 [ 71.884525] ? memset+0x32/0x40 [ 71.887796] populate_vma_page_range+0x18e/0x230 [ 71.892544] __mm_populate+0x198/0x2c0 [ 71.896430] ? populate_vma_page_range+0x230/0x230 [ 71.901346] vm_mmap_pgoff+0x1be/0x1d0 [ 71.905213] ? vma_is_stack_for_current+0xa0/0xa0 [ 71.910038] ? __fget+0x237/0x370 [ 71.913468] SyS_mmap_pgoff+0x3ca/0x520 [ 71.917421] ? find_mergeable_anon_vma+0x2c0/0x2c0 [ 71.922327] ? do_syscall_64+0x53/0x630 [ 71.926274] ? align_vdso_addr+0x60/0x60 [ 71.930311] SyS_mmap+0x16/0x20 [ 71.933589] do_syscall_64+0x1eb/0x630 [ 71.937457] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 71.942281] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 71.947453] RIP: 0033:0x44a679 [ 71.950622] RSP: 002b:00007f39d72e4cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 71.958314] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 000000000044a679 [ 71.965565] RDX: 0000000000000002 RSI: 0000000000400000 RDI: 0000000020a19000 [ 71.972817] RBP: 00000000006dbc30 R08: 0000000000000005 R09: 0000000000000000 [ 71.980796] R10: 0000000000008012 R11: 0000000000000246 R12: 00000000006dbc3c [ 71.988048] R13: 00007ffee4ee11df R14: 00007f39d72e59c0 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 executing program