[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 16.519514] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 20.660614] random: sshd: uninitialized urandom read (32 bytes read) [ 20.968276] random: sshd: uninitialized urandom read (32 bytes read) [ 21.456714] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.18' (ECDSA) to the list of known hosts. [ 27.116012] urandom_read: 1 callbacks suppressed [ 27.116015] 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 [ 27.736552] ================================================================== [ 27.743941] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 27.751333] Read of size 4 at addr ffff8801c717ef00 by task syz-executor626/4092 [ 27.758852] [ 27.760468] CPU: 1 PID: 4092 Comm: syz-executor626 Not tainted 4.9.119-g9dc978d #27 [ 27.768492] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.777837] ffff8801d927fca0 ffffffff81eb4be9 ffffea00071c5f80 ffff8801c717ef00 [ 27.785910] 0000000000000000 ffff8801c717ef00 ffffffff83015be0 ffff8801d927fcd8 [ 27.793952] ffffffff81567f89 ffff8801c717ef00 0000000000000004 0000000000000000 [ 27.802442] Call Trace: [ 27.805044] [] dump_stack+0xc1/0x128 [ 27.810509] [] ? sock_release+0x1c0/0x1c0 [ 27.816421] [] print_address_description+0x6c/0x234 [ 27.823076] [] ? sock_release+0x1c0/0x1c0 [ 27.828860] [] kasan_report.cold.6+0x242/0x2fe [ 27.835141] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 27.841895] [] __asan_report_load4_noabort+0x14/0x20 [ 27.848640] [] l2tp_session_queue_purge+0xf4/0x100 [ 27.855212] [] ? sock_release+0x1c0/0x1c0 [ 27.861099] [] pppol2tp_release+0x1fb/0x2e0 [ 27.867085] [] sock_release+0x96/0x1c0 [ 27.872613] [] sock_close+0x16/0x20 [ 27.877885] [] __fput+0x263/0x700 [ 27.882977] [] ____fput+0x15/0x20 [ 27.888217] [] task_work_run+0x10c/0x180 [ 27.894773] [] exit_to_usermode_loop+0xfc/0x120 [ 27.901078] [] do_fast_syscall_32+0x5c3/0x870 [ 27.907208] [] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.913865] [] entry_SYSENTER_compat+0x90/0xa2 [ 27.920205] [ 27.921829] Allocated by task 4093: [ 27.925448] save_stack_trace+0x16/0x20 [ 27.929849] save_stack+0x43/0xd0 [ 27.933412] kasan_kmalloc+0xc7/0xe0 [ 27.937117] __kmalloc+0x11d/0x300 [ 27.940646] l2tp_session_create+0x38/0x16f0 [ 27.945041] pppol2tp_connect+0x10d7/0x18f0 [ 27.949353] SYSC_connect+0x1b8/0x300 [ 27.953165] SyS_connect+0x24/0x30 [ 27.956693] do_fast_syscall_32+0x2f7/0x870 [ 27.961000] entry_SYSENTER_compat+0x90/0xa2 [ 27.965402] [ 27.967017] Freed by task 4036: [ 27.970283] save_stack_trace+0x16/0x20 [ 27.974243] save_stack+0x43/0xd0 [ 27.977681] kasan_slab_free+0x72/0xc0 [ 27.981557] kfree+0xfb/0x310 [ 27.984649] l2tp_session_free+0x166/0x200 [ 27.988874] l2tp_tunnel_closeall+0x284/0x350 [ 27.993353] l2tp_udp_encap_destroy+0x87/0xe0 [ 27.997859] udpv6_destroy_sock+0xb1/0xd0 [ 28.001994] sk_common_release+0x6d/0x300 [ 28.006126] udp_lib_close+0x15/0x20 [ 28.009829] inet_release+0xff/0x1d0 [ 28.013529] inet6_release+0x50/0x70 [ 28.017227] sock_release+0x96/0x1c0 [ 28.020923] sock_close+0x16/0x20 [ 28.024388] __fput+0x263/0x700 [ 28.027655] ____fput+0x15/0x20 [ 28.031061] task_work_run+0x10c/0x180 [ 28.034941] do_exit+0x9e1/0x27b0 [ 28.038402] do_group_exit+0x111/0x340 [ 28.042428] get_signal+0x4cf/0x1450 [ 28.046133] do_signal+0x87/0x19f0 [ 28.049659] exit_to_usermode_loop+0xe1/0x120 [ 28.054143] prepare_exit_to_usermode+0xbb/0xe0 [ 28.058802] retint_user+0x8/0x3c [ 28.062236] [ 28.063848] The buggy address belongs to the object at ffff8801c717ef00 [ 28.063848] which belongs to the cache kmalloc-512 of size 512 [ 28.076644] The buggy address is located 0 bytes inside of [ 28.076644] 512-byte region [ffff8801c717ef00, ffff8801c717f100) [ 28.088527] The buggy address belongs to the page: [ 28.093451] page:ffffea00071c5f80 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 28.103782] flags: 0x8000000000004080(slab|head) [ 28.108519] page dumped because: kasan: bad access detected [ 28.114215] [ 28.115940] Memory state around the buggy address: [ 28.120865] ffff8801c717ee00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.128302] ffff8801c717ee80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.135872] >ffff8801c717ef00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.143223] ^ [ 28.146573] ffff8801c717ef80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.154216] ffff8801c717f000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.161689] ================================================================== [ 28.169268] Disabling lock debugging due to kernel taint [ 28.175464] Kernel panic - not syncing: panic_on_warn set ... [ 28.175464] [ 28.182932] CPU: 1 PID: 4092 Comm: syz-executor626 Tainted: G B 4.9.119-g9dc978d #27 [ 28.192112] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.201455] ffff8801d927fc00 ffffffff81eb4be9 ffffffff843c893f 00000000ffffffff [ 28.209677] 0000000000000000 0000000000000001 ffffffff83015be0 ffff8801d927fcc0 [ 28.217730] ffffffff81421c95 0000000041b58ab3 ffffffff843bc020 ffffffff81421ad6 [ 28.225990] Call Trace: [ 28.228571] [] dump_stack+0xc1/0x128 [ 28.233927] [] ? sock_release+0x1c0/0x1c0 [ 28.239930] [] panic+0x1bf/0x3bc [ 28.244936] [] ? add_taint.cold.6+0x16/0x16 [ 28.250897] [] ? ___preempt_schedule+0x16/0x18 [ 28.257118] [] kasan_end_report+0x47/0x4f [ 28.262902] [] kasan_report.cold.6+0x76/0x2fe [ 28.269038] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 28.275779] [] __asan_report_load4_noabort+0x14/0x20 [ 28.282522] [] l2tp_session_queue_purge+0xf4/0x100 [ 28.289177] [] ? sock_release+0x1c0/0x1c0 [ 28.294960] [] pppol2tp_release+0x1fb/0x2e0 [ 28.300919] [] sock_release+0x96/0x1c0 [ 28.306450] [] sock_close+0x16/0x20 [ 28.311713] [] __fput+0x263/0x700 [ 28.316802] [] ____fput+0x15/0x20 [ 28.322057] [] task_work_run+0x10c/0x180 [ 28.327757] [] exit_to_usermode_loop+0xfc/0x120 [ 28.334064] [] do_fast_syscall_32+0x5c3/0x870 [ 28.340194] [] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.346855] [] entry_SYSENTER_compat+0x90/0xa2 [ 28.353623] Dumping ftrace buffer: [ 28.357241] (ftrace buffer empty) [ 28.360937] Kernel Offset: disabled [ 28.364699] Rebooting in 86400 seconds..