[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 15.808252] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.304201] random: sshd: uninitialized urandom read (32 bytes read) [ 17.627390] random: sshd: uninitialized urandom read (32 bytes read) [ 18.373404] random: sshd: uninitialized urandom read (32 bytes read) [ 18.509638] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.20' (ECDSA) to the list of known hosts. [ 23.993228] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 24.613123] ================================================================== [ 24.620602] BUG: KASAN: slab-out-of-bounds in pdu_read+0x90/0xd0 [ 24.626730] Read of size 37884 at addr ffff8801b69504ed by task syz-executor200/4460 [ 24.634605] [ 24.636215] CPU: 0 PID: 4460 Comm: syz-executor200 Not tainted 4.18.0-rc5-next-20180720+ #12 [ 24.644771] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.654109] Call Trace: [ 24.656688] dump_stack+0x1c9/0x2b4 [ 24.660298] ? dump_stack_print_info.cold.2+0x52/0x52 [ 24.665470] ? printk+0xa7/0xcf [ 24.668740] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 24.673483] ? pdu_read+0x90/0xd0 [ 24.676920] print_address_description+0x6c/0x20b [ 24.681746] ? pdu_read+0x90/0xd0 [ 24.685178] kasan_report.cold.7+0x242/0x30d [ 24.689581] check_memory_region+0x13e/0x1b0 [ 24.693971] memcpy+0x23/0x50 [ 24.697082] pdu_read+0x90/0xd0 [ 24.700355] p9pdu_readf+0x579/0x2170 [ 24.704139] ? p9pdu_writef+0xe0/0xe0 [ 24.707937] ? ksys_dup3+0x690/0x690 [ 24.711635] ? do_raw_spin_lock+0xc1/0x200 [ 24.715852] ? finish_wait+0x430/0x430 [ 24.719987] ? p9_fd_show_options+0x1c0/0x1c0 [ 24.725186] p9_client_create+0x6d0/0x1537 [ 24.729417] ? p9_client_read+0xbb0/0xbb0 [ 24.733572] ? lock_acquire+0x1e4/0x540 [ 24.737559] ? fs_reclaim_acquire+0x20/0x20 [ 24.741898] ? lock_release+0xa30/0xa30 [ 24.745854] ? __lockdep_init_map+0x105/0x590 [ 24.750339] ? kasan_check_write+0x14/0x20 [ 24.754817] ? __init_rwsem+0x1cc/0x2a0 [ 24.758781] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 24.763798] ? __kmalloc_track_caller+0x311/0x760 [ 24.768618] ? save_stack+0xa9/0xd0 [ 24.772227] ? save_stack+0x43/0xd0 [ 24.775832] ? kasan_kmalloc+0xc4/0xe0 [ 24.779713] ? memcpy+0x45/0x50 [ 24.782991] v9fs_session_init+0x21a/0x1a80 [ 24.787297] ? rcu_note_context_switch+0x730/0x730 [ 24.792206] ? legacy_parse_monolithic+0xde/0x1e0 [ 24.797039] ? v9fs_show_options+0x7e0/0x7e0 [ 24.801431] ? lock_release+0xa30/0xa30 [ 24.805387] ? check_same_owner+0x340/0x340 [ 24.809685] ? lock_downgrade+0x8f0/0x8f0 [ 24.813812] ? kasan_unpoison_shadow+0x35/0x50 [ 24.818374] ? kasan_kmalloc+0xc4/0xe0 [ 24.822331] ? kmem_cache_alloc_trace+0x318/0x780 [ 24.827163] ? kasan_unpoison_shadow+0x35/0x50 [ 24.831725] ? kasan_kmalloc+0xc4/0xe0 [ 24.835604] v9fs_mount+0x7c/0x900 [ 24.839126] ? v9fs_drop_inode+0x150/0x150 [ 24.843343] legacy_get_tree+0x131/0x460 [ 24.847393] vfs_get_tree+0x1cb/0x5c0 [ 24.851261] do_mount+0x6f2/0x1e20 [ 24.854787] ? check_same_owner+0x340/0x340 [ 24.859087] ? lock_release+0xa30/0xa30 [ 24.863049] ? copy_mount_string+0x40/0x40 [ 24.867264] ? kasan_kmalloc+0xc4/0xe0 [ 24.871152] ? kmem_cache_alloc_trace+0x318/0x780 [ 24.875978] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 24.881508] ? _copy_from_user+0xdf/0x150 [ 24.885647] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 24.891178] ? copy_mount_options+0x285/0x380 [ 24.895655] ksys_mount+0x12d/0x140 [ 24.899264] __x64_sys_mount+0xbe/0x150 [ 24.903234] do_syscall_64+0x1b9/0x820 [ 24.907117] ? syscall_return_slowpath+0x5e0/0x5e0 [ 24.912042] ? syscall_return_slowpath+0x31d/0x5e0 [ 24.916971] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 24.921971] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 24.927494] ? prepare_exit_to_usermode+0x291/0x3b0 [ 24.932500] ? perf_trace_sys_enter+0xb10/0xb10 [ 24.937164] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.941995] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 24.947191] RIP: 0033:0x444399 [ 24.950360] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b d4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 24.969492] RSP: 002b:00007fff6fc90258 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 24.977186] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000444399 [ 24.984530] RDX: 0000000020000080 RSI: 0000000020000000 RDI: 0000000000000000 [ 24.991795] RBP: 753d737365636361 R08: 00000000200000c0 R09: 00000000004002e0 [ 24.999052] R10: 0000000000800000 R11: 0000000000000202 R12: 64663d736e617274 [ 25.006304] R13: 7073642f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 25.013559] [ 25.015166] Allocated by task 4460: [ 25.018777] save_stack+0x43/0xd0 [ 25.022224] kasan_kmalloc+0xc4/0xe0 [ 25.025937] __kmalloc+0x14e/0x760 [ 25.029469] p9_fcall_alloc+0x1e/0x90 [ 25.033251] p9_client_prepare_req.part.8+0x132/0xa00 [ 25.038440] p9_client_rpc+0x242/0x1330 [ 25.042397] p9_client_create+0xca4/0x1537 [ 25.046614] v9fs_session_init+0x21a/0x1a80 [ 25.050913] v9fs_mount+0x7c/0x900 [ 25.054435] legacy_get_tree+0x131/0x460 [ 25.058484] vfs_get_tree+0x1cb/0x5c0 [ 25.062267] do_mount+0x6f2/0x1e20 [ 25.065786] ksys_mount+0x12d/0x140 [ 25.069399] __x64_sys_mount+0xbe/0x150 [ 25.073352] do_syscall_64+0x1b9/0x820 [ 25.077221] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 25.082381] [ 25.083985] Freed by task 0: [ 25.086977] (stack is not available) [ 25.090670] [ 25.092277] The buggy address belongs to the object at ffff8801b69504c0 [ 25.092277] which belongs to the cache kmalloc-16384 of size 16384 [ 25.105262] The buggy address is located 45 bytes inside of [ 25.105262] 16384-byte region [ffff8801b69504c0, ffff8801b69544c0) [ 25.117201] The buggy address belongs to the page: [ 25.122119] page:ffffea0006da5400 count:1 mapcount:0 mapping:ffff8801da802200 index:0x0 compound_mapcount: 0 [ 25.132086] flags: 0x2fffc0000010200(slab|head) [ 25.136749] raw: 02fffc0000010200 ffffea00069f2408 ffffea0006b20008 ffff8801da802200 [ 25.144621] raw: 0000000000000000 ffff8801b69504c0 0000000100000001 0000000000000000 [ 25.152482] page dumped because: kasan: bad access detected [ 25.158164] [ 25.159765] Memory state around the buggy address: [ 25.164674] ffff8801b6952380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.172017] ffff8801b6952400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.179372] >ffff8801b6952480: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 25.186723] ^ [ 25.193192] ffff8801b6952500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.200533] ffff8801b6952580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.207883] ================================================================== [ 25.215382] Kernel panic - not syncing: panic_on_warn set ... [ 25.215382] [ 25.222772] CPU: 0 PID: 4460 Comm: syz-executor200 Tainted: G B 4.18.0-rc5-next-20180720+ #12 [ 25.232729] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.242068] Call Trace: [ 25.244639] dump_stack+0x1c9/0x2b4 [ 25.248258] ? dump_stack_print_info.cold.2+0x52/0x52 [ 25.253434] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.258171] panic+0x238/0x4e7 [ 25.261357] ? add_taint.cold.5+0x16/0x16 [ 25.265488] ? do_raw_spin_unlock+0xa7/0x2f0 [ 25.269880] ? pdu_read+0x90/0xd0 [ 25.273313] kasan_end_report+0x47/0x4f [ 25.277264] kasan_report.cold.7+0x76/0x30d [ 25.281565] check_memory_region+0x13e/0x1b0 [ 25.285962] memcpy+0x23/0x50 [ 25.289050] pdu_read+0x90/0xd0 [ 25.292311] p9pdu_readf+0x579/0x2170 [ 25.296102] ? p9pdu_writef+0xe0/0xe0 [ 25.299892] ? ksys_dup3+0x690/0x690 [ 25.303584] ? do_raw_spin_lock+0xc1/0x200 [ 25.307798] ? finish_wait+0x430/0x430 [ 25.311667] ? p9_fd_show_options+0x1c0/0x1c0 [ 25.316144] p9_client_create+0x6d0/0x1537 [ 25.320359] ? p9_client_read+0xbb0/0xbb0 [ 25.324484] ? lock_acquire+0x1e4/0x540 [ 25.328441] ? fs_reclaim_acquire+0x20/0x20 [ 25.332744] ? lock_release+0xa30/0xa30 [ 25.336711] ? __lockdep_init_map+0x105/0x590 [ 25.341204] ? kasan_check_write+0x14/0x20 [ 25.345420] ? __init_rwsem+0x1cc/0x2a0 [ 25.349383] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 25.354415] ? __kmalloc_track_caller+0x311/0x760 [ 25.359237] ? save_stack+0xa9/0xd0 [ 25.362842] ? save_stack+0x43/0xd0 [ 25.366449] ? kasan_kmalloc+0xc4/0xe0 [ 25.370313] ? memcpy+0x45/0x50 [ 25.373582] v9fs_session_init+0x21a/0x1a80 [ 25.377888] ? rcu_note_context_switch+0x730/0x730 [ 25.382801] ? legacy_parse_monolithic+0xde/0x1e0 [ 25.387633] ? v9fs_show_options+0x7e0/0x7e0 [ 25.392030] ? lock_release+0xa30/0xa30 [ 25.395994] ? check_same_owner+0x340/0x340 [ 25.400297] ? lock_downgrade+0x8f0/0x8f0 [ 25.404433] ? kasan_unpoison_shadow+0x35/0x50 [ 25.408993] ? kasan_kmalloc+0xc4/0xe0 [ 25.412865] ? kmem_cache_alloc_trace+0x318/0x780 [ 25.417689] ? kasan_unpoison_shadow+0x35/0x50 [ 25.422247] ? kasan_kmalloc+0xc4/0xe0 [ 25.426114] v9fs_mount+0x7c/0x900 [ 25.429634] ? v9fs_drop_inode+0x150/0x150 [ 25.433845] legacy_get_tree+0x131/0x460 [ 25.437886] vfs_get_tree+0x1cb/0x5c0 [ 25.441669] do_mount+0x6f2/0x1e20 [ 25.445195] ? check_same_owner+0x340/0x340 [ 25.449493] ? lock_release+0xa30/0xa30 [ 25.453449] ? copy_mount_string+0x40/0x40 [ 25.457657] ? kasan_kmalloc+0xc4/0xe0 [ 25.461534] ? kmem_cache_alloc_trace+0x318/0x780 [ 25.466356] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 25.471872] ? _copy_from_user+0xdf/0x150 [ 25.476003] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 25.481535] ? copy_mount_options+0x285/0x380 [ 25.486035] ksys_mount+0x12d/0x140 [ 25.489654] __x64_sys_mount+0xbe/0x150 [ 25.493610] do_syscall_64+0x1b9/0x820 [ 25.497495] ? syscall_return_slowpath+0x5e0/0x5e0 [ 25.502415] ? syscall_return_slowpath+0x31d/0x5e0 [ 25.507326] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 25.512327] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 25.517843] ? prepare_exit_to_usermode+0x291/0x3b0 [ 25.522840] ? perf_trace_sys_enter+0xb10/0xb10 [ 25.527511] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.532355] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 25.537537] RIP: 0033:0x444399 [ 25.540703] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b d4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 25.559825] RSP: 002b:00007fff6fc90258 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 25.567517] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000444399 [ 25.574778] RDX: 0000000020000080 RSI: 0000000020000000 RDI: 0000000000000000 [ 25.582036] RBP: 753d737365636361 R08: 00000000200000c0 R09: 00000000004002e0 [ 25.589294] R10: 0000000000800000 R11: 0000000000000202 R12: 64663d736e617274 [ 25.596555] R13: 7073642f7665642f R14: 0000000000000000 R15: 0000000000000000 [ 25.604404] Dumping ftrace buffer: [ 25.607927] (ftrace buffer empty) [ 25.611625] Kernel Offset: disabled [ 25.615240] Rebooting in 86400 seconds..