[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 15.893365] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 20.855383] random: sshd: uninitialized urandom read (32 bytes read) [ 21.271164] random: sshd: uninitialized urandom read (32 bytes read) [ 22.015552] random: sshd: uninitialized urandom read (32 bytes read) [ 25.197360] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.33' (ECDSA) to the list of known hosts. [ 30.733695] 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 executing program executing program [ 30.825270] ================================================================== [ 30.832704] BUG: KASAN: slab-out-of-bounds in pdu_read+0x90/0xd0 [ 30.838849] Read of size 14326 at addr ffff8801b3940bad by task syz-executor197/4461 [ 30.846720] [ 30.848359] CPU: 0 PID: 4461 Comm: syz-executor197 Not tainted 4.18.0-rc5-next-20180720+ #12 [ 30.856919] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.866350] Call Trace: [ 30.868939] dump_stack+0x1c9/0x2b4 [ 30.872558] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.877733] ? printk+0xa7/0xcf [ 30.880991] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.885741] ? pdu_read+0x90/0xd0 [ 30.889183] print_address_description+0x6c/0x20b [ 30.894005] ? pdu_read+0x90/0xd0 [ 30.897444] kasan_report.cold.7+0x242/0x30d [ 30.901836] check_memory_region+0x13e/0x1b0 [ 30.906233] memcpy+0x23/0x50 [ 30.909321] pdu_read+0x90/0xd0 [ 30.912588] p9pdu_readf+0x579/0x2170 [ 30.916369] ? p9pdu_writef+0xe0/0xe0 [ 30.920148] ? ksys_dup3+0x690/0x690 [ 30.923845] ? check_same_owner+0x340/0x340 [ 30.928149] ? p9_fd_poll+0x2b0/0x2b0 [ 30.931937] ? kasan_kmalloc+0xc4/0xe0 [ 30.935815] ? kasan_unpoison_shadow+0x35/0x50 [ 30.940380] ? p9_fd_show_options+0x1c0/0x1c0 [ 30.944857] p9_client_create+0x6d0/0x1537 [ 30.949079] ? p9_client_read+0xbb0/0xbb0 [ 30.953212] ? lock_acquire+0x1e4/0x540 [ 30.957169] ? fs_reclaim_acquire+0x20/0x20 [ 30.961488] ? lock_release+0xa30/0xa30 [ 30.965444] ? __lockdep_init_map+0x105/0x590 [ 30.969923] ? kasan_check_write+0x14/0x20 [ 30.974137] ? __init_rwsem+0x1cc/0x2a0 [ 30.978091] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 30.983097] ? __kmalloc_track_caller+0x311/0x760 [ 30.987930] ? save_stack+0xa9/0xd0 [ 30.991549] ? save_stack+0x43/0xd0 [ 30.995159] ? kasan_kmalloc+0xc4/0xe0 [ 30.999028] ? memcpy+0x45/0x50 [ 31.002289] v9fs_session_init+0x21a/0x1a80 [ 31.006593] ? rcu_note_context_switch+0x730/0x730 [ 31.011504] ? cache_grow_end.part.37+0x95/0x170 [ 31.016245] ? lock_downgrade+0x8f0/0x8f0 [ 31.020374] ? v9fs_show_options+0x7e0/0x7e0 [ 31.024767] ? kasan_check_read+0x11/0x20 [ 31.028900] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.033290] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.037872] ? kasan_check_write+0x14/0x20 [ 31.042094] ? do_raw_spin_lock+0xc1/0x200 [ 31.046310] ? kasan_unpoison_shadow+0x35/0x50 [ 31.050871] ? kasan_kmalloc+0xc4/0xe0 [ 31.054740] ? kmem_cache_alloc_trace+0x318/0x780 [ 31.059563] ? kasan_unpoison_shadow+0x35/0x50 [ 31.064124] ? kasan_kmalloc+0xc4/0xe0 [ 31.067998] v9fs_mount+0x7c/0x900 [ 31.071517] ? v9fs_drop_inode+0x150/0x150 [ 31.075734] legacy_get_tree+0x131/0x460 [ 31.079778] vfs_get_tree+0x1cb/0x5c0 [ 31.083558] do_mount+0x6f2/0x1e20 [ 31.087077] ? copy_mount_string+0x40/0x40 [ 31.091300] ? retint_kernel+0x10/0x10 [ 31.095169] ? copy_mount_options+0x1e3/0x380 [ 31.099652] ? copy_mount_options+0x1f0/0x380 [ 31.104136] ? copy_mount_options+0x1f6/0x380 [ 31.108612] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.114142] ? copy_mount_options+0x285/0x380 [ 31.118634] ksys_mount+0x12d/0x140 [ 31.122250] __x64_sys_mount+0xbe/0x150 [ 31.126215] do_syscall_64+0x1b9/0x820 [ 31.130083] ? syscall_slow_exit_work+0x500/0x500 [ 31.134916] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.140314] ? syscall_return_slowpath+0x31d/0x5e0 [ 31.145228] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.150230] ? perf_trace_sys_enter+0xb10/0xb10 [ 31.154885] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.159717] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.164974] RIP: 0033:0x4401f9 [ 31.168160] 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 31.187301] RSP: 002b:00007ffcb311e028 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 [ 31.195006] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00000000004401f9 [ 31.202263] RDX: 0000000020000340 RSI: 00000000200000c0 RDI: 0000000000000000 [ 31.209513] RBP: 752e303030327039 R08: 0000000020000740 R09: 0000000000000001 [ 31.216772] R10: 0000000000000000 R11: 0000000000000206 R12: 3d6e6f6973726576 [ 31.224021] R13: 64663d736e617274 R14: 0000000000000000 R15: 0000000000000000 [ 31.231280] [ 31.232886] Allocated by task 4461: [ 31.236506] save_stack+0x43/0xd0 [ 31.239936] kasan_kmalloc+0xc4/0xe0 [ 31.243644] __kmalloc+0x14e/0x760 [ 31.247171] p9_fcall_alloc+0x1e/0x90 [ 31.250951] p9_client_prepare_req.part.8+0x132/0xa00 [ 31.256116] p9_client_rpc+0x242/0x1330 [ 31.260070] p9_client_create+0xca4/0x1537 [ 31.264283] v9fs_session_init+0x21a/0x1a80 [ 31.268584] v9fs_mount+0x7c/0x900 [ 31.272108] legacy_get_tree+0x131/0x460 [ 31.276156] vfs_get_tree+0x1cb/0x5c0 [ 31.279935] do_mount+0x6f2/0x1e20 [ 31.283451] ksys_mount+0x12d/0x140 [ 31.287056] __x64_sys_mount+0xbe/0x150 [ 31.291015] do_syscall_64+0x1b9/0x820 [ 31.294903] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.300063] [ 31.301670] Freed by task 0: [ 31.304661] (stack is not available) [ 31.308343] [ 31.309947] The buggy address belongs to the object at ffff8801b3940b80 [ 31.309947] which belongs to the cache kmalloc-16384 of size 16384 [ 31.322927] The buggy address is located 45 bytes inside of [ 31.322927] 16384-byte region [ffff8801b3940b80, ffff8801b3944b80) [ 31.334862] The buggy address belongs to the page: [ 31.339775] page:ffffea0006ce5000 count:1 mapcount:0 mapping:ffff8801da802200 index:0x0 compound_mapcount: 0 [ 31.349731] flags: 0x2fffc0000010200(slab|head) [ 31.354391] raw: 02fffc0000010200 ffffea0006ce5c08 ffffea0006ce4008 ffff8801da802200 [ 31.362258] raw: 0000000000000000 ffff8801b3940b80 0000000100000001 0000000000000000 [ 31.370122] page dumped because: kasan: bad access detected [ 31.375803] [ 31.377403] Memory state around the buggy address: [ 31.382309] ffff8801b3942a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.389643] ffff8801b3942b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.397530] >ffff8801b3942b80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 31.404866] ^ [ 31.409249] ffff8801b3942c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.416586] ffff8801b3942c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.423931] ================================================================== [ 31.431482] Kernel panic - not syncing: panic_on_warn set ... [ 31.431482] [ 31.438858] CPU: 0 PID: 4461 Comm: syz-executor197 Tainted: G B 4.18.0-rc5-next-20180720+ #12 [ 31.448801] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.458138] Call Trace: [ 31.460711] dump_stack+0x1c9/0x2b4 [ 31.464317] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.469499] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.474243] panic+0x238/0x4e7 [ 31.477413] ? add_taint.cold.5+0x16/0x16 [ 31.481542] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.485927] ? pdu_read+0x90/0xd0 [ 31.489356] kasan_end_report+0x47/0x4f [ 31.493304] kasan_report.cold.7+0x76/0x30d [ 31.497606] check_memory_region+0x13e/0x1b0 [ 31.501989] memcpy+0x23/0x50 [ 31.505083] pdu_read+0x90/0xd0 [ 31.508353] p9pdu_readf+0x579/0x2170 [ 31.512134] ? p9pdu_writef+0xe0/0xe0 [ 31.515914] ? ksys_dup3+0x690/0x690 [ 31.519624] ? check_same_owner+0x340/0x340 [ 31.523931] ? p9_fd_poll+0x2b0/0x2b0 [ 31.527713] ? kasan_kmalloc+0xc4/0xe0 [ 31.531576] ? kasan_unpoison_shadow+0x35/0x50 [ 31.536146] ? p9_fd_show_options+0x1c0/0x1c0 [ 31.540619] p9_client_create+0x6d0/0x1537 [ 31.544833] ? p9_client_read+0xbb0/0xbb0 [ 31.548961] ? lock_acquire+0x1e4/0x540 [ 31.552918] ? fs_reclaim_acquire+0x20/0x20 [ 31.557220] ? lock_release+0xa30/0xa30 [ 31.561173] ? __lockdep_init_map+0x105/0x590 [ 31.565648] ? kasan_check_write+0x14/0x20 [ 31.569858] ? __init_rwsem+0x1cc/0x2a0 [ 31.573807] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 31.578801] ? __kmalloc_track_caller+0x311/0x760 [ 31.583622] ? save_stack+0xa9/0xd0 [ 31.587223] ? save_stack+0x43/0xd0 [ 31.590832] ? kasan_kmalloc+0xc4/0xe0 [ 31.594696] ? memcpy+0x45/0x50 [ 31.597956] v9fs_session_init+0x21a/0x1a80 [ 31.602257] ? rcu_note_context_switch+0x730/0x730 [ 31.607171] ? cache_grow_end.part.37+0x95/0x170 [ 31.611905] ? lock_downgrade+0x8f0/0x8f0 [ 31.616033] ? v9fs_show_options+0x7e0/0x7e0 [ 31.620419] ? kasan_check_read+0x11/0x20 [ 31.624544] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.628928] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.633498] ? kasan_check_write+0x14/0x20 [ 31.637712] ? do_raw_spin_lock+0xc1/0x200 [ 31.641925] ? kasan_unpoison_shadow+0x35/0x50 [ 31.646483] ? kasan_kmalloc+0xc4/0xe0 [ 31.650359] ? kmem_cache_alloc_trace+0x318/0x780 [ 31.655179] ? kasan_unpoison_shadow+0x35/0x50 [ 31.659738] ? kasan_kmalloc+0xc4/0xe0 [ 31.663610] v9fs_mount+0x7c/0x900 [ 31.667132] ? v9fs_drop_inode+0x150/0x150 [ 31.671347] legacy_get_tree+0x131/0x460 [ 31.675387] vfs_get_tree+0x1cb/0x5c0 [ 31.679172] do_mount+0x6f2/0x1e20 [ 31.682691] ? copy_mount_string+0x40/0x40 [ 31.686908] ? retint_kernel+0x10/0x10 [ 31.690776] ? copy_mount_options+0x1e3/0x380 [ 31.695248] ? copy_mount_options+0x1f0/0x380 [ 31.699719] ? copy_mount_options+0x1f6/0x380 [ 31.704203] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.709715] ? copy_mount_options+0x285/0x380 [ 31.714187] ksys_mount+0x12d/0x140 [ 31.717792] __x64_sys_mount+0xbe/0x150 [ 31.721748] do_syscall_64+0x1b9/0x820 [ 31.725614] ? syscall_slow_exit_work+0x500/0x500 [ 31.730435] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.735343] ? syscall_return_slowpath+0x31d/0x5e0 [ 31.740250] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.745249] ? perf_trace_sys_enter+0xb10/0xb10 [ 31.749897] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.754721] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.759887] RIP: 0033:0x4401f9 [ 31.763050] 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 31.782181] RSP: 002b:00007ffcb311e028 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 [ 31.789872] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00000000004401f9 [ 31.797121] RDX: 0000000020000340 RSI: 00000000200000c0 RDI: 0000000000000000 [ 31.804368] RBP: 752e303030327039 R08: 0000000020000740 R09: 0000000000000001 [ 31.811613] R10: 0000000000000000 R11: 0000000000000206 R12: 3d6e6f6973726576 [ 31.818859] R13: 64663d736e617274 R14: 0000000000000000 R15: 0000000000000000 [ 31.826596] Dumping ftrace buffer: [ 31.830124] (ftrace buffer empty) [ 31.833811] Kernel Offset: disabled [ 31.837426] Rebooting in 86400 seconds..