[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 15.273651] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.521081] random: sshd: uninitialized urandom read (32 bytes read) [ 17.730820] random: sshd: uninitialized urandom read (32 bytes read) [ 18.424423] random: sshd: uninitialized urandom read (32 bytes read) [ 20.644204] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.31' (ECDSA) to the list of known hosts. [ 26.049782] 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 [ 26.131987] 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. [ 26.191567] ================================================================== [ 26.198966] BUG: KASAN: slab-out-of-bounds in pdu_read+0x90/0xd0 [ 26.205091] Read of size 41399 at addr ffff8801c3360eed by task syz-executor312/4482 [ 26.212942] [ 26.214559] CPU: 1 PID: 4482 Comm: syz-executor312 Not tainted 4.18.0-rc3-next-20180709+ #2 [ 26.223026] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.232356] Call Trace: [ 26.234932] dump_stack+0x1c9/0x2b4 [ 26.238544] ? dump_stack_print_info.cold.2+0x52/0x52 [ 26.243716] ? printk+0xa7/0xcf [ 26.246974] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 26.251706] ? pdu_read+0x90/0xd0 [ 26.255138] print_address_description+0x6c/0x20b [ 26.259974] ? pdu_read+0x90/0xd0 [ 26.263404] kasan_report.cold.7+0x242/0x30d [ 26.267804] check_memory_region+0x13e/0x1b0 [ 26.272202] memcpy+0x23/0x50 [ 26.275284] pdu_read+0x90/0xd0 [ 26.278554] p9pdu_readf+0x579/0x2170 [ 26.282341] ? p9pdu_writef+0xe0/0xe0 [ 26.286126] ? ksys_dup3+0x690/0x690 [ 26.289817] ? do_raw_spin_lock+0xc1/0x200 [ 26.294034] ? kasan_kmalloc+0xc4/0xe0 [ 26.297904] ? kasan_unpoison_shadow+0x35/0x50 [ 26.302468] ? p9_fd_show_options+0x1c0/0x1c0 [ 26.306940] ? __raw_spin_lock_init+0x2d/0x100 [ 26.311508] p9_client_create+0xde0/0x16c9 [ 26.315724] ? p9_client_read+0xc60/0xc60 [ 26.319852] ? kasan_check_read+0x11/0x20 [ 26.323980] ? lock_acquire+0x1e4/0x540 [ 26.327933] ? fs_reclaim_acquire+0x20/0x20 [ 26.332234] ? lock_release+0xa30/0xa30 [ 26.336202] ? __lockdep_init_map+0x105/0x590 [ 26.340686] ? kasan_check_write+0x14/0x20 [ 26.344901] ? __init_rwsem+0x1cc/0x2a0 [ 26.348855] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 26.353850] ? __kmalloc_track_caller+0x311/0x760 [ 26.358670] ? save_stack+0xa9/0xd0 [ 26.362276] ? save_stack+0x43/0xd0 [ 26.365892] ? kasan_kmalloc+0xc4/0xe0 [ 26.369757] ? kmem_cache_alloc_trace+0x152/0x780 [ 26.374585] ? memcpy+0x45/0x50 [ 26.377855] v9fs_session_init+0x21a/0x1a80 [ 26.382163] ? rcu_note_context_switch+0x730/0x730 [ 26.387069] ? do_mount+0x69e/0x1fb0 [ 26.390772] ? lock_acquire+0x1e4/0x540 [ 26.394725] ? v9fs_show_options+0x7e0/0x7e0 [ 26.399112] ? lock_release+0xa30/0xa30 [ 26.403068] ? check_same_owner+0x340/0x340 [ 26.407378] ? kasan_unpoison_shadow+0x35/0x50 [ 26.411940] ? kasan_kmalloc+0xc4/0xe0 [ 26.415816] ? kmem_cache_alloc_trace+0x318/0x780 [ 26.420638] ? kasan_unpoison_shadow+0x35/0x50 [ 26.425202] ? kasan_kmalloc+0xc4/0xe0 [ 26.429078] v9fs_mount+0x7c/0x900 [ 26.432599] ? v9fs_drop_inode+0x150/0x150 [ 26.436812] legacy_get_tree+0x118/0x440 [ 26.440860] vfs_get_tree+0x1cb/0x5c0 [ 26.444640] do_mount+0x6c1/0x1fb0 [ 26.448160] ? kasan_check_write+0x14/0x20 [ 26.452373] ? copy_mount_string+0x40/0x40 [ 26.456592] ? kasan_kmalloc+0xc4/0xe0 [ 26.460456] ? kmem_cache_alloc_trace+0x318/0x780 [ 26.465280] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 26.470809] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 26.476331] ? copy_mount_options+0x285/0x380 [ 26.480805] ksys_mount+0x12d/0x140 [ 26.484410] __x64_sys_mount+0xbe/0x150 [ 26.488365] do_syscall_64+0x1b9/0x820 [ 26.492234] ? syscall_return_slowpath+0x5e0/0x5e0 [ 26.497142] ? syscall_return_slowpath+0x31d/0x5e0 [ 26.502056] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 26.507054] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 26.512578] ? prepare_exit_to_usermode+0x291/0x3b0 [ 26.517586] ? perf_trace_sys_enter+0xb10/0xb10 [ 26.522232] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.527058] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 26.532237] RIP: 0033:0x440959 [ 26.535408] 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 [ 26.554541] RSP: 002b:00007ffe8d5475b8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 [ 26.562237] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440959 [ 26.569486] RDX: 0000000020000100 RSI: 00000000200000c0 RDI: 0000000000000000 [ 26.576751] RBP: 0000000000000000 R08: 0000000020000680 R09: 00000000004002c8 [ 26.584000] R10: 0000000000000000 R11: 0000000000000206 R12: 000000000000664b [ 26.591256] R13: 0000000000401eb0 R14: 0000000000000000 R15: 0000000000000000 [ 26.598508] [ 26.600113] Allocated by task 4482: [ 26.603723] save_stack+0x43/0xd0 [ 26.607156] kasan_kmalloc+0xc4/0xe0 [ 26.610847] __kmalloc+0x14e/0x760 [ 26.614367] p9_fcall_alloc+0x1e/0x90 [ 26.618145] p9_client_prepare_req.part.9+0x754/0xcd0 [ 26.623314] p9_client_rpc+0x1bd/0x1400 [ 26.627264] p9_client_create+0xd09/0x16c9 [ 26.631488] v9fs_session_init+0x21a/0x1a80 [ 26.635804] v9fs_mount+0x7c/0x900 [ 26.639341] legacy_get_tree+0x118/0x440 [ 26.643391] vfs_get_tree+0x1cb/0x5c0 [ 26.647171] do_mount+0x6c1/0x1fb0 [ 26.650688] ksys_mount+0x12d/0x140 [ 26.654296] __x64_sys_mount+0xbe/0x150 [ 26.658250] do_syscall_64+0x1b9/0x820 [ 26.662118] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 26.667292] [ 26.668901] Freed by task 0: [ 26.671892] (stack is not available) [ 26.675577] [ 26.677185] The buggy address belongs to the object at ffff8801c3360ec0 [ 26.677185] which belongs to the cache kmalloc-16384 of size 16384 [ 26.690166] The buggy address is located 45 bytes inside of [ 26.690166] 16384-byte region [ffff8801c3360ec0, ffff8801c3364ec0) [ 26.702101] The buggy address belongs to the page: [ 26.707012] page:ffffea00070cd800 count:1 mapcount:0 mapping:ffff8801da802200 index:0x0 compound_mapcount: 0 [ 26.716972] flags: 0x2fffc0000008100(slab|head) [ 26.721622] raw: 02fffc0000008100 ffffea00070a4208 ffff8801da801c48 ffff8801da802200 [ 26.729493] raw: 0000000000000000 ffff8801c3360ec0 0000000100000001 0000000000000000 [ 26.737435] page dumped because: kasan: bad access detected [ 26.743900] [ 26.745508] Memory state around the buggy address: [ 26.750424] ffff8801c3362d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.757771] ffff8801c3362e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.765111] >ffff8801c3362e80: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 26.772452] ^ [ 26.778919] ffff8801c3362f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.786257] ffff8801c3362f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.793592] ================================================================== [ 26.801061] Kernel panic - not syncing: panic_on_warn set ... [ 26.801061] [ 26.808423] CPU: 1 PID: 4482 Comm: syz-executor312 Tainted: G B 4.18.0-rc3-next-20180709+ #2 [ 26.818280] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.827625] Call Trace: [ 26.830209] dump_stack+0x1c9/0x2b4 [ 26.833836] ? dump_stack_print_info.cold.2+0x52/0x52 [ 26.839029] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.843771] panic+0x238/0x4e7 [ 26.846945] ? add_taint.cold.5+0x16/0x16 [ 26.851083] ? do_raw_spin_unlock+0xa7/0x2f0 [ 26.855474] ? pdu_read+0x90/0xd0 [ 26.858907] kasan_end_report+0x47/0x4f [ 26.862868] kasan_report.cold.7+0x76/0x30d [ 26.867169] check_memory_region+0x13e/0x1b0 [ 26.871565] memcpy+0x23/0x50 [ 26.874653] pdu_read+0x90/0xd0 [ 26.877910] p9pdu_readf+0x579/0x2170 [ 26.881698] ? p9pdu_writef+0xe0/0xe0 [ 26.885486] ? ksys_dup3+0x690/0x690 [ 26.889185] ? do_raw_spin_lock+0xc1/0x200 [ 26.893402] ? kasan_kmalloc+0xc4/0xe0 [ 26.897275] ? kasan_unpoison_shadow+0x35/0x50 [ 26.901838] ? p9_fd_show_options+0x1c0/0x1c0 [ 26.906313] ? __raw_spin_lock_init+0x2d/0x100 [ 26.910896] p9_client_create+0xde0/0x16c9 [ 26.915115] ? p9_client_read+0xc60/0xc60 [ 26.919244] ? kasan_check_read+0x11/0x20 [ 26.923382] ? lock_acquire+0x1e4/0x540 [ 26.927333] ? fs_reclaim_acquire+0x20/0x20 [ 26.931635] ? lock_release+0xa30/0xa30 [ 26.935589] ? __lockdep_init_map+0x105/0x590 [ 26.940064] ? kasan_check_write+0x14/0x20 [ 26.944278] ? __init_rwsem+0x1cc/0x2a0 [ 26.948232] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 26.953229] ? __kmalloc_track_caller+0x311/0x760 [ 26.958237] ? save_stack+0xa9/0xd0 [ 26.961854] ? save_stack+0x43/0xd0 [ 26.965462] ? kasan_kmalloc+0xc4/0xe0 [ 26.969329] ? kmem_cache_alloc_trace+0x152/0x780 [ 26.974151] ? memcpy+0x45/0x50 [ 26.977414] v9fs_session_init+0x21a/0x1a80 [ 26.981724] ? rcu_note_context_switch+0x730/0x730 [ 26.986632] ? do_mount+0x69e/0x1fb0 [ 26.990336] ? lock_acquire+0x1e4/0x540 [ 26.994289] ? v9fs_show_options+0x7e0/0x7e0 [ 26.998678] ? lock_release+0xa30/0xa30 [ 27.002632] ? check_same_owner+0x340/0x340 [ 27.006937] ? kasan_unpoison_shadow+0x35/0x50 [ 27.011500] ? kasan_kmalloc+0xc4/0xe0 [ 27.015367] ? kmem_cache_alloc_trace+0x318/0x780 [ 27.020200] ? kasan_unpoison_shadow+0x35/0x50 [ 27.024769] ? kasan_kmalloc+0xc4/0xe0 [ 27.028638] v9fs_mount+0x7c/0x900 [ 27.032159] ? v9fs_drop_inode+0x150/0x150 [ 27.036374] legacy_get_tree+0x118/0x440 [ 27.040417] vfs_get_tree+0x1cb/0x5c0 [ 27.044199] do_mount+0x6c1/0x1fb0 [ 27.047726] ? kasan_check_write+0x14/0x20 [ 27.051951] ? copy_mount_string+0x40/0x40 [ 27.056167] ? kasan_kmalloc+0xc4/0xe0 [ 27.060056] ? kmem_cache_alloc_trace+0x318/0x780 [ 27.064889] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 27.070423] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 27.075941] ? copy_mount_options+0x285/0x380 [ 27.080416] ksys_mount+0x12d/0x140 [ 27.084030] __x64_sys_mount+0xbe/0x150 [ 27.087994] do_syscall_64+0x1b9/0x820 [ 27.091866] ? syscall_return_slowpath+0x5e0/0x5e0 [ 27.096774] ? syscall_return_slowpath+0x31d/0x5e0 [ 27.101683] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 27.106689] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 27.112204] ? prepare_exit_to_usermode+0x291/0x3b0 [ 27.117201] ? perf_trace_sys_enter+0xb10/0xb10 [ 27.121848] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.126671] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 27.131837] RIP: 0033:0x440959 [ 27.135000] 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 [ 27.154146] RSP: 002b:00007ffe8d5475b8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 [ 27.161835] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440959 [ 27.169082] RDX: 0000000020000100 RSI: 00000000200000c0 RDI: 0000000000000000 [ 27.176328] RBP: 0000000000000000 R08: 0000000020000680 R09: 00000000004002c8 [ 27.183575] R10: 0000000000000000 R11: 0000000000000206 R12: 000000000000664b [ 27.190821] R13: 0000000000401eb0 R14: 0000000000000000 R15: 0000000000000000 [ 27.198511] Dumping ftrace buffer: [ 27.202037] (ftrace buffer empty) [ 27.205722] Kernel Offset: disabled [ 27.209326] Rebooting in 86400 seconds..