[....] Starting OpenBSD Secure Shell server: sshd[ 9.929171] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.047141] random: sshd: uninitialized urandom read (32 bytes read) [ 28.424866] audit: type=1400 audit(1546521419.375:6): avc: denied { map } for pid=1762 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 28.466264] random: sshd: uninitialized urandom read (32 bytes read) [ 28.937796] random: sshd: uninitialized urandom read (32 bytes read) [ 29.084455] random: sshd: uninitialized urandom read (32 bytes read) [ 30.302586] audit: type=1400 audit(1546521421.255:7): avc: denied { map } for pid=1779 comm="sh" path="/bin/dash" dev="sda1" ino=1473 scontext=system_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.25' (ECDSA) to the list of known hosts. [ 34.621636] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program [ 34.707826] audit: type=1400 audit(1546521425.655:8): avc: denied { map } for pid=1783 comm="syz-executor218" path="/root/syz-executor218288365" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 34.762693] audit: type=1400 audit(1546521425.665:9): avc: denied { map } for pid=1792 comm="syz-executor218" path="/dev/ashmem" dev="devtmpfs" ino=1123 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 [ 35.016075] [ 35.017746] ====================================================== [ 35.024051] WARNING: possible circular locking dependency detected [ 35.030392] 4.14.91+ #2 Not tainted [ 35.034007] ------------------------------------------------------ [ 35.040326] syz-executor218/1810 is trying to acquire lock: [ 35.046024] (&mm->mmap_sem){++++}, at: [] __do_page_fault+0x871/0xb80 [ 35.054257] [ 35.054257] but task is already holding lock: [ 35.060220] (&sb->s_type->i_mutex_key#10){+.+.}, at: [] generic_file_write_iter+0x99/0x650 [ 35.070281] [ 35.070281] which lock already depends on the new lock. [ 35.070281] [ 35.078593] [ 35.078593] the existing dependency chain (in reverse order) is: [ 35.086201] [ 35.086201] -> #2 (&sb->s_type->i_mutex_key#10){+.+.}: [ 35.092952] [ 35.092952] -> #1 (ashmem_mutex){+.+.}: [ 35.098396] [ 35.098396] -> #0 (&mm->mmap_sem){++++}: [ 35.103927] [ 35.103927] other info that might help us debug this: [ 35.103927] [ 35.112071] Chain exists of: [ 35.112071] &mm->mmap_sem --> ashmem_mutex --> &sb->s_type->i_mutex_key#10 [ 35.112071] [ 35.123748] Possible unsafe locking scenario: [ 35.123748] [ 35.129790] CPU0 CPU1 [ 35.134446] ---- ---- [ 35.139104] lock(&sb->s_type->i_mutex_key#10); [ 35.143856] lock(ashmem_mutex); [ 35.149824] lock(&sb->s_type->i_mutex_key#10); [ 35.157108] lock(&mm->mmap_sem); [ 35.160639] [ 35.160639] *** DEADLOCK *** [ 35.160639] [ 35.166687] 2 locks held by syz-executor218/1810: [ 35.171516] #0: (sb_writers#6){.+.+}, at: [] vfs_write+0x3d8/0x4d0 [ 35.179600] #1: (&sb->s_type->i_mutex_key#10){+.+.}, at: [] generic_file_write_iter+0x99/0x650 [ 35.190096] [ 35.190096] stack backtrace: [ 35.194596] CPU: 0 PID: 1810 Comm: syz-executor218 Not tainted 4.14.91+ #2 [ 35.201599] Call Trace: [ 35.204186] dump_stack+0xb9/0x10e [ 35.207724] print_circular_bug.isra.0.cold+0x2dc/0x425 [ 35.213080] ? __lock_acquire+0x2d83/0x3fa0 [ 35.217400] ? trace_hardirqs_on+0x10/0x10 [ 35.221624] ? trace_hardirqs_on+0x10/0x10 [ 35.225911] ? trace_hardirqs_on+0x10/0x10 [ 35.230144] ? cmp_ex_search+0x71/0x90 [ 35.234029] ? bsearch+0x87/0xa0 [ 35.237389] ? lock_acquire+0x10f/0x380 [ 35.241353] ? __do_page_fault+0x871/0xb80 [ 35.245587] ? down_read+0x37/0xa0 [ 35.249121] ? __do_page_fault+0x871/0xb80 [ 35.253844] ? __do_page_fault+0x871/0xb80 [ 35.258210] ? mark_held_locks+0xa6/0xf0 [ 35.262250] ? bad_area_access_error+0x340/0x340 [ 35.266981] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.271801] ? page_fault+0x22/0x50 [ 35.275411] ? iov_iter_fault_in_readable+0x29c/0x350 [ 35.280574] ? iov_iter_fault_in_readable+0x296/0x350 [ 35.285738] ? iov_iter_init+0x1c0/0x1c0 [ 35.289794] ? generic_perform_write+0x158/0x450 [ 35.294563] ? filemap_page_mkwrite+0x2d0/0x2d0 [ 35.299227] ? current_time+0xb0/0xb0 [ 35.303021] ? lock_acquire+0x10f/0x380 [ 35.306988] ? __generic_file_write_iter+0x32e/0x550 [ 35.312084] ? generic_file_write_iter+0x36f/0x650 executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 35.317010] ? iov_iter_init+0xa6/0x1c0 [ 35.320985] ? __vfs_write+0x401/0x5a0 [ 35.324871] ? kernel_read+0x110/0x110 [ 35.328757] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 35.334202] ? rcu_read_lock_sched_held+0x10a/0x130 [ 35.339208] ? vfs_write+0x17f/0x4d0 [ 35.342916] ? SyS_write+0xc0/0x1a0 [ 35.346532] ? SyS_read+0x1a0/0x1a0 [ 35.350156] ? do_syscall_64+0x43/0x4b0 [ 35.354255] ? SyS_read+0x1a0/0x1a0 [ 35.357905] ? do_syscall_64+0x19b/0x4b0 [ 35.361960] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program