[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 16.076456] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.319655] random: sshd: uninitialized urandom read (32 bytes read) [ 18.723550] random: sshd: uninitialized urandom read (32 bytes read) [ 19.436626] random: sshd: uninitialized urandom read (32 bytes read) [ 19.577418] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.53' (ECDSA) to the list of known hosts. [ 24.976755] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program [ 25.061269] ================================================================== [ 25.068681] BUG: KASAN: slab-out-of-bounds in pdu_read+0x90/0xd0 [ 25.074815] Read of size 57376 at addr ffff8801bda606ad by task syz-executor126/4457 [ 25.082698] [ 25.084312] CPU: 1 PID: 4457 Comm: syz-executor126 Not tainted 4.18.0-rc3-next-20180706+ #1 [ 25.092782] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.102122] Call Trace: [ 25.104700] dump_stack+0x1c9/0x2b4 [ 25.108312] ? dump_stack_print_info.cold.2+0x52/0x52 [ 25.113483] ? printk+0xa7/0xcf [ 25.116743] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 25.121487] ? pdu_read+0x90/0xd0 [ 25.124929] print_address_description+0x6c/0x20b [ 25.129753] ? pdu_read+0x90/0xd0 [ 25.133190] kasan_report.cold.7+0x242/0x30d [ 25.137579] check_memory_region+0x13e/0x1b0 [ 25.141972] memcpy+0x23/0x50 [ 25.145067] pdu_read+0x90/0xd0 [ 25.148337] p9pdu_readf+0x579/0x2170 [ 25.152148] ? p9pdu_writef+0xe0/0xe0 [ 25.155938] ? ksys_dup3+0x690/0x690 [ 25.159637] ? check_same_owner+0x340/0x340 [ 25.163942] ? p9_fd_poll+0x2b0/0x2b0 [ 25.167745] ? kasan_kmalloc+0xc4/0xe0 [ 25.171639] ? kasan_unpoison_shadow+0x35/0x50 [ 25.176218] ? p9_fd_show_options+0x1c0/0x1c0 [ 25.180709] ? __raw_spin_lock_init+0x2d/0x100 [ 25.185276] p9_client_create+0xde0/0x16c9 [ 25.189504] ? p9_client_read+0xc60/0xc60 [ 25.193674] ? kasan_check_read+0x11/0x20 [ 25.197829] ? lock_acquire+0x1e4/0x540 [ 25.201799] ? fs_reclaim_acquire+0x20/0x20 [ 25.206113] ? lock_release+0xa30/0xa30 [ 25.210075] ? __lockdep_init_map+0x105/0x590 [ 25.214569] ? kasan_check_write+0x14/0x20 [ 25.218798] ? __init_rwsem+0x1cc/0x2a0 [ 25.222759] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 25.227767] ? __kmalloc_track_caller+0x311/0x760 [ 25.232601] ? save_stack+0xa9/0xd0 [ 25.236219] ? save_stack+0x43/0xd0 [ 25.239833] ? kasan_kmalloc+0xc4/0xe0 [ 25.243708] ? kmem_cache_alloc_trace+0x152/0x780 [ 25.248537] ? memcpy+0x45/0x50 [ 25.251806] v9fs_session_init+0x21a/0x1a80 [ 25.256123] ? rcu_note_context_switch+0x730/0x730 [ 25.261122] ? do_mount+0x69e/0x1fb0 [ 25.264848] ? lock_acquire+0x1e4/0x540 [ 25.268807] ? v9fs_show_options+0x7e0/0x7e0 [ 25.273197] ? lock_release+0xa30/0xa30 [ 25.277158] ? check_same_owner+0x340/0x340 [ 25.281482] ? kasan_unpoison_shadow+0x35/0x50 [ 25.286054] ? kasan_kmalloc+0xc4/0xe0 [ 25.289924] ? kmem_cache_alloc_trace+0x318/0x780 [ 25.294758] ? kasan_unpoison_shadow+0x35/0x50 [ 25.299326] ? kasan_kmalloc+0xc4/0xe0 [ 25.303212] v9fs_mount+0x7c/0x900 [ 25.306734] ? v9fs_drop_inode+0x150/0x150 [ 25.310958] legacy_get_tree+0x118/0x440 [ 25.315015] vfs_get_tree+0x1cb/0x5c0 [ 25.318827] do_mount+0x6c1/0x1fb0 [ 25.322364] ? kasan_check_write+0x14/0x20 [ 25.326585] ? copy_mount_string+0x40/0x40 [ 25.330802] ? kasan_kmalloc+0xc4/0xe0 [ 25.334670] ? kmem_cache_alloc_trace+0x318/0x780 [ 25.339494] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 25.345042] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 25.350572] ? copy_mount_options+0x285/0x380 [ 25.355061] ksys_mount+0x12d/0x140 [ 25.358676] __x64_sys_mount+0xbe/0x150 [ 25.362653] do_syscall_64+0x1b9/0x820 [ 25.366522] ? syscall_return_slowpath+0x5e0/0x5e0 [ 25.371442] ? syscall_return_slowpath+0x31d/0x5e0 [ 25.376363] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 25.381384] ? prepare_exit_to_usermode+0x291/0x3b0 [ 25.386383] ? perf_trace_sys_enter+0xb10/0xb10 [ 25.391045] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.395892] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 25.401072] RIP: 0033:0x440319 [ 25.404261] 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 [ 25.423435] RSP: 002b:00007ffe8f3db908 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 25.431129] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000440319 [ 25.438399] RDX: 0000000020000140 RSI: 0000000020000100 RDI: 0000000000000000 [ 25.445764] RBP: 69736f7030707070 R08: 0000000020000280 R09: 0000000000000001 [ 25.453044] R10: 0000000000010000 R11: 0000000000000202 R12: 4c50473070707028 [ 25.460312] R13: 64663d736e617274 R14: 0000000000000000 R15: 0000000000000000 [ 25.467577] [ 25.469192] Allocated by task 4457: [ 25.472830] save_stack+0x43/0xd0 [ 25.476280] kasan_kmalloc+0xc4/0xe0 [ 25.479972] __kmalloc+0x14e/0x760 [ 25.483496] p9_fcall_alloc+0x1e/0x90 [ 25.487279] p9_client_prepare_req.part.9+0x754/0xcd0 [ 25.492469] p9_client_rpc+0x1bd/0x1400 [ 25.496433] p9_client_create+0xd09/0x16c9 [ 25.500670] v9fs_session_init+0x21a/0x1a80 [ 25.504983] v9fs_mount+0x7c/0x900 [ 25.508508] legacy_get_tree+0x118/0x440 [ 25.512560] vfs_get_tree+0x1cb/0x5c0 [ 25.516350] do_mount+0x6c1/0x1fb0 [ 25.519887] ksys_mount+0x12d/0x140 [ 25.523526] __x64_sys_mount+0xbe/0x150 [ 25.527484] do_syscall_64+0x1b9/0x820 [ 25.531354] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 25.536522] [ 25.538152] Freed by task 0: [ 25.541156] (stack is not available) [ 25.544850] [ 25.546460] The buggy address belongs to the object at ffff8801bda60680 [ 25.546460] which belongs to the cache kmalloc-16384 of size 16384 [ 25.559465] The buggy address is located 45 bytes inside of [ 25.559465] 16384-byte region [ffff8801bda60680, ffff8801bda64680) [ 25.571675] The buggy address belongs to the page: [ 25.576594] page:ffffea0006f69800 count:1 mapcount:0 mapping:ffff8801da802200 index:0x0 compound_mapcount: 0 [ 25.586564] flags: 0x2fffc0000008100(slab|head) [ 25.591223] raw: 02fffc0000008100 ffffea0007028a08 ffff8801da801c48 ffff8801da802200 [ 25.599103] raw: 0000000000000000 ffff8801bda60680 0000000100000001 0000000000000000 [ 25.606970] page dumped because: kasan: bad access detected [ 25.612672] [ 25.614309] Memory state around the buggy address: [ 25.619227] ffff8801bda62580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.626578] ffff8801bda62600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.633939] >ffff8801bda62680: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 25.641294] ^ [ 25.645686] ffff8801bda62700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.653034] ffff8801bda62780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.660378] ================================================================== [ 25.667891] Kernel panic - not syncing: panic_on_warn set ... [ 25.667891] [ 25.675256] CPU: 1 PID: 4457 Comm: syz-executor126 Tainted: G B 4.18.0-rc3-next-20180706+ #1 [ 25.685116] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.694452] Call Trace: [ 25.697041] dump_stack+0x1c9/0x2b4 [ 25.700670] ? dump_stack_print_info.cold.2+0x52/0x52 [ 25.705862] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.710610] panic+0x238/0x4e7 [ 25.713782] ? add_taint.cold.5+0x16/0x16 [ 25.717928] ? do_raw_spin_unlock+0xa7/0x2f0 [ 25.722353] ? pdu_read+0x90/0xd0 [ 25.725786] kasan_end_report+0x47/0x4f [ 25.729753] kasan_report.cold.7+0x76/0x30d [ 25.734071] check_memory_region+0x13e/0x1b0 [ 25.738473] memcpy+0x23/0x50 [ 25.741577] pdu_read+0x90/0xd0 [ 25.744868] p9pdu_readf+0x579/0x2170 [ 25.748668] ? p9pdu_writef+0xe0/0xe0 [ 25.752450] ? ksys_dup3+0x690/0x690 [ 25.756152] ? check_same_owner+0x340/0x340 [ 25.760455] ? p9_fd_poll+0x2b0/0x2b0 [ 25.764238] ? kasan_kmalloc+0xc4/0xe0 [ 25.768117] ? kasan_unpoison_shadow+0x35/0x50 [ 25.772682] ? p9_fd_show_options+0x1c0/0x1c0 [ 25.777165] ? __raw_spin_lock_init+0x2d/0x100 [ 25.781734] p9_client_create+0xde0/0x16c9 [ 25.785961] ? p9_client_read+0xc60/0xc60 [ 25.790789] ? kasan_check_read+0x11/0x20 [ 25.794921] ? lock_acquire+0x1e4/0x540 [ 25.798878] ? fs_reclaim_acquire+0x20/0x20 [ 25.803191] ? lock_release+0xa30/0xa30 [ 25.807147] ? __lockdep_init_map+0x105/0x590 [ 25.811634] ? kasan_check_write+0x14/0x20 [ 25.815850] ? __init_rwsem+0x1cc/0x2a0 [ 25.819804] ? do_raw_write_unlock.cold.8+0x49/0x49 [ 25.824813] ? __kmalloc_track_caller+0x311/0x760 [ 25.829641] ? save_stack+0xa9/0xd0 [ 25.833250] ? save_stack+0x43/0xd0 [ 25.836857] ? kasan_kmalloc+0xc4/0xe0 [ 25.840732] ? kmem_cache_alloc_trace+0x152/0x780 [ 25.845572] ? memcpy+0x45/0x50 [ 25.848856] v9fs_session_init+0x21a/0x1a80 [ 25.853168] ? rcu_note_context_switch+0x730/0x730 [ 25.858092] ? do_mount+0x69e/0x1fb0 [ 25.861793] ? lock_acquire+0x1e4/0x540 [ 25.865762] ? v9fs_show_options+0x7e0/0x7e0 [ 25.870180] ? lock_release+0xa30/0xa30 [ 25.874136] ? check_same_owner+0x340/0x340 [ 25.878445] ? kasan_unpoison_shadow+0x35/0x50 [ 25.883010] ? kasan_kmalloc+0xc4/0xe0 [ 25.886888] ? kmem_cache_alloc_trace+0x318/0x780 [ 25.891714] ? kasan_unpoison_shadow+0x35/0x50 [ 25.896299] ? kasan_kmalloc+0xc4/0xe0 [ 25.900172] v9fs_mount+0x7c/0x900 [ 25.903714] ? v9fs_drop_inode+0x150/0x150 [ 25.907958] legacy_get_tree+0x118/0x440 [ 25.912018] vfs_get_tree+0x1cb/0x5c0 [ 25.915825] do_mount+0x6c1/0x1fb0 [ 25.919359] ? kasan_check_write+0x14/0x20 [ 25.923590] ? copy_mount_string+0x40/0x40 [ 25.927826] ? kasan_kmalloc+0xc4/0xe0 [ 25.931698] ? kmem_cache_alloc_trace+0x318/0x780 [ 25.936520] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 25.942045] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 25.947578] ? copy_mount_options+0x285/0x380 [ 25.952060] ksys_mount+0x12d/0x140 [ 25.955673] __x64_sys_mount+0xbe/0x150 [ 25.959629] do_syscall_64+0x1b9/0x820 [ 25.963507] ? syscall_return_slowpath+0x5e0/0x5e0 [ 25.968432] ? syscall_return_slowpath+0x31d/0x5e0 [ 25.973369] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 25.978397] ? prepare_exit_to_usermode+0x291/0x3b0 [ 25.983415] ? perf_trace_sys_enter+0xb10/0xb10 [ 25.988080] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.992926] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 25.998095] RIP: 0033:0x440319 [ 26.001264] 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 [ 26.020397] RSP: 002b:00007ffe8f3db908 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 [ 26.028103] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000440319 [ 26.035365] RDX: 0000000020000140 RSI: 0000000020000100 RDI: 0000000000000000 [ 26.042615] RBP: 69736f7030707070 R08: 0000000020000280 R09: 0000000000000001 [ 26.049864] R10: 0000000000010000 R11: 0000000000000202 R12: 4c50473070707028 [ 26.057118] R13: 64663d736e617274 R14: 0000000000000000 R15: 0000000000000000 [ 26.064924] Dumping ftrace buffer: [ 26.068468] (ftrace buffer empty) [ 26.072157] Kernel Offset: disabled [ 26.075773] Rebooting in 86400 seconds..