[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 13.249454] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 13.569553] random: sshd: uninitialized urandom read (32 bytes read) [ 13.813063] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 14.628863] random: sshd: uninitialized urandom read (32 bytes read) [ 16.252504] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.54' (ECDSA) to the list of known hosts. [ 21.670017] 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 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 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 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 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 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 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 [ 29.668331] ================================================================== [ 29.675739] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 29.683005] Read of size 4 at addr ffff8801c7e0f400 by task syz-executor694/5094 [ 29.690515] [ 29.692139] CPU: 1 PID: 5094 Comm: syz-executor694 Not tainted 4.9.117-g8b21e85 #19 [ 29.699905] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.709237] ffff8801d8247cb0 ffffffff81eb4be9 ffffea00071f8380 ffff8801c7e0f400 [ 29.717249] 0000000000000000 ffff8801c7e0f400 ffffffff83015be0 ffff8801d8247ce8 [ 29.725263] ffffffff81567f89 ffff8801c7e0f400 0000000000000004 0000000000000000 [ 29.733269] Call Trace: [ 29.735834] [] dump_stack+0xc1/0x128 [ 29.741177] [] ? sock_release+0x1c0/0x1c0 [ 29.746953] [] print_address_description+0x6c/0x234 [ 29.753598] [] ? sock_release+0x1c0/0x1c0 [ 29.759372] [] kasan_report.cold.6+0x242/0x2fe [ 29.765582] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 29.772322] [] __asan_report_load4_noabort+0x14/0x20 [ 29.779054] [] l2tp_session_queue_purge+0xf4/0x100 [ 29.785622] [] ? sock_release+0x1c0/0x1c0 [ 29.791405] [] pppol2tp_release+0x1fb/0x2e0 [ 29.797360] [] sock_release+0x96/0x1c0 [ 29.802882] [] sock_close+0x16/0x20 [ 29.808152] [] __fput+0x263/0x700 [ 29.813238] [] ____fput+0x15/0x20 [ 29.818323] [] task_work_run+0x10c/0x180 [ 29.824012] [] exit_to_usermode_loop+0xfc/0x120 [ 29.830310] [] do_syscall_64+0x364/0x490 [ 29.836026] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 29.842931] [ 29.844537] Allocated by task 5095: [ 29.848144] save_stack_trace+0x16/0x20 [ 29.852096] save_stack+0x43/0xd0 [ 29.855523] kasan_kmalloc+0xc7/0xe0 [ 29.859215] __kmalloc+0x11d/0x300 [ 29.862749] l2tp_session_create+0x38/0x16f0 [ 29.867147] pppol2tp_connect+0x10d7/0x18f0 [ 29.871446] SYSC_connect+0x1b8/0x300 [ 29.875228] SyS_connect+0x24/0x30 [ 29.878746] do_syscall_64+0x1a6/0x490 [ 29.882624] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 29.887700] [ 29.889304] Freed by task 5018: [ 29.892563] save_stack_trace+0x16/0x20 [ 29.896513] save_stack+0x43/0xd0 [ 29.899943] kasan_slab_free+0x72/0xc0 [ 29.903806] kfree+0xfb/0x310 [ 29.906888] l2tp_session_free+0x166/0x200 [ 29.911102] l2tp_tunnel_closeall+0x284/0x350 [ 29.915573] l2tp_udp_encap_destroy+0x87/0xe0 [ 29.920041] udpv6_destroy_sock+0xb1/0xd0 [ 29.924167] sk_common_release+0x6d/0x300 [ 29.928288] udp_lib_close+0x15/0x20 [ 29.931974] inet_release+0xff/0x1d0 [ 29.935664] inet6_release+0x50/0x70 [ 29.939355] sock_release+0x96/0x1c0 [ 29.943047] sock_close+0x16/0x20 [ 29.946484] __fput+0x263/0x700 [ 29.949736] ____fput+0x15/0x20 [ 29.952992] task_work_run+0x10c/0x180 [ 29.956874] do_exit+0x9e1/0x27b0 [ 29.960312] do_group_exit+0x111/0x340 [ 29.964176] get_signal+0x4cf/0x1450 [ 29.967863] do_signal+0x87/0x19f0 [ 29.971378] exit_to_usermode_loop+0xe1/0x120 [ 29.975860] prepare_exit_to_usermode+0xbb/0xe0 [ 29.980505] retint_user+0x8/0x3c [ 29.983949] [ 29.985553] The buggy address belongs to the object at ffff8801c7e0f400 [ 29.985553] which belongs to the cache kmalloc-512 of size 512 [ 29.998191] The buggy address is located 0 bytes inside of [ 29.998191] 512-byte region [ffff8801c7e0f400, ffff8801c7e0f600) [ 30.009876] The buggy address belongs to the page: [ 30.014783] page:ffffea00071f8380 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 30.024980] flags: 0x8000000000004080(slab|head) [ 30.029717] page dumped because: kasan: bad access detected [ 30.035405] [ 30.037007] Memory state around the buggy address: [ 30.041922] ffff8801c7e0f300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.049255] ffff8801c7e0f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.056595] >ffff8801c7e0f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.063928] ^ [ 30.067272] ffff8801c7e0f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.074606] ffff8801c7e0f500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.081939] ================================================================== [ 30.089289] Disabling lock debugging due to kernel taint [ 30.095287] Kernel panic - not syncing: panic_on_warn set ... [ 30.095287] [ 30.102645] CPU: 1 PID: 5094 Comm: syz-executor694 Tainted: G B 4.9.117-g8b21e85 #19 [ 30.111636] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.121004] ffff8801d8247c10 ffffffff81eb4be9 ffffffff843c893f 00000000ffffffff [ 30.129009] 0000000000000000 0000000000000001 ffffffff83015be0 ffff8801d8247cd0 [ 30.137004] ffffffff81421c85 0000000041b58ab3 ffffffff843bc020 ffffffff81421ac6 [ 30.145042] Call Trace: [ 30.147611] [] dump_stack+0xc1/0x128 [ 30.152955] [] ? sock_release+0x1c0/0x1c0 [ 30.158744] [] panic+0x1bf/0x3bc [ 30.163740] [] ? add_taint.cold.6+0x16/0x16 [ 30.169701] [] ? ___preempt_schedule+0x16/0x18 [ 30.175911] [] kasan_end_report+0x47/0x4f [ 30.181686] [] kasan_report.cold.6+0x76/0x2fe [ 30.187808] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 30.194537] [] __asan_report_load4_noabort+0x14/0x20 [ 30.201286] [] l2tp_session_queue_purge+0xf4/0x100 [ 30.207844] [] ? sock_release+0x1c0/0x1c0 [ 30.213634] [] pppol2tp_release+0x1fb/0x2e0 [ 30.219584] [] sock_release+0x96/0x1c0 [ 30.225103] [] sock_close+0x16/0x20 [ 30.230363] [] __fput+0x263/0x700 [ 30.235455] [] ____fput+0x15/0x20 [ 30.240547] [] task_work_run+0x10c/0x180 [ 30.246250] [] exit_to_usermode_loop+0xfc/0x120 [ 30.253097] [] do_syscall_64+0x364/0x490 [ 30.258802] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 30.266013] Dumping ftrace buffer: [ 30.269529] (ftrace buffer empty) [ 30.273228] Kernel Offset: disabled [ 30.276831] Rebooting in 86400 seconds..