[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 14.811599] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.575855] random: sshd: uninitialized urandom read (32 bytes read) [ 19.821737] random: sshd: uninitialized urandom read (32 bytes read) [ 20.487142] random: sshd: uninitialized urandom read (32 bytes read) [ 33.939658] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.60' (ECDSA) to the list of known hosts. [ 39.418977] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 39.504531] ================================================================== [ 39.511935] BUG: KASAN: use-after-free in _copy_to_user+0xe9/0x110 [ 39.518239] Read of size 985 at addr ffff8801a5fffff2 by task syz-executor650/4461 [ 39.525926] [ 39.527531] CPU: 0 PID: 4461 Comm: syz-executor650 Not tainted 4.18.0-rc3+ #48 [ 39.534864] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.544189] Call Trace: [ 39.546777] dump_stack+0x1c9/0x2b4 [ 39.550401] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.555568] ? printk+0xa7/0xcf [ 39.558823] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.563553] ? _copy_to_user+0xe9/0x110 [ 39.567513] print_address_description+0x6c/0x20b [ 39.572336] ? _copy_to_user+0xe9/0x110 [ 39.576284] kasan_report.cold.7+0x242/0x2fe [ 39.580672] check_memory_region+0x13e/0x1b0 [ 39.585059] kasan_check_read+0x11/0x20 [ 39.589008] _copy_to_user+0xe9/0x110 [ 39.592794] bpf_test_finish.isra.7+0xee/0x1f0 [ 39.597357] ? bpf_test_init.isra.8+0x100/0x100 [ 39.602001] ? bpf_test_run+0x2fc/0x3b0 [ 39.605952] bpf_prog_test_run_skb+0x7d7/0xa30 [ 39.610512] ? bpf_test_finish.isra.7+0x1f0/0x1f0 [ 39.615334] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.620856] ? __bpf_prog_get+0x9b/0x290 [ 39.624891] ? bpf_test_finish.isra.7+0x1f0/0x1f0 [ 39.629707] bpf_prog_test_run+0x130/0x1a0 [ 39.633928] __x64_sys_bpf+0x3d8/0x510 [ 39.637791] ? bpf_prog_get+0x20/0x20 [ 39.641582] ? do_page_fault+0xf6/0x8c0 [ 39.645535] do_syscall_64+0x1b9/0x820 [ 39.649413] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.654323] ? syscall_return_slowpath+0x31d/0x5e0 [ 39.659228] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.664220] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.669211] ? perf_trace_sys_enter+0xb10/0xb10 [ 39.673868] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.678688] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.683853] RIP: 0033:0x4402f9 [ 39.687016] 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 [ 39.706140] RSP: 002b:00007ffc87505f78 EFLAGS: 00000213 ORIG_RAX: 0000000000000141 [ 39.713831] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402f9 [ 39.721089] RDX: 0000000000000028 RSI: 0000000020000180 RDI: 000000000000000a [ 39.728340] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 39.735677] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401b80 [ 39.742925] R13: 0000000000401c10 R14: 0000000000000000 R15: 0000000000000000 [ 39.750179] [ 39.751781] The buggy address belongs to the page: [ 39.756686] page:ffffea000697ffc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 39.764812] flags: 0x2fffc0000000000() [ 39.768689] raw: 02fffc0000000000 ffffea000697ffc8 ffffea000697ffc8 0000000000000000 [ 39.776549] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 39.784402] page dumped because: kasan: bad access detected [ 39.790082] [ 39.791684] Memory state around the buggy address: [ 39.796586] ffff8801a5fffe80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.803928] ffff8801a5ffff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.811264] >ffff8801a5ffff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.818594] ^ [ 39.825579] ffff8801a6000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 39.832915] ffff8801a6000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 39.840249] ================================================================== [ 39.847685] Kernel panic - not syncing: panic_on_warn set ... [ 39.847685] [ 39.855040] CPU: 0 PID: 4461 Comm: syz-executor650 Tainted: G B 4.18.0-rc3+ #48 [ 39.863764] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.873091] Call Trace: [ 39.875664] dump_stack+0x1c9/0x2b4 [ 39.879272] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.884449] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.889187] panic+0x238/0x4e7 [ 39.892452] ? add_taint.cold.5+0x16/0x16 [ 39.896578] ? do_raw_spin_unlock+0xa7/0x2f0 [ 39.900962] ? do_raw_spin_unlock+0xa7/0x2f0 [ 39.905348] ? _copy_to_user+0xe9/0x110 [ 39.909298] kasan_end_report+0x47/0x4f [ 39.913251] kasan_report.cold.7+0x76/0x2fe [ 39.917560] check_memory_region+0x13e/0x1b0 [ 39.921946] kasan_check_read+0x11/0x20 [ 39.925894] _copy_to_user+0xe9/0x110 [ 39.929672] bpf_test_finish.isra.7+0xee/0x1f0 [ 39.934229] ? bpf_test_init.isra.8+0x100/0x100 [ 39.938877] ? bpf_test_run+0x2fc/0x3b0 [ 39.943100] bpf_prog_test_run_skb+0x7d7/0xa30 [ 39.947661] ? bpf_test_finish.isra.7+0x1f0/0x1f0 [ 39.952484] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.958515] ? __bpf_prog_get+0x9b/0x290 [ 39.962565] ? bpf_test_finish.isra.7+0x1f0/0x1f0 [ 39.967382] bpf_prog_test_run+0x130/0x1a0 [ 39.971593] __x64_sys_bpf+0x3d8/0x510 [ 39.975455] ? bpf_prog_get+0x20/0x20 [ 39.979234] ? do_page_fault+0xf6/0x8c0 [ 39.983188] do_syscall_64+0x1b9/0x820 [ 39.987073] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.991978] ? syscall_return_slowpath+0x31d/0x5e0 [ 39.996883] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.002137] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.007142] ? perf_trace_sys_enter+0xb10/0xb10 [ 40.011790] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.016612] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.021786] RIP: 0033:0x4402f9 [ 40.024950] 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 [ 40.044072] RSP: 002b:00007ffc87505f78 EFLAGS: 00000213 ORIG_RAX: 0000000000000141 [ 40.051765] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402f9 [ 40.059024] RDX: 0000000000000028 RSI: 0000000020000180 RDI: 000000000000000a [ 40.066270] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 40.073522] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401b80 [ 40.080776] R13: 0000000000401c10 R14: 0000000000000000 R15: 0000000000000000 [ 40.088732] Dumping ftrace buffer: [ 40.092246] (ftrace buffer empty) [ 40.095932] Kernel Offset: disabled [ 40.099536] Rebooting in 86400 seconds..