[....] Starting OpenBSD Secure Shell server: sshd[ 11.685306] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.763205] random: sshd: uninitialized urandom read (32 bytes read) [ 27.445275] audit: type=1400 audit(1549215463.399:6): avc: denied { map } for pid=1768 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 [ 27.529211] random: sshd: uninitialized urandom read (32 bytes read) [ 27.989166] random: sshd: uninitialized urandom read (32 bytes read) [ 28.135363] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.76' (ECDSA) to the list of known hosts. [ 33.791016] random: sshd: uninitialized urandom read (32 bytes read) [ 33.878807] audit: type=1400 audit(1549215469.829:7): avc: denied { map } for pid=1786 comm="syz-executor140" path="/root/syz-executor140125727" dev="sda1" ino=16481 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 [ 35.826113] audit: type=1400 audit(1549215471.779:8): avc: denied { map } for pid=1935 comm="syz-executor140" path="/dev/ashmem" dev="devtmpfs" ino=5422 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 [ 41.929065] [ 41.930751] ====================================================== [ 41.937059] WARNING: possible circular locking dependency detected [ 41.943352] 4.14.97+ #1 Not tainted [ 41.946949] ------------------------------------------------------ [ 41.953240] syz-executor140/2221 is trying to acquire lock: [ 41.958926] (&mm->mmap_sem){++++}, at: [] __do_page_fault+0x871/0xb80 [ 41.967161] [ 41.967161] but task is already holding lock: [ 41.973107] (&sb->s_type->i_mutex_key#10){+.+.}, at: [] generic_file_write_iter+0x99/0x650 [ 41.983141] [ 41.983141] which lock already depends on the new lock. [ 41.983141] [ 41.991458] [ 41.991458] the existing dependency chain (in reverse order) is: [ 41.999062] [ 41.999062] -> #2 (&sb->s_type->i_mutex_key#10){+.+.}: [ 42.005796] [ 42.005796] -> #1 (ashmem_mutex){+.+.}: [ 42.011220] [ 42.011220] -> #0 (&mm->mmap_sem){++++}: [ 42.016731] [ 42.016731] other info that might help us debug this: [ 42.016731] [ 42.024843] Chain exists of: [ 42.024843] &mm->mmap_sem --> ashmem_mutex --> &sb->s_type->i_mutex_key#10 [ 42.024843] [ 42.036351] Possible unsafe locking scenario: [ 42.036351] [ 42.042381] CPU0 CPU1 [ 42.047027] ---- ---- [ 42.051664] lock(&sb->s_type->i_mutex_key#10); [ 42.056391] lock(ashmem_mutex); [ 42.062334] lock(&sb->s_type->i_mutex_key#10); [ 42.069579] lock(&mm->mmap_sem); [ 42.073093] [ 42.073093] *** DEADLOCK *** [ 42.073093] [ 42.079121] 2 locks held by syz-executor140/2221: [ 42.083945] #0: (sb_writers#6){.+.+}, at: [] vfs_write+0x3d8/0x4d0 [ 42.091981] #1: (&sb->s_type->i_mutex_key#10){+.+.}, at: [] generic_file_write_iter+0x99/0x650 [ 42.102448] [ 42.102448] stack backtrace: [ 42.106919] CPU: 0 PID: 2221 Comm: syz-executor140 Not tainted 4.14.97+ #1 [ 42.113913] Call Trace: [ 42.116497] dump_stack+0xb9/0x10e [ 42.120022] print_circular_bug.isra.0.cold+0x2dc/0x425 [ 42.125368] ? __lock_acquire+0x2d83/0x3fa0 [ 42.129664] ? trace_hardirqs_on+0x10/0x10 [ 42.133872] ? trace_hardirqs_on+0x10/0x10 [ 42.138078] ? trace_hardirqs_on+0x10/0x10 [ 42.142285] ? cmp_ex_search+0x71/0x90 [ 42.146153] ? bsearch+0x87/0xa0 [ 42.149500] ? lock_acquire+0x10f/0x380 [ 42.153450] ? __do_page_fault+0x871/0xb80 [ 42.157662] ? down_read+0x37/0xa0 [ 42.161179] ? __do_page_fault+0x871/0xb80 [ 42.165389] ? __do_page_fault+0x871/0xb80 [ 42.169596] ? mark_held_locks+0xa6/0xf0 [ 42.173629] ? bad_area_access_error+0x340/0x340 [ 42.178358] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.183175] ? page_fault+0x22/0x50 [ 42.186778] ? iov_iter_fault_in_readable+0x29c/0x350 [ 42.191941] ? iov_iter_fault_in_readable+0x296/0x350 [ 42.197101] ? iov_iter_init+0x1c0/0x1c0 [ 42.201135] ? generic_perform_write+0x158/0x450 [ 42.205873] ? filemap_page_mkwrite+0x2d0/0x2d0 [ 42.210514] ? current_time+0xb0/0xb0 [ 42.214290] ? lock_acquire+0x10f/0x380 [ 42.218250] ? __generic_file_write_iter+0x32e/0x550 [ 42.223328] ? generic_file_write_iter+0x36f/0x650 [ 42.228232] ? __vfs_write+0x401/0x5a0 [ 42.232093] ? kernel_read+0x110/0x110 [ 42.235959] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 42.241386] ? rcu_read_lock_sched_held+0x10a/0x130 [ 42.246375] ? vfs_write+0x17f/0x4d0 [ 42.250065] ? SyS_write+0xc0/0x1a0 [ 42.253666] ? SyS_read+0x1a0/0x1a0 [ 42.257266] ? SyS_memfd_create+0x2a0/0x310 [ 42.261560] ? kfree+0xf5/0x310 [ 42.264813] ? do_syscall_64+0x43/0x4b0 [ 42.268756] ? SyS_read+0x1a0/0x1a0 [ 42.272357] ? do_syscall_64+0x19b/0x4b0 executing program executing program [ 42.276393] ? 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