[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 17.421590] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 22.981877] random: sshd: uninitialized urandom read (32 bytes read) [ 23.218346] random: sshd: uninitialized urandom read (32 bytes read) [ 23.978445] random: sshd: uninitialized urandom read (32 bytes read) [ 24.121438] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.3' (ECDSA) to the list of known hosts. [ 29.509252] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program [ 29.764547] ================================================================== [ 29.771956] BUG: KASAN: slab-out-of-bounds in pdu_read+0x90/0xd0 [ 29.778191] Read of size 11013 at addr ffff8801c65a876d by task syz-executor662/4490 [ 29.786509] [ 29.788153] CPU: 0 PID: 4490 Comm: syz-executor662 Not tainted 4.18.0-rc5-next-20180720+ #12 [ 29.796915] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.806706] Call Trace: [ 29.809363] dump_stack+0x1c9/0x2b4 [ 29.813382] ? dump_stack_print_info.cold.2+0x52/0x52 [ 29.820111] ? printk+0xa7/0xcf [ 29.823601] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 29.828572] ? pdu_read+0x90/0xd0 [ 29.832065] print_address_description+0x6c/0x20b [ 29.836944] ? pdu_read+0x90/0xd0 [ 29.840404] kasan_report.cold.7+0x242/0x30d [ 29.844833] check_memory_region+0x13e/0x1b0 [ 29.849258] memcpy+0x23/0x50 [ 29.852376] pdu_read+0x90/0xd0 [ 29.855845] p9pdu_readf+0x579/0x2170 [ 29.859685] ? p9pdu_writef+0xe0/0xe0 [ 29.863501] ? ksys_dup3+0x690/0x690 [ 29.867225] ? check_same_owner+0x340/0x340 [ 29.871552] ? p9_fd_poll+0x2b0/0x2b0 [ 29.875376] ? finish_wait+0x430/0x430 [ 29.879284] ? p9_fd_show_options+0x1c0/0x1c0 [ 29.883822] p9_client_create+0x6d0/0x1537 [ 29.888081] ? p9_client_read+0xbb0/0xbb0 [ 29.892243] ? lock_acquire+0x1e4/0x540 [ 29.896229] ? fs_reclaim_acquire+0x20/0x20 [ 29.900670] ? lock_release+0xa30/0xa30 [ 29.904648] ? __lockdep_init_map+0x105/0x590 [ 29.909224] ? kasan_check_write+0x14/0x20 [ 29.913845] ? __init_rwsem+0x1cc/0x2a0 [ 29.917913] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 29.923187] ? __kmalloc_track_caller+0x311/0x760 [ 29.928198] ? save_stack+0xa9/0xd0 [ 29.931902] ? save_stack+0x43/0xd0 [ 29.935530] ? kasan_kmalloc+0xc4/0xe0 [ 29.939424] ? memcpy+0x45/0x50 [ 29.942871] v9fs_session_init+0x21a/0x1a80 [ 29.947182] ? rcu_note_context_switch+0x730/0x730 [ 29.952196] ? legacy_parse_monolithic+0xde/0x1e0 [ 29.957609] ? v9fs_show_options+0x7e0/0x7e0 [ 29.962045] ? lock_release+0xa30/0xa30 [ 29.966013] ? check_same_owner+0x340/0x340 [ 29.970429] ? lock_downgrade+0x8f0/0x8f0 [ 29.975106] ? kasan_unpoison_shadow+0x35/0x50 [ 29.980231] ? kasan_kmalloc+0xc4/0xe0 [ 29.984117] ? kmem_cache_alloc_trace+0x318/0x780 [ 29.988946] ? kasan_unpoison_shadow+0x35/0x50 [ 29.993524] ? kasan_kmalloc+0xc4/0xe0 [ 29.997410] v9fs_mount+0x7c/0x900 [ 30.000949] ? v9fs_drop_inode+0x150/0x150 [ 30.005199] legacy_get_tree+0x131/0x460 [ 30.009259] vfs_get_tree+0x1cb/0x5c0 [ 30.013072] do_mount+0x6f2/0x1e20 [ 30.016606] ? do_raw_spin_unlock+0xa7/0x2f0 [ 30.021003] ? copy_mount_string+0x40/0x40 [ 30.025308] ? kasan_kmalloc+0xc4/0xe0 [ 30.029195] ? kmem_cache_alloc_trace+0x318/0x780 [ 30.034211] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.039754] ? copy_mount_options+0x285/0x380 [ 30.044339] ksys_mount+0x12d/0x140 [ 30.048096] __x64_sys_mount+0xbe/0x150 [ 30.052111] do_syscall_64+0x1b9/0x820 [ 30.056150] ? syscall_return_slowpath+0x5e0/0x5e0 [ 30.061085] ? syscall_return_slowpath+0x31d/0x5e0 [ 30.066010] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 30.071137] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.076772] ? prepare_exit_to_usermode+0x291/0x3b0 [ 30.081794] ? perf_trace_sys_enter+0xb10/0xb10 [ 30.090731] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.095597] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.100975] RIP: 0033:0x445d29 [ 30.104171] Code: e8 ec ba 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 ab 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 30.123683] RSP: 002b:00007f14c7f69da8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 30.131397] RAX: ffffffffffffffda RBX: 00000000006dbc44 RCX: 0000000000445d29 [ 30.138844] RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000000000 [ 30.146213] RBP: 0000000000000000 R08: 00000000200001c0 R09: 0000000000000000 [ 30.153487] R10: 0000000000000000 R11: 0000000000000202 R12: 00000000006dbc40 [ 30.160766] R13: 0030656c69662f2e R14: 64663d736e617274 R15: 0000000000000001 [ 30.168134] [ 30.169746] Allocated by task 4490: [ 30.173363] save_stack+0x43/0xd0 [ 30.176803] kasan_kmalloc+0xc4/0xe0 [ 30.180506] __kmalloc+0x14e/0x760 [ 30.184035] p9_fcall_alloc+0x1e/0x90 [ 30.187922] p9_client_prepare_req.part.8+0x132/0xa00 [ 30.193110] p9_client_rpc+0x242/0x1330 [ 30.197560] p9_client_create+0xca4/0x1537 [ 30.201900] v9fs_session_init+0x21a/0x1a80 [ 30.206209] v9fs_mount+0x7c/0x900 [ 30.209748] legacy_get_tree+0x131/0x460 [ 30.213815] vfs_get_tree+0x1cb/0x5c0 [ 30.217617] do_mount+0x6f2/0x1e20 [ 30.221147] ksys_mount+0x12d/0x140 [ 30.224777] __x64_sys_mount+0xbe/0x150 [ 30.228930] do_syscall_64+0x1b9/0x820 [ 30.232820] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.237988] [ 30.239602] Freed by task 0: [ 30.242691] (stack is not available) [ 30.247697] [ 30.249314] The buggy address belongs to the object at ffff8801c65a8740 [ 30.249314] which belongs to the cache kmalloc-16384 of size 16384 [ 30.262660] The buggy address is located 45 bytes inside of [ 30.262660] 16384-byte region [ffff8801c65a8740, ffff8801c65ac740) [ 30.274784] The buggy address belongs to the page: [ 30.279713] page:ffffea0007196a00 count:1 mapcount:0 mapping:ffff8801da802200 index:0x0 compound_mapcount: 0 [ 30.289693] flags: 0x2fffc0000010200(slab|head) [ 30.294453] raw: 02fffc0000010200 ffffea0007197608 ffffea00071ae608 ffff8801da802200 [ 30.302320] raw: 0000000000000000 ffff8801c65a8740 0000000100000001 0000000000000000 [ 30.310490] page dumped because: kasan: bad access detected [ 30.316196] [ 30.317810] Memory state around the buggy address: [ 30.322726] ffff8801c65aa600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.330078] ffff8801c65aa680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.337449] >ffff8801c65aa700: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 30.344800] ^ [ 30.351391] ffff8801c65aa780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.358948] ffff8801c65aa800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.366391] ================================================================== [ 30.373944] Kernel panic - not syncing: panic_on_warn set ... [ 30.373944] [ 30.381315] CPU: 0 PID: 4490 Comm: syz-executor662 Tainted: G B 4.18.0-rc5-next-20180720+ #12 [ 30.391533] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.401229] Call Trace: [ 30.403814] dump_stack+0x1c9/0x2b4 [ 30.407619] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.413192] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.418930] panic+0x238/0x4e7 [ 30.422225] ? add_taint.cold.5+0x16/0x16 [ 30.427076] ? do_raw_spin_unlock+0xa7/0x2f0 [ 30.431474] ? pdu_read+0x90/0xd0 [ 30.434913] kasan_end_report+0x47/0x4f [ 30.438879] kasan_report.cold.7+0x76/0x30d [ 30.443955] check_memory_region+0x13e/0x1b0 [ 30.448902] memcpy+0x23/0x50 [ 30.452097] pdu_read+0x90/0xd0 [ 30.455431] p9pdu_readf+0x579/0x2170 [ 30.459316] ? p9pdu_writef+0xe0/0xe0 [ 30.463108] ? ksys_dup3+0x690/0x690 [ 30.466820] ? check_same_owner+0x340/0x340 [ 30.471137] ? p9_fd_poll+0x2b0/0x2b0 [ 30.474934] ? finish_wait+0x430/0x430 [ 30.478994] ? p9_fd_show_options+0x1c0/0x1c0 [ 30.483584] p9_client_create+0x6d0/0x1537 [ 30.487813] ? p9_client_read+0xbb0/0xbb0 [ 30.491968] ? lock_acquire+0x1e4/0x540 [ 30.495935] ? fs_reclaim_acquire+0x20/0x20 [ 30.500242] ? lock_release+0xa30/0xa30 [ 30.504211] ? __lockdep_init_map+0x105/0x590 [ 30.508957] ? kasan_check_write+0x14/0x20 [ 30.513274] ? __init_rwsem+0x1cc/0x2a0 [ 30.517324] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 30.522459] ? __kmalloc_track_caller+0x311/0x760 [ 30.527417] ? save_stack+0xa9/0xd0 [ 30.531031] ? save_stack+0x43/0xd0 [ 30.534766] ? kasan_kmalloc+0xc4/0xe0 [ 30.538910] ? memcpy+0x45/0x50 [ 30.542268] v9fs_session_init+0x21a/0x1a80 [ 30.546578] ? rcu_note_context_switch+0x730/0x730 [ 30.551506] ? legacy_parse_monolithic+0xde/0x1e0 [ 30.556347] ? v9fs_show_options+0x7e0/0x7e0 [ 30.560793] ? lock_release+0xa30/0xa30 [ 30.564762] ? check_same_owner+0x340/0x340 [ 30.569166] ? lock_downgrade+0x8f0/0x8f0 [ 30.573465] ? kasan_unpoison_shadow+0x35/0x50 [ 30.578148] ? kasan_kmalloc+0xc4/0xe0 [ 30.582040] ? kmem_cache_alloc_trace+0x318/0x780 [ 30.586952] ? kasan_unpoison_shadow+0x35/0x50 [ 30.591690] ? kasan_kmalloc+0xc4/0xe0 [ 30.595841] v9fs_mount+0x7c/0x900 [ 30.599392] ? v9fs_drop_inode+0x150/0x150 [ 30.603781] legacy_get_tree+0x131/0x460 [ 30.608040] vfs_get_tree+0x1cb/0x5c0 [ 30.611915] do_mount+0x6f2/0x1e20 [ 30.615445] ? do_raw_spin_unlock+0xa7/0x2f0 [ 30.619934] ? copy_mount_string+0x40/0x40 [ 30.624152] ? kasan_kmalloc+0xc4/0xe0 [ 30.628037] ? kmem_cache_alloc_trace+0x318/0x780 [ 30.632976] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.638507] ? copy_mount_options+0x285/0x380 [ 30.643019] ksys_mount+0x12d/0x140 [ 30.651539] __x64_sys_mount+0xbe/0x150 [ 30.655536] do_syscall_64+0x1b9/0x820 [ 30.659428] ? syscall_return_slowpath+0x5e0/0x5e0 [ 30.664469] ? syscall_return_slowpath+0x31d/0x5e0 [ 30.669834] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 30.674850] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.680385] ? prepare_exit_to_usermode+0x291/0x3b0 [ 30.685412] ? perf_trace_sys_enter+0xb10/0xb10 [ 30.690193] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.695403] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.700677] RIP: 0033:0x445d29 [ 30.703863] Code: e8 ec ba 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 ab 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 30.725255] RSP: 002b:00007f14c7f69da8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 30.733289] RAX: ffffffffffffffda RBX: 00000000006dbc44 RCX: 0000000000445d29 [ 30.740545] RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000000000 [ 30.747799] RBP: 0000000000000000 R08: 00000000200001c0 R09: 0000000000000000 [ 30.756241] R10: 0000000000000000 R11: 0000000000000202 R12: 00000000006dbc40 [ 30.763782] R13: 0030656c69662f2e R14: 64663d736e617274 R15: 0000000000000001 [ 30.772091] Dumping ftrace buffer: [ 30.776207] (ftrace buffer empty) [ 30.779933] Kernel Offset: disabled [ 30.784252] Rebooting in 86400 seconds..