[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 13.428450] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.765047] random: sshd: uninitialized urandom read (32 bytes read) [ 16.217864] random: sshd: uninitialized urandom read (32 bytes read) [ 16.711928] random: sshd: uninitialized urandom read (32 bytes read) [ 16.853045] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.3' (ECDSA) to the list of known hosts. [ 22.262199] 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 [ 22.686028] ================================================================== [ 22.693402] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 22.700647] Read of size 4 at addr ffff8801b683cf00 by task syz-executor580/3880 [ 22.708159] [ 22.709766] CPU: 1 PID: 3880 Comm: syz-executor580 Not tainted 4.9.117-g8b21e85 #71 [ 22.717531] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.726868] ffff8801b6d27cb0 ffffffff81eb4be9 ffffea0006da0f00 ffff8801b683cf00 [ 22.734870] 0000000000000000 ffff8801b683cf00 ffffffff83015be0 ffff8801b6d27ce8 [ 22.742871] ffffffff81567f89 ffff8801b683cf00 0000000000000004 0000000000000000 [ 22.750849] Call Trace: [ 22.753410] [] dump_stack+0xc1/0x128 [ 22.758771] [] ? sock_release+0x1c0/0x1c0 [ 22.764549] [] print_address_description+0x6c/0x234 [ 22.771190] [] ? sock_release+0x1c0/0x1c0 [ 22.776963] [] kasan_report.cold.6+0x242/0x2fe [ 22.783186] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 22.789925] [] __asan_report_load4_noabort+0x14/0x20 [ 22.796663] [] l2tp_session_queue_purge+0xf4/0x100 [ 22.803219] [] ? sock_release+0x1c0/0x1c0 [ 22.809001] [] pppol2tp_release+0x1fb/0x2e0 [ 22.814969] [] sock_release+0x96/0x1c0 [ 22.820482] [] sock_close+0x16/0x20 [ 22.825743] [] __fput+0x263/0x700 [ 22.830845] [] ____fput+0x15/0x20 [ 22.835938] [] task_work_run+0x10c/0x180 [ 22.841627] [] exit_to_usermode_loop+0xfc/0x120 [ 22.847921] [] do_syscall_64+0x364/0x490 [ 22.853615] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 22.860510] [ 22.862112] Allocated by task 3881: [ 22.865710] save_stack_trace+0x16/0x20 [ 22.869668] save_stack+0x43/0xd0 [ 22.873116] kasan_kmalloc+0xc7/0xe0 [ 22.876805] __kmalloc+0x11d/0x300 [ 22.880327] l2tp_session_create+0x38/0x16f0 [ 22.884711] pppol2tp_connect+0x10d7/0x18f0 [ 22.889011] SYSC_connect+0x1b8/0x300 [ 22.892814] SyS_connect+0x24/0x30 [ 22.896332] do_syscall_64+0x1a6/0x490 [ 22.900195] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 22.905268] [ 22.906869] Freed by task 3839: [ 22.910128] save_stack_trace+0x16/0x20 [ 22.914094] save_stack+0x43/0xd0 [ 22.917521] kasan_slab_free+0x72/0xc0 [ 22.921381] kfree+0xfb/0x310 [ 22.924458] l2tp_session_free+0x166/0x200 [ 22.928663] l2tp_tunnel_closeall+0x284/0x350 [ 22.933139] l2tp_udp_encap_destroy+0x87/0xe0 [ 22.937607] udpv6_destroy_sock+0xb1/0xd0 [ 22.941726] sk_common_release+0x6d/0x300 [ 22.945846] udp_lib_close+0x15/0x20 [ 22.949529] inet_release+0xff/0x1d0 [ 22.953215] inet6_release+0x50/0x70 [ 22.956904] sock_release+0x96/0x1c0 [ 22.960606] sock_close+0x16/0x20 [ 22.964034] __fput+0x263/0x700 [ 22.967288] ____fput+0x15/0x20 [ 22.970547] task_work_run+0x10c/0x180 [ 22.974409] do_exit+0x9e1/0x27b0 [ 22.977839] do_group_exit+0x111/0x340 [ 22.981743] get_signal+0x4cf/0x1450 [ 22.985444] do_signal+0x87/0x19f0 [ 22.988956] exit_to_usermode_loop+0xe1/0x120 [ 22.993423] prepare_exit_to_usermode+0xbb/0xe0 [ 22.998066] retint_user+0x8/0x3c [ 23.001487] [ 23.003087] The buggy address belongs to the object at ffff8801b683cf00 [ 23.003087] which belongs to the cache kmalloc-512 of size 512 [ 23.015824] The buggy address is located 0 bytes inside of [ 23.015824] 512-byte region [ffff8801b683cf00, ffff8801b683d100) [ 23.027497] The buggy address belongs to the page: [ 23.032403] page:ffffea0006da0f00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 23.042609] flags: 0x8000000000004080(slab|head) [ 23.047333] page dumped because: kasan: bad access detected [ 23.053022] [ 23.054617] Memory state around the buggy address: [ 23.059518] ffff8801b683ce00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.066854] ffff8801b683ce80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.074184] >ffff8801b683cf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.081512] ^ [ 23.084850] ffff8801b683cf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.092184] ffff8801b683d000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.099515] ================================================================== [ 23.106845] Disabling lock debugging due to kernel taint [ 23.112349] Kernel panic - not syncing: panic_on_warn set ... [ 23.112349] [ 23.119809] CPU: 1 PID: 3880 Comm: syz-executor580 Tainted: G B 4.9.117-g8b21e85 #71 [ 23.128794] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.138129] ffff8801b6d27c10 ffffffff81eb4be9 ffffffff843c893f 00000000ffffffff [ 23.146113] 0000000000000000 0000000000000001 ffffffff83015be0 ffff8801b6d27cd0 [ 23.154094] ffffffff81421c85 0000000041b58ab3 ffffffff843bc020 ffffffff81421ac6 [ 23.162101] Call Trace: [ 23.164664] [] dump_stack+0xc1/0x128 [ 23.170001] [] ? sock_release+0x1c0/0x1c0 [ 23.175773] [] panic+0x1bf/0x3bc [ 23.180768] [] ? add_taint.cold.6+0x16/0x16 [ 23.186715] [] ? ___preempt_schedule+0x16/0x18 [ 23.192924] [] kasan_end_report+0x47/0x4f [ 23.198695] [] kasan_report.cold.6+0x76/0x2fe [ 23.204816] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 23.211545] [] __asan_report_load4_noabort+0x14/0x20 [ 23.218273] [] l2tp_session_queue_purge+0xf4/0x100 [ 23.224831] [] ? sock_release+0x1c0/0x1c0 [ 23.230603] [] pppol2tp_release+0x1fb/0x2e0 [ 23.236546] [] sock_release+0x96/0x1c0 [ 23.242064] [] sock_close+0x16/0x20 [ 23.247318] [] __fput+0x263/0x700 [ 23.252407] [] ____fput+0x15/0x20 [ 23.257485] [] task_work_run+0x10c/0x180 [ 23.263168] [] exit_to_usermode_loop+0xfc/0x120 [ 23.269461] [] do_syscall_64+0x364/0x490 [ 23.275148] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 23.282379] Dumping ftrace buffer: [ 23.285891] (ftrace buffer empty) [ 23.289569] Kernel Offset: disabled [ 23.293167] Rebooting in 86400 seconds..