[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 13.783090] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.711877] random: sshd: uninitialized urandom read (32 bytes read) [ 16.095783] random: sshd: uninitialized urandom read (32 bytes read) [ 16.940379] random: sshd: uninitialized urandom read (32 bytes read) [ 17.071914] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.11' (ECDSA) to the list of known hosts. [ 22.617198] 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 [ 23.732907] ================================================================== [ 23.740314] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 23.747579] Read of size 4 at addr ffff8801b7bdc780 by task syz-executor207/4123 [ 23.755084] [ 23.756697] CPU: 1 PID: 4123 Comm: syz-executor207 Not tainted 4.9.110-g00a0bcb #4 [ 23.764389] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.773730] ffff8801d8e97878 ffffffff81eb2329 ffffea0006def700 ffff8801b7bdc780 [ 23.781749] 0000000000000000 ffff8801b7bdc780 ffffffff83011be0 ffff8801d8e978b0 [ 23.789771] ffffffff81567a89 ffff8801b7bdc780 0000000000000004 0000000000000000 [ 23.797773] Call Trace: [ 23.800340] [] dump_stack+0xc1/0x128 [ 23.805697] [] ? sock_release+0x1c0/0x1c0 [ 23.811479] [] print_address_description+0x6c/0x234 [ 23.818124] [] ? sock_release+0x1c0/0x1c0 [ 23.823901] [] kasan_report.cold.6+0x242/0x2fe [ 23.830125] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 23.836874] [] __asan_report_load4_noabort+0x14/0x20 [ 23.843611] [] l2tp_session_queue_purge+0xf4/0x100 [ 23.850175] [] ? sock_release+0x1c0/0x1c0 [ 23.855954] [] pppol2tp_release+0x1fb/0x2e0 [ 23.861913] [] sock_release+0x96/0x1c0 [ 23.867437] [] sock_close+0x16/0x20 [ 23.872691] [] __fput+0x263/0x700 [ 23.877789] [] ____fput+0x15/0x20 [ 23.882881] [] task_work_run+0x10c/0x180 [ 23.888568] [] do_exit+0x9e1/0x27c0 [ 23.893825] [] ? debug_check_no_locks_freed+0x210/0x210 [ 23.900814] [] ? get_futex_key+0x1090/0x1090 [ 23.906851] [] ? __lock_acquire+0x654/0x4070 [ 23.912889] [] ? release_task.part.19+0x1210/0x1210 [ 23.919537] [] ? debug_check_no_locks_freed+0x210/0x210 [ 23.926532] [] ? recalc_sigpending+0x72/0x90 [ 23.932575] [] do_group_exit+0x111/0x340 [ 23.938261] [] get_signal+0x4cf/0x1450 [ 23.943779] [] do_signal+0x87/0x19f0 [ 23.949129] [] ? __fd_install+0x24a/0x5d0 [ 23.954915] [] ? get_unused_fd_flags+0xd0/0xd0 [ 23.961124] [] ? get_unused_fd_flags+0xd0/0xd0 [ 23.967349] [] ? setup_sigcontext+0x7d0/0x7d0 [ 23.973471] [] ? fd_install+0x4d/0x60 [ 23.978899] [] ? do_futex+0x17c0/0x17c0 [ 23.984498] [] ? SyS_socket+0x121/0x1b0 [ 23.990100] [] ? exit_to_usermode_loop+0xac/0x120 [ 23.996571] [] exit_to_usermode_loop+0xe1/0x120 [ 24.002880] [] do_syscall_64+0x364/0x490 [ 24.008572] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 24.015474] [ 24.017078] Allocated by task 4120: [ 24.020684] save_stack_trace+0x16/0x20 [ 24.024640] save_stack+0x43/0xd0 [ 24.028068] kasan_kmalloc+0xc7/0xe0 [ 24.031758] __kmalloc+0x11d/0x300 [ 24.035450] l2tp_session_create+0x38/0x16f0 [ 24.039833] pppol2tp_connect+0x10d7/0x18f0 [ 24.044137] SYSC_connect+0x1b8/0x300 [ 24.047911] SyS_connect+0x24/0x30 [ 24.051428] do_syscall_64+0x1a6/0x490 [ 24.055292] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 24.060469] [ 24.062071] Freed by task 4102: [ 24.065331] save_stack_trace+0x16/0x20 [ 24.069281] save_stack+0x43/0xd0 [ 24.072712] kasan_slab_free+0x72/0xc0 [ 24.076572] kfree+0xfb/0x310 [ 24.079654] l2tp_session_free+0x166/0x200 [ 24.083863] l2tp_tunnel_closeall+0x284/0x350 [ 24.088337] l2tp_udp_encap_destroy+0x87/0xe0 [ 24.092808] udpv6_destroy_sock+0xb1/0xd0 [ 24.096933] sk_common_release+0x6d/0x300 [ 24.101054] udp_lib_close+0x15/0x20 [ 24.104745] inet_release+0xff/0x1d0 [ 24.108435] inet6_release+0x50/0x70 [ 24.112210] sock_release+0x96/0x1c0 [ 24.115917] sock_close+0x16/0x20 [ 24.119349] __fput+0x263/0x700 [ 24.122604] ____fput+0x15/0x20 [ 24.125859] task_work_run+0x10c/0x180 [ 24.129723] do_exit+0x9e1/0x27c0 [ 24.133163] do_group_exit+0x111/0x340 [ 24.137035] SyS_exit_group+0x1d/0x20 [ 24.140810] do_syscall_64+0x1a6/0x490 [ 24.144673] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 24.149749] [ 24.151353] The buggy address belongs to the object at ffff8801b7bdc780 [ 24.151353] which belongs to the cache kmalloc-512 of size 512 [ 24.163986] The buggy address is located 0 bytes inside of [ 24.163986] 512-byte region [ffff8801b7bdc780, ffff8801b7bdc980) [ 24.175663] The buggy address belongs to the page: [ 24.180574] page:ffffea0006def700 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 24.190773] flags: 0x8000000000004080(slab|head) [ 24.195501] page dumped because: kasan: bad access detected [ 24.201185] [ 24.202786] Memory state around the buggy address: [ 24.207694] ffff8801b7bdc680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.215029] ffff8801b7bdc700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.222381] >ffff8801b7bdc780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.229724] ^ [ 24.233068] ffff8801b7bdc800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.240403] ffff8801b7bdc880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.247747] ================================================================== [ 24.255092] Disabling lock debugging due to kernel taint [ 24.264174] Kernel panic - not syncing: panic_on_warn set ... [ 24.264174] [ 24.271558] CPU: 1 PID: 4123 Comm: syz-executor207 Tainted: G B 4.9.110-g00a0bcb #4 [ 24.280479] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.280491] ffff8801d8e977d8 ffffffff81eb2329 ffffffff843c7167 00000000ffffffff [ 24.280498] 0000000000000000 0000000000000001 ffffffff83011be0 ffff8801d8e97898 [ 24.280510] ffffffff81421925 0000000041b58ab3 ffffffff843ba880 ffffffff81421766 [ 24.280512] Call Trace: [ 24.280524] [] dump_stack+0xc1/0x128 [ 24.280532] [] ? sock_release+0x1c0/0x1c0 [ 24.280540] [] panic+0x1bf/0x3bc [ 24.280547] [] ? add_taint.cold.6+0x16/0x16 [ 24.280555] [] ? ___preempt_schedule+0x16/0x18 [ 24.280563] [] kasan_end_report+0x47/0x4f [ 24.280569] [] kasan_report.cold.6+0x76/0x2fe [ 24.280577] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 24.280584] [] __asan_report_load4_noabort+0x14/0x20 [ 24.280591] [] l2tp_session_queue_purge+0xf4/0x100 [ 24.280597] [] ? sock_release+0x1c0/0x1c0 [ 24.280604] [] pppol2tp_release+0x1fb/0x2e0 [ 24.280610] [] sock_release+0x96/0x1c0 [ 24.280617] [] sock_close+0x16/0x20 [ 24.280624] [] __fput+0x263/0x700 [ 24.280631] [] ____fput+0x15/0x20 [ 24.280638] [] task_work_run+0x10c/0x180 [ 24.280645] [] do_exit+0x9e1/0x27c0 [ 24.280654] [] ? debug_check_no_locks_freed+0x210/0x210 [ 24.280662] [] ? get_futex_key+0x1090/0x1090 [ 24.280687] [] ? __lock_acquire+0x654/0x4070 [ 24.280695] [] ? release_task.part.19+0x1210/0x1210 [ 24.280702] [] ? debug_check_no_locks_freed+0x210/0x210 [ 24.280709] [] ? recalc_sigpending+0x72/0x90 [ 24.280716] [] do_group_exit+0x111/0x340 [ 24.280723] [] get_signal+0x4cf/0x1450 [ 24.280732] [] do_signal+0x87/0x19f0 [ 24.280738] [] ? __fd_install+0x24a/0x5d0 [ 24.280744] [] ? get_unused_fd_flags+0xd0/0xd0 [ 24.280750] [] ? get_unused_fd_flags+0xd0/0xd0 [ 24.280757] [] ? setup_sigcontext+0x7d0/0x7d0 [ 24.280763] [] ? fd_install+0x4d/0x60 [ 24.280770] [] ? do_futex+0x17c0/0x17c0 [ 24.280777] [] ? SyS_socket+0x121/0x1b0 [ 24.280784] [] ? exit_to_usermode_loop+0xac/0x120 [ 24.280790] [] exit_to_usermode_loop+0xe1/0x120 [ 24.280796] [] do_syscall_64+0x364/0x490 [ 24.280804] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 24.290347] Dumping ftrace buffer: [ 24.290350] (ftrace buffer empty) [ 24.290352] Kernel Offset: disabled [ 24.551544] Rebooting in 86400 seconds..