[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 13.672265] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.514061] random: sshd: uninitialized urandom read (32 bytes read) [ 18.973599] random: sshd: uninitialized urandom read (32 bytes read) [ 19.949396] random: sshd: uninitialized urandom read (32 bytes read) [ 22.966060] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts. [ 28.459992] 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 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 executing program executing program executing program executing program [ 30.692578] ================================================================== [ 30.700070] BUG: KASAN: slab-out-of-bounds in p9pdu_readf+0x535/0x1d50 [ 30.706714] Read of size 65411 at addr ffff8801b5b6c02d by task syz-executor518/3955 [ 30.714582] [ 30.716189] CPU: 1 PID: 3955 Comm: syz-executor518 Not tainted 4.9.111-g03c70fe #58 [ 30.723973] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.733845] ffff8801d89775a0 ffffffff81eb2729 ffffea0006d6db00 ffff8801b5b6c02d [ 30.741878] 0000000000000000 ffff8801b5b6e025 fffffffffffffff3 ffff8801d89775d8 [ 30.749890] ffffffff81567b59 ffff8801b5b6c02d 000000000000ff83 0000000000000000 [ 30.757949] Call Trace: [ 30.760559] [] dump_stack+0xc1/0x128 [ 30.765971] [] print_address_description+0x6c/0x234 [ 30.772651] [] kasan_report.cold.6+0x242/0x2fe [ 30.778986] [] ? p9pdu_readf+0x535/0x1d50 [ 30.784781] [] check_memory_region+0x14f/0x1b0 [ 30.791199] [] memcpy+0x23/0x50 [ 30.796133] [] p9pdu_readf+0x535/0x1d50 [ 30.801760] [] ? rcu_read_lock_sched_held+0x103/0x120 [ 30.808597] [] ? p9_client_rpc+0x643/0x1140 [ 30.814567] [] ? trace_event_raw_event_9p_client_res+0x270/0x270 [ 30.822361] [] ? add_wait_queue+0x76/0xa0 [ 30.828161] [] ? p9pdu_writef+0xe0/0xe0 [ 30.833780] [] ? iface_stat_update.cold.40+0xf4/0x143 [ 30.840600] [] ? pipe_poll+0x25c/0x2d0 [ 30.846138] [] ? p9_fd_poll+0x246/0x310 [ 30.851758] [] ? lockdep_init_map+0x105/0x4f0 [ 30.857901] [] ? prepare_to_wait_event+0x450/0x450 [ 30.864495] [] ? p9_conn_create+0x3c0/0x4c0 [ 30.870467] [] ? parse_opts.part.1+0x320/0x320 [ 30.876795] [] ? __raw_spin_lock_init+0x2d/0x100 [ 30.883225] [] p9_client_create+0xa3f/0x10a0 [ 30.889369] [] ? p9_client_zc_rpc.constprop.11+0x1020/0x1020 [ 30.896818] [] ? rcu_read_lock_sched_held+0x103/0x120 [ 30.903831] [] ? bdi_register+0xb4/0x570 [ 30.909613] [] ? bdi_init+0x7ae/0xab0 [ 30.915075] [] v9fs_session_init+0x333/0x13a0 [ 30.921231] [] ? _raw_spin_unlock_irqrestore+0x45/0x70 [ 30.929297] [] ? debug_check_no_obj_freed+0x2ec/0x930 [ 30.936143] [] ? v9fs_inode_init_once+0x30/0x30 [ 30.942445] [] ? debug_object_activate+0x4e0/0x4e0 [ 30.949027] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 30.955856] [] ? free_hot_cold_page+0x493/0x840 [ 30.962173] [] ? check_preemption_disabled+0x3b/0x170 [ 30.969024] [] ? kasan_unpoison_shadow+0x35/0x50 [ 30.975528] [] ? kasan_kmalloc+0xc7/0xe0 [ 30.981255] [] ? kmem_cache_alloc_trace+0xfd/0x2b0 [ 30.987818] [] ? v9fs_mount+0x62/0x810 [ 30.993343] [] v9fs_mount+0x7d/0x810 [ 30.998701] [] mount_fs+0x28c/0x370 [ 31.003977] [] vfs_kern_mount.part.29+0xd1/0x3d0 [ 31.010363] [] ? ns_capable_common+0x12a/0x150 [ 31.016595] [] do_mount+0x3c9/0x2740 [ 31.021944] [] ? copy_mount_string+0x40/0x40 [ 31.028007] [] ? kasan_unpoison_shadow+0x35/0x50 [ 31.034409] [] ? kasan_kmalloc+0xc7/0xe0 [ 31.040106] [] ? kmem_cache_alloc_trace+0xfd/0x2b0 [ 31.046690] [] ? copy_mount_options+0x5f/0x320 [ 31.052937] [] ? copy_mount_options+0x1e5/0x320 [ 31.059280] [] SyS_mount+0xfe/0x110 [ 31.064550] [] ? copy_mnt_ns+0x8e0/0x8e0 [ 31.070273] [] do_syscall_64+0x1a6/0x490 [ 31.075985] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.082917] [ 31.084535] The buggy address belongs to the page: [ 31.089473] page:ffffea0006d6db00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 31.099672] flags: 0x8000000000004000(head) [ 31.103980] page dumped because: kasan: bad access detected [ 31.109677] [ 31.111279] Memory state around the buggy address: [ 31.116189] ffff8801b5b6df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.124073] ffff8801b5b6df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.131527] >ffff8801b5b6e000: 00 00 00 00 fe fe fe fe fe fe fe fe fe fe fe fe [ 31.138876] ^ [ 31.143266] ffff8801b5b6e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 31.150616] ffff8801b5b6e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 31.157956] ================================================================== [ 31.165473] Disabling lock debugging due to kernel taint [ 31.171623] Kernel panic - not syncing: panic_on_warn set ... [ 31.171623] [ 31.179245] CPU: 1 PID: 3955 Comm: syz-executor518 Tainted: G B 4.9.111-g03c70fe #58 [ 31.188558] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.197897] ffff8801d8977500 ffffffff81eb2729 ffffffff843c71a7 00000000ffffffff [ 31.205912] 0000000000000000 0000000000000001 fffffffffffffff3 ffff8801d89775c0 [ 31.213943] ffffffff814219f5 0000000041b58ab3 ffffffff843ba8c0 ffffffff81421836 [ 31.222008] Call Trace: [ 31.224577] [] dump_stack+0xc1/0x128 [ 31.229933] [] panic+0x1bf/0x3bc [ 31.235110] [] ? add_taint.cold.6+0x16/0x16 [ 31.241167] [] ? ___preempt_schedule+0x16/0x18 [ 31.247489] [] kasan_end_report+0x47/0x4f [ 31.253379] [] kasan_report.cold.6+0x76/0x2fe [ 31.259521] [] ? p9pdu_readf+0x535/0x1d50 [ 31.265310] [] check_memory_region+0x14f/0x1b0 [ 31.271526] [] memcpy+0x23/0x50 [ 31.276440] [] p9pdu_readf+0x535/0x1d50 [ 31.282052] [] ? rcu_read_lock_sched_held+0x103/0x120 [ 31.288873] [] ? p9_client_rpc+0x643/0x1140 [ 31.294830] [] ? trace_event_raw_event_9p_client_res+0x270/0x270 [ 31.302627] [] ? add_wait_queue+0x76/0xa0 [ 31.308576] [] ? p9pdu_writef+0xe0/0xe0 [ 31.314198] [] ? iface_stat_update.cold.40+0xf4/0x143 [ 31.321023] [] ? pipe_poll+0x25c/0x2d0 [ 31.326539] [] ? p9_fd_poll+0x246/0x310 [ 31.332148] [] ? lockdep_init_map+0x105/0x4f0 [ 31.338360] [] ? prepare_to_wait_event+0x450/0x450 [ 31.345178] [] ? p9_conn_create+0x3c0/0x4c0 [ 31.351307] [] ? parse_opts.part.1+0x320/0x320 [ 31.357622] [] ? __raw_spin_lock_init+0x2d/0x100 [ 31.364298] [] p9_client_create+0xa3f/0x10a0 [ 31.370338] [] ? p9_client_zc_rpc.constprop.11+0x1020/0x1020 [ 31.377793] [] ? rcu_read_lock_sched_held+0x103/0x120 [ 31.384710] [] ? bdi_register+0xb4/0x570 [ 31.390412] [] ? bdi_init+0x7ae/0xab0 [ 31.395848] [] v9fs_session_init+0x333/0x13a0 [ 31.401997] [] ? _raw_spin_unlock_irqrestore+0x45/0x70 [ 31.408909] [] ? debug_check_no_obj_freed+0x2ec/0x930 [ 31.415739] [] ? v9fs_inode_init_once+0x30/0x30 [ 31.422039] [] ? debug_object_activate+0x4e0/0x4e0 [ 31.428605] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 31.435701] [] ? free_hot_cold_page+0x493/0x840 [ 31.442000] [] ? check_preemption_disabled+0x3b/0x170 [ 31.449265] [] ? kasan_unpoison_shadow+0x35/0x50 [ 31.456029] [] ? kasan_kmalloc+0xc7/0xe0 [ 31.462013] [] ? kmem_cache_alloc_trace+0xfd/0x2b0 [ 31.468597] [] ? v9fs_mount+0x62/0x810 [ 31.474125] [] v9fs_mount+0x7d/0x810 [ 31.479587] [] mount_fs+0x28c/0x370 [ 31.484873] [] vfs_kern_mount.part.29+0xd1/0x3d0 [ 31.491272] [] ? ns_capable_common+0x12a/0x150 [ 31.497578] [] do_mount+0x3c9/0x2740 [ 31.503019] [] ? copy_mount_string+0x40/0x40 [ 31.509145] [] ? kasan_unpoison_shadow+0x35/0x50 [ 31.515965] [] ? kasan_kmalloc+0xc7/0xe0 [ 31.521659] [] ? kmem_cache_alloc_trace+0xfd/0x2b0 [ 31.528479] [] ? copy_mount_options+0x5f/0x320 [ 31.534714] [] ? copy_mount_options+0x1e5/0x320 [ 31.541014] [] SyS_mount+0xfe/0x110 [ 31.546267] [] ? copy_mnt_ns+0x8e0/0x8e0 [ 31.551966] [] do_syscall_64+0x1a6/0x490 [ 31.557677] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.565196] Dumping ftrace buffer: [ 31.568753] (ftrace buffer empty) [ 31.572594] Kernel Offset: disabled [ 31.576215] Rebooting in 86400 seconds..