Warning: Permanently added '10.128.10.28' (ECDSA) to the list of known hosts. [ 81.530402] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 81.620792] audit: type=1400 audit(1542419435.102:7): avc: denied { map } for pid=1810 comm="syz-executor807" path="/root/syz-executor807492650" dev="sda1" ino=16461 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program [ 81.681480] audit: type=1400 audit(1542419435.162:8): avc: denied { map } for pid=1811 comm="syz-executor807" path="/dev/ashmem" dev="devtmpfs" ino=1082 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1 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 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 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 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 [ 89.601110] [ 89.602758] ====================================================== [ 89.609049] WARNING: possible circular locking dependency detected [ 89.615342] 4.14.81+ #6 Not tainted [ 89.618941] ------------------------------------------------------ [ 89.625232] syz-executor807/2168 is trying to acquire lock: [ 89.630911] (&mm->mmap_sem){++++}, at: [] __do_page_fault+0x868/0xb60 [ 89.639122] [ 89.639122] but task is already holding lock: [ 89.645063] (&sb->s_type->i_mutex_key#10){+.+.}, at: [] generic_file_write_iter+0x99/0x650 [ 89.655097] [ 89.655097] which lock already depends on the new lock. [ 89.655097] [ 89.663400] [ 89.663400] the existing dependency chain (in reverse order) is: [ 89.671009] [ 89.671009] -> #2 (&sb->s_type->i_mutex_key#10){+.+.}: [ 89.677748] down_write+0x34/0x90 [ 89.681699] shmem_fallocate+0x149/0xb20 [ 89.686259] ashmem_shrink_scan+0x1b6/0x4e0 [ 89.691074] ashmem_ioctl+0x2cc/0xe20 [ 89.695367] do_vfs_ioctl+0x1a0/0x1030 [ 89.699749] SyS_ioctl+0x7e/0xb0 [ 89.703608] do_syscall_64+0x19b/0x4b0 [ 89.707999] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 89.713683] [ 89.713683] -> #1 (ashmem_mutex){+.+.}: [ 89.719473] __mutex_lock+0xf5/0x1480 [ 89.723764] ashmem_mmap+0x4c/0x430 [ 89.727883] mmap_region+0x836/0xfb0 [ 89.732087] do_mmap+0x551/0xb80 [ 89.735947] vm_mmap_pgoff+0x180/0x1d0 [ 89.740329] SyS_mmap_pgoff+0xf8/0x1a0 [ 89.744711] do_syscall_64+0x19b/0x4b0 [ 89.749091] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 89.754773] [ 89.754773] -> #0 (&mm->mmap_sem){++++}: [ 89.760292] lock_acquire+0x10f/0x380 [ 89.764587] down_read+0x37/0xa0 [ 89.768453] __do_page_fault+0x868/0xb60 [ 89.773006] page_fault+0x22/0x50 [ 89.776954] iov_iter_fault_in_readable+0x2b9/0x370 [ 89.782466] generic_perform_write+0x166/0x430 [ 89.787541] __generic_file_write_iter+0x345/0x540 [ 89.792961] generic_file_write_iter+0x36f/0x650 [ 89.798227] __vfs_write+0x417/0x5c0 [ 89.802438] vfs_write+0x17f/0x4d0 [ 89.806470] SyS_write+0xc2/0x1a0 [ 89.810421] do_syscall_64+0x19b/0x4b0 [ 89.814805] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 89.820505] [ 89.820505] other info that might help us debug this: [ 89.820505] [ 89.828625] Chain exists of: [ 89.828625] &mm->mmap_sem --> ashmem_mutex --> &sb->s_type->i_mutex_key#10 [ 89.828625] [ 89.840146] Possible unsafe locking scenario: [ 89.840146] [ 89.846175] CPU0 CPU1 [ 89.850812] ---- ---- [ 89.855450] lock(&sb->s_type->i_mutex_key#10); [ 89.860290] lock(ashmem_mutex); [ 89.866231] lock(&sb->s_type->i_mutex_key#10); [ 89.873488] lock(&mm->mmap_sem); [ 89.877014] [ 89.877014] *** DEADLOCK *** [ 89.877014] [ 89.883061] 2 locks held by syz-executor807/2168: [ 89.887870] #0: (sb_writers#6){.+.+}, at: [] vfs_write+0x3d7/0x4d0 [ 89.895910] #1: (&sb->s_type->i_mutex_key#10){+.+.}, at: [] generic_file_write_iter+0x99/0x650 [ 89.906373] [ 89.906373] stack backtrace: [ 89.910840] CPU: 0 PID: 2168 Comm: syz-executor807 Not tainted 4.14.81+ #6 [ 89.917927] Call Trace: [ 89.920496] dump_stack+0xb9/0x11b [ 89.924026] print_circular_bug.isra.18.cold.43+0x2d3/0x40c [ 89.929707] ? save_trace+0xd6/0x250 [ 89.933400] __lock_acquire+0x2ff9/0x4320 [ 89.937939] ? kasan_unpoison_shadow+0x30/0x40 [ 89.942504] ? trace_hardirqs_on+0x10/0x10 [ 89.946717] ? __lock_acquire+0x619/0x4320 [ 89.950928] ? trace_hardirqs_on+0x10/0x10 [ 89.955134] ? cmp_ex_search+0x6f/0x90 [ 89.958992] ? bsearch+0x83/0xa0 [ 89.962332] lock_acquire+0x10f/0x380 [ 89.966110] ? __do_page_fault+0x868/0xb60 [ 89.970312] down_read+0x37/0xa0 [ 89.973649] ? __do_page_fault+0x868/0xb60 [ 89.977858] __do_page_fault+0x868/0xb60 [ 89.981892] ? bad_area_access_error+0x330/0x330 [ 89.986621] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 89.991435] page_fault+0x22/0x50 [ 89.994886] RIP: 0010:iov_iter_fault_in_readable+0x2b9/0x370 [ 90.000669] RSP: 0018:ffff8801cc1af9f8 EFLAGS: 00010297 [ 90.006019] RAX: 0000000000000000 RBX: 000000000000007f RCX: 0000000000001000 [ 90.013261] RDX: 0000000000000000 RSI: 0000000000001000 RDI: ffff8801cc1afcf8 [ 90.020506] RBP: 1ffff10039835f40 R08: 0000000000001000 R09: ffffea00073b6d40 [ 90.027753] R10: ffffffff9447e9c0 R11: ffff8801cedb5fff R12: 0000000000000000 [ 90.035005] R13: 0000000020de353f R14: 0000000000001000 R15: ffff8801cc1afcf0 [ 90.042262] ? shmem_put_link+0xd0/0xd0 [ 90.046215] ? iov_iter_fault_in_readable+0x2b3/0x370 [ 90.051379] ? flex_array_free_parts+0xd0/0xd0 [ 90.055958] ? __set_page_dirty_no_writeback+0xa7/0x100 [ 90.061296] ? iov_iter_advance+0x1cf/0xc20 [ 90.065594] generic_perform_write+0x166/0x430 [ 90.070164] ? filemap_page_mkwrite+0x2d0/0x2d0 [ 90.074807] ? file_update_time+0xbc/0x390 [ 90.079012] ? current_time+0xb0/0xb0 [ 90.082786] ? lock_acquire+0x10f/0x380 [ 90.086734] __generic_file_write_iter+0x345/0x540 [ 90.091637] generic_file_write_iter+0x36f/0x650 [ 90.096366] ? iov_iter_init+0xa8/0x1c0 [ 90.100314] __vfs_write+0x417/0x5c0 [ 90.104350] ? kernel_read+0x110/0x110 [ 90.108222] ? rcu_read_lock_sched_held+0x102/0x120 [ 90.113210] vfs_write+0x17f/0x4d0 [ 90.116723] SyS_write+0xc2/0x1a0 [ 90.120148] ? SyS_read+0x1a0/0x1a0 [ 90.123749] ? SyS_memfd_create+0x2a8/0x310 [ 90.128044] ? kfree+0xf5/0x310 [ 90.131296] ? do_syscall_64+0x43/0x4b0 [ 90.135242] ? SyS_read+0x1a0/0x1a0 [ 90.138844] do_syscall_64+0x19b/0x4b0 [ 90.142725] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 90.147886] RIP: 0033:0x446329 executing program [ 90.151048] RSP: 002b:00007f3480e72da8 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 90.158726] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000446329 [ 90.165980] RDX: 00000000fffffda2 RSI: 0000000020000540 RDI: 0000000000000003 [ 90.173225] RBP: 00000000006dac20 R08: 0000000000000000 R09: 0000000000000000 [ 90.180468] R10: 0000000000000000 R11: 0000000000000293 R12: 00000000006dac2c [ 90.187717] R13: dfdd4f11168a8b2b R14: 6873612f7665642f R15: 00000000006dad2c 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 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 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 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 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 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 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