[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 15.699325] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 16.828934] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.126121] random: sshd: uninitialized urandom read (32 bytes read) [ 17.826856] random: sshd: uninitialized urandom read (32 bytes read) [ 17.959320] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.52' (ECDSA) to the list of known hosts. [ 23.373625] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program executing program executing program [ 23.465105] nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. [ 23.507939] ================================================================== [ 23.515330] BUG: KASAN: slab-out-of-bounds in pdu_read+0x90/0xd0 [ 23.521458] Read of size 42634 at addr ffff8801cc1d88ed by task syz-executor768/4466 [ 23.529313] [ 23.530924] CPU: 1 PID: 4466 Comm: syz-executor768 Not tainted 4.18.0-rc3-next-20180709+ #2 [ 23.539399] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.548755] Call Trace: [ 23.551344] dump_stack+0x1c9/0x2b4 [ 23.554955] ? dump_stack_print_info.cold.2+0x52/0x52 [ 23.560132] ? printk+0xa7/0xcf [ 23.563398] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 23.568143] ? pdu_read+0x90/0xd0 [ 23.571579] print_address_description+0x6c/0x20b [ 23.576406] ? pdu_read+0x90/0xd0 [ 23.579837] kasan_report.cold.7+0x242/0x30d [ 23.584227] check_memory_region+0x13e/0x1b0 [ 23.588618] memcpy+0x23/0x50 [ 23.591717] pdu_read+0x90/0xd0 [ 23.594975] p9pdu_readf+0x579/0x2170 [ 23.598756] ? p9pdu_writef+0xe0/0xe0 [ 23.602538] ? ksys_dup3+0x690/0x690 [ 23.606229] ? check_same_owner+0x340/0x340 [ 23.610533] ? p9_fd_poll+0x2b0/0x2b0 [ 23.614319] ? kasan_kmalloc+0xc4/0xe0 [ 23.618189] ? kasan_unpoison_shadow+0x35/0x50 [ 23.622766] ? p9_fd_show_options+0x1c0/0x1c0 [ 23.627244] ? __raw_spin_lock_init+0x2d/0x100 [ 23.631816] p9_client_create+0xde0/0x16c9 [ 23.636036] ? p9_client_read+0xc60/0xc60 [ 23.640166] ? kasan_check_read+0x11/0x20 [ 23.644298] ? lock_acquire+0x1e4/0x540 [ 23.648253] ? fs_reclaim_acquire+0x20/0x20 [ 23.652556] ? lock_release+0xa30/0xa30 [ 23.656508] ? __lockdep_init_map+0x105/0x590 [ 23.660985] ? kasan_check_write+0x14/0x20 [ 23.665201] ? __init_rwsem+0x1cc/0x2a0 [ 23.669155] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 23.674162] ? __kmalloc_track_caller+0x311/0x760 [ 23.678986] ? save_stack+0xa9/0xd0 [ 23.682603] ? save_stack+0x43/0xd0 [ 23.686212] ? kasan_kmalloc+0xc4/0xe0 [ 23.690085] ? kmem_cache_alloc_trace+0x152/0x780 [ 23.694911] ? memcpy+0x45/0x50 [ 23.698175] v9fs_session_init+0x21a/0x1a80 [ 23.702477] ? rcu_note_context_switch+0x730/0x730 [ 23.707391] ? do_mount+0x69e/0x1fb0 [ 23.711099] ? lock_acquire+0x1e4/0x540 [ 23.715055] ? lock_downgrade+0x8f0/0x8f0 [ 23.719197] ? v9fs_show_options+0x7e0/0x7e0 [ 23.723591] ? kasan_check_read+0x11/0x20 [ 23.727720] ? do_raw_spin_unlock+0xa7/0x2f0 [ 23.732107] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 23.736673] ? kasan_check_write+0x14/0x20 [ 23.740888] ? do_raw_spin_lock+0xc1/0x200 [ 23.745114] ? kasan_unpoison_shadow+0x35/0x50 [ 23.749676] ? kasan_kmalloc+0xc4/0xe0 [ 23.753551] ? kmem_cache_alloc_trace+0x318/0x780 [ 23.758392] ? kasan_unpoison_shadow+0x35/0x50 [ 23.762955] ? kasan_kmalloc+0xc4/0xe0 [ 23.766824] v9fs_mount+0x7c/0x900 [ 23.770354] ? v9fs_drop_inode+0x150/0x150 [ 23.774576] legacy_get_tree+0x118/0x440 [ 23.778618] vfs_get_tree+0x1cb/0x5c0 [ 23.782404] do_mount+0x6c1/0x1fb0 [ 23.785929] ? kasan_check_write+0x14/0x20 [ 23.790144] ? copy_mount_string+0x40/0x40 [ 23.794363] ? kasan_kmalloc+0xc4/0xe0 [ 23.798232] ? kmem_cache_alloc_trace+0x318/0x780 [ 23.803059] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 23.808579] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 23.814098] ? copy_mount_options+0x285/0x380 [ 23.818575] ksys_mount+0x12d/0x140 [ 23.822182] __x64_sys_mount+0xbe/0x150 [ 23.826140] do_syscall_64+0x1b9/0x820 [ 23.830013] ? syscall_return_slowpath+0x5e0/0x5e0 [ 23.834929] ? syscall_return_slowpath+0x31d/0x5e0 [ 23.839842] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 23.844841] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 23.850364] ? prepare_exit_to_usermode+0x291/0x3b0 [ 23.855365] ? perf_trace_sys_enter+0xb10/0xb10 [ 23.860020] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.864850] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 23.870022] RIP: 0033:0x440959 [ 23.873188] Code: e8 8c b3 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 3b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 23.892307] RSP: 002b:00007fff319077c8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 23.900001] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440959 [ 23.907257] RDX: 0000000020000100 RSI: 00000000200000c0 RDI: 0000000000000000 [ 23.914511] RBP: 0000000000000000 R08: 0000000020000180 R09: 00000000004002c8 [ 23.921762] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000005bce [ 23.929025] R13: 0000000000401eb0 R14: 0000000000000000 R15: 0000000000000000 [ 23.936289] [ 23.937900] Allocated by task 4466: [ 23.941514] save_stack+0x43/0xd0 [ 23.944948] kasan_kmalloc+0xc4/0xe0 [ 23.948640] __kmalloc+0x14e/0x760 [ 23.952174] p9_fcall_alloc+0x1e/0x90 [ 23.955969] p9_client_prepare_req.part.9+0x754/0xcd0 [ 23.961145] p9_client_rpc+0x1bd/0x1400 [ 23.965105] p9_client_create+0xd09/0x16c9 [ 23.969334] v9fs_session_init+0x21a/0x1a80 [ 23.973640] v9fs_mount+0x7c/0x900 [ 23.977180] legacy_get_tree+0x118/0x440 [ 23.981219] vfs_get_tree+0x1cb/0x5c0 [ 23.985008] do_mount+0x6c1/0x1fb0 [ 23.988539] ksys_mount+0x12d/0x140 [ 23.992147] __x64_sys_mount+0xbe/0x150 [ 23.996110] do_syscall_64+0x1b9/0x820 [ 23.999988] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 24.005162] [ 24.006766] Freed by task 0: [ 24.009769] (stack is not available) [ 24.013455] [ 24.015065] The buggy address belongs to the object at ffff8801cc1d88c0 [ 24.015065] which belongs to the cache kmalloc-16384 of size 16384 [ 24.028056] The buggy address is located 45 bytes inside of [ 24.028056] 16384-byte region [ffff8801cc1d88c0, ffff8801cc1dc8c0) [ 24.039995] The buggy address belongs to the page: [ 24.044917] page:ffffea0007307600 count:1 mapcount:0 mapping:ffff8801da802200 index:0x0 compound_mapcount: 0 [ 24.054862] flags: 0x2fffc0000008100(slab|head) [ 24.059520] raw: 02fffc0000008100 ffffea0006b6f008 ffff8801da801c48 ffff8801da802200 [ 24.067390] raw: 0000000000000000 ffff8801cc1d88c0 0000000100000001 0000000000000000 [ 24.076096] page dumped because: kasan: bad access detected [ 24.081784] [ 24.083389] Memory state around the buggy address: [ 24.088311] ffff8801cc1da780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.095656] ffff8801cc1da800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.103004] >ffff8801cc1da880: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 24.110356] ^ [ 24.116832] ffff8801cc1da900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.124169] ffff8801cc1da980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.131502] ================================================================== [ 24.138977] Kernel panic - not syncing: panic_on_warn set ... [ 24.138977] [ 24.146349] CPU: 1 PID: 4466 Comm: syz-executor768 Tainted: G B 4.18.0-rc3-next-20180709+ #2 [ 24.156204] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.165533] Call Trace: [ 24.168117] dump_stack+0x1c9/0x2b4 [ 24.171730] ? dump_stack_print_info.cold.2+0x52/0x52 [ 24.176903] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.181643] panic+0x238/0x4e7 [ 24.184821] ? add_taint.cold.5+0x16/0x16 [ 24.188952] ? do_raw_spin_unlock+0xa7/0x2f0 [ 24.193350] ? pdu_read+0x90/0xd0 [ 24.196796] kasan_end_report+0x47/0x4f [ 24.200750] kasan_report.cold.7+0x76/0x30d [ 24.205055] check_memory_region+0x13e/0x1b0 [ 24.209441] memcpy+0x23/0x50 [ 24.212529] pdu_read+0x90/0xd0 [ 24.215798] p9pdu_readf+0x579/0x2170 [ 24.219594] ? p9pdu_writef+0xe0/0xe0 [ 24.223375] ? ksys_dup3+0x690/0x690 [ 24.227074] ? check_same_owner+0x340/0x340 [ 24.231375] ? p9_fd_poll+0x2b0/0x2b0 [ 24.235162] ? kasan_kmalloc+0xc4/0xe0 [ 24.239040] ? kasan_unpoison_shadow+0x35/0x50 [ 24.243605] ? p9_fd_show_options+0x1c0/0x1c0 [ 24.248083] ? __raw_spin_lock_init+0x2d/0x100 [ 24.252648] p9_client_create+0xde0/0x16c9 [ 24.256873] ? p9_client_read+0xc60/0xc60 [ 24.261015] ? kasan_check_read+0x11/0x20 [ 24.265150] ? lock_acquire+0x1e4/0x540 [ 24.269103] ? fs_reclaim_acquire+0x20/0x20 [ 24.273421] ? lock_release+0xa30/0xa30 [ 24.277379] ? __lockdep_init_map+0x105/0x590 [ 24.281858] ? kasan_check_write+0x14/0x20 [ 24.286072] ? __init_rwsem+0x1cc/0x2a0 [ 24.290031] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 24.295035] ? __kmalloc_track_caller+0x311/0x760 [ 24.300813] ? save_stack+0xa9/0xd0 [ 24.304437] ? save_stack+0x43/0xd0 [ 24.308044] ? kasan_kmalloc+0xc4/0xe0 [ 24.311920] ? kmem_cache_alloc_trace+0x152/0x780 [ 24.316742] ? memcpy+0x45/0x50 [ 24.320008] v9fs_session_init+0x21a/0x1a80 [ 24.324322] ? rcu_note_context_switch+0x730/0x730 [ 24.329240] ? do_mount+0x69e/0x1fb0 [ 24.332939] ? lock_acquire+0x1e4/0x540 [ 24.336895] ? lock_downgrade+0x8f0/0x8f0 [ 24.341035] ? v9fs_show_options+0x7e0/0x7e0 [ 24.345423] ? kasan_check_read+0x11/0x20 [ 24.349550] ? do_raw_spin_unlock+0xa7/0x2f0 [ 24.353936] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 24.358505] ? kasan_check_write+0x14/0x20 [ 24.362719] ? do_raw_spin_lock+0xc1/0x200 [ 24.366933] ? kasan_unpoison_shadow+0x35/0x50 [ 24.371503] ? kasan_kmalloc+0xc4/0xe0 [ 24.375371] ? kmem_cache_alloc_trace+0x318/0x780 [ 24.380193] ? kasan_unpoison_shadow+0x35/0x50 [ 24.384771] ? kasan_kmalloc+0xc4/0xe0 [ 24.388648] v9fs_mount+0x7c/0x900 [ 24.392180] ? v9fs_drop_inode+0x150/0x150 [ 24.396395] legacy_get_tree+0x118/0x440 [ 24.400440] vfs_get_tree+0x1cb/0x5c0 [ 24.404223] do_mount+0x6c1/0x1fb0 [ 24.407754] ? kasan_check_write+0x14/0x20 [ 24.411976] ? copy_mount_string+0x40/0x40 [ 24.416193] ? kasan_kmalloc+0xc4/0xe0 [ 24.420063] ? kmem_cache_alloc_trace+0x318/0x780 [ 24.424898] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 24.430419] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 24.435944] ? copy_mount_options+0x285/0x380 [ 24.440420] ksys_mount+0x12d/0x140 [ 24.444033] __x64_sys_mount+0xbe/0x150 [ 24.447990] do_syscall_64+0x1b9/0x820 [ 24.451861] ? syscall_return_slowpath+0x5e0/0x5e0 [ 24.456773] ? syscall_return_slowpath+0x31d/0x5e0 [ 24.461682] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 24.466686] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 24.472205] ? prepare_exit_to_usermode+0x291/0x3b0 [ 24.477202] ? perf_trace_sys_enter+0xb10/0xb10 [ 24.481859] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.486684] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 24.491862] RIP: 0033:0x440959 [ 24.495030] Code: e8 8c b3 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 3b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 24.514150] RSP: 002b:00007fff319077c8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 24.521841] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440959 [ 24.529093] RDX: 0000000020000100 RSI: 00000000200000c0 RDI: 0000000000000000 [ 24.536349] RBP: 0000000000000000 R08: 0000000020000180 R09: 00000000004002c8 [ 24.543608] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000005bce [ 24.550873] R13: 0000000000401eb0 R14: 0000000000000000 R15: 0000000000000000 [ 24.558769] Dumping ftrace buffer: [ 24.562307] (ftrace buffer empty) [ 24.565999] Kernel Offset: disabled [ 24.569613] Rebooting in 86400 seconds..