[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 13.028484] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.753618] random: sshd: uninitialized urandom read (32 bytes read) [ 18.936446] random: sshd: uninitialized urandom read (32 bytes read) [ 19.708834] random: sshd: uninitialized urandom read (32 bytes read) [ 55.391648] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.55' (ECDSA) to the list of known hosts. [ 60.804792] 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 [ 63.112659] ================================================================== [ 63.120056] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 63.127305] Read of size 4 at addr ffff8801ca577900 by task syz-executor338/4614 [ 63.134821] [ 63.136424] CPU: 0 PID: 4614 Comm: syz-executor338 Not tainted 4.9.103-g0cecdf8 #38 [ 63.144189] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 63.153552] ffff8801d96f7878 ffffffff81eb34a9 ffffea0007295d80 ffff8801ca577900 [ 63.161548] 0000000000000000 ffff8801ca577900 ffffffff83012be0 ffff8801d96f78b0 [ 63.169559] ffffffff815676bb ffff8801ca577900 0000000000000004 0000000000000000 [ 63.177557] Call Trace: [ 63.180123] [] dump_stack+0xc1/0x128 [ 63.185465] [] ? sock_release+0x1c0/0x1c0 [ 63.191252] [] print_address_description+0x6c/0x234 [ 63.197892] [] ? sock_release+0x1c0/0x1c0 [ 63.203672] [] kasan_report.cold.6+0x242/0x2fe [ 63.209878] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 63.216615] [] __asan_report_load4_noabort+0x14/0x20 [ 63.223353] [] l2tp_session_queue_purge+0xf4/0x100 [ 63.229916] [] ? sock_release+0x1c0/0x1c0 [ 63.235690] [] pppol2tp_release+0x1fb/0x2e0 [ 63.241725] [] sock_release+0x96/0x1c0 [ 63.247235] [] sock_close+0x16/0x20 [ 63.252489] [] __fput+0x263/0x700 [ 63.257577] [] ____fput+0x15/0x20 [ 63.262664] [] task_work_run+0x10c/0x180 [ 63.268469] [] do_exit+0x9e1/0x27c0 [ 63.273723] [] ? debug_check_no_locks_freed+0x210/0x210 [ 63.280713] [] ? get_futex_key+0x1090/0x1090 [ 63.286757] [] ? __lock_acquire+0x654/0x4070 [ 63.292792] [] ? release_task.part.19+0x1210/0x1210 [ 63.299435] [] ? debug_check_no_locks_freed+0x210/0x210 [ 63.306425] [] ? recalc_sigpending+0x72/0x90 [ 63.312459] [] do_group_exit+0x111/0x340 [ 63.318147] [] get_signal+0x4cf/0x1450 [ 63.323671] [] do_signal+0x87/0x19f0 [ 63.329009] [] ? __fd_install+0x24a/0x5d0 [ 63.334776] [] ? get_unused_fd_flags+0xd0/0xd0 [ 63.340980] [] ? get_unused_fd_flags+0xd0/0xd0 [ 63.347186] [] ? setup_sigcontext+0x7d0/0x7d0 [ 63.353302] [] ? fd_install+0x4d/0x60 [ 63.358726] [] ? do_futex+0x17c0/0x17c0 [ 63.364325] [] ? SyS_socket+0x121/0x1b0 [ 63.369935] [] ? exit_to_usermode_loop+0xac/0x120 [ 63.376398] [] exit_to_usermode_loop+0xe1/0x120 [ 63.382690] [] do_syscall_64+0x364/0x490 [ 63.388374] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 63.395273] [ 63.396874] Allocated by task 4611: [ 63.400477] save_stack_trace+0x16/0x20 [ 63.404423] save_stack+0x43/0xd0 [ 63.407849] kasan_kmalloc+0xc7/0xe0 [ 63.411537] __kmalloc+0x11d/0x300 [ 63.415052] l2tp_session_create+0x38/0x16f0 [ 63.419433] pppol2tp_connect+0x10d7/0x18f0 [ 63.423737] SYSC_connect+0x1b8/0x300 [ 63.427509] SyS_connect+0x24/0x30 [ 63.431110] do_syscall_64+0x1a6/0x490 [ 63.434972] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 63.440044] [ 63.441646] Freed by task 4513: [ 63.444923] save_stack_trace+0x16/0x20 [ 63.448868] save_stack+0x43/0xd0 [ 63.452292] kasan_slab_free+0x72/0xc0 [ 63.456151] kfree+0xfb/0x310 [ 63.459228] l2tp_session_free+0x166/0x200 [ 63.463433] l2tp_tunnel_closeall+0x284/0x350 [ 63.467900] l2tp_udp_encap_destroy+0x87/0xe0 [ 63.472367] udpv6_destroy_sock+0xb1/0xd0 [ 63.476487] sk_common_release+0x6d/0x300 [ 63.480605] udp_lib_close+0x15/0x20 [ 63.484292] inet_release+0xff/0x1d0 [ 63.487980] inet6_release+0x50/0x70 [ 63.491677] sock_release+0x96/0x1c0 [ 63.495360] sock_close+0x16/0x20 [ 63.498795] __fput+0x263/0x700 [ 63.502058] ____fput+0x15/0x20 [ 63.505311] task_work_run+0x10c/0x180 [ 63.509178] do_exit+0x9e1/0x27c0 [ 63.512603] do_group_exit+0x111/0x340 [ 63.516811] SyS_exit_group+0x1d/0x20 [ 63.520594] do_syscall_64+0x1a6/0x490 [ 63.524451] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 63.529524] [ 63.531128] The buggy address belongs to the object at ffff8801ca577900 [ 63.531128] which belongs to the cache kmalloc-512 of size 512 [ 63.543764] The buggy address is located 0 bytes inside of [ 63.543764] 512-byte region [ffff8801ca577900, ffff8801ca577b00) [ 63.555434] The buggy address belongs to the page: [ 63.560336] page:ffffea0007295d80 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 63.570525] flags: 0x8000000000004080(slab|head) [ 63.575249] page dumped because: kasan: bad access detected [ 63.580929] [ 63.582529] Memory state around the buggy address: [ 63.587430] ffff8801ca577800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 63.594773] ffff8801ca577880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.602105] >ffff8801ca577900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 63.609435] ^ [ 63.612771] ffff8801ca577980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 63.620105] ffff8801ca577a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 63.627434] ================================================================== [ 63.634764] Disabling lock debugging due to kernel taint [ 63.642200] Kernel panic - not syncing: panic_on_warn set ... [ 63.642200] [ 63.649583] CPU: 0 PID: 4614 Comm: syz-executor338 Tainted: G B 4.9.103-g0cecdf8 #38 [ 63.649586] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 63.649598] ffff8801d96f77d8 ffffffff81eb34a9 ffffffff843c5d75 00000000ffffffff [ 63.649604] 0000000000000000 0000000000000000 ffffffff83012be0 ffff8801d96f7898 [ 63.649609] ffffffff81421aa5 0000000041b58ab3 ffffffff843b94a8 ffffffff814218e6 [ 63.649610] Call Trace: [ 63.649621] [] dump_stack+0xc1/0x128 [ 63.649630] [] ? sock_release+0x1c0/0x1c0 [ 63.649638] [] panic+0x1bf/0x3bc [ 63.649642] [] ? add_taint.cold.6+0x16/0x16 [ 63.649649] [] ? ___preempt_schedule+0x16/0x18 [ 63.649655] [] kasan_end_report+0x47/0x4f [ 63.649658] [] kasan_report.cold.6+0x76/0x2fe [ 63.649666] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 63.649672] [] __asan_report_load4_noabort+0x14/0x20 [ 63.649676] [] l2tp_session_queue_purge+0xf4/0x100 [ 63.649680] [] ? sock_release+0x1c0/0x1c0 [ 63.649685] [] pppol2tp_release+0x1fb/0x2e0 [ 63.649689] [] sock_release+0x96/0x1c0 [ 63.649693] [] sock_close+0x16/0x20 [ 63.649699] [] __fput+0x263/0x700 [ 63.649703] [] ____fput+0x15/0x20 [ 63.649710] [] task_work_run+0x10c/0x180 [ 63.649718] [] do_exit+0x9e1/0x27c0 [ 63.649726] [] ? debug_check_no_locks_freed+0x210/0x210 [ 63.649734] [] ? get_futex_key+0x1090/0x1090 [ 63.649738] [] ? __lock_acquire+0x654/0x4070 [ 63.649743] [] ? release_task.part.19+0x1210/0x1210 [ 63.649747] [] ? debug_check_no_locks_freed+0x210/0x210 [ 63.649752] [] ? recalc_sigpending+0x72/0x90 [ 63.649757] [] do_group_exit+0x111/0x340 [ 63.649761] [] get_signal+0x4cf/0x1450 [ 63.649768] [] do_signal+0x87/0x19f0 [ 63.649772] [] ? __fd_install+0x24a/0x5d0 [ 63.649776] [] ? get_unused_fd_flags+0xd0/0xd0 [ 63.649780] [] ? get_unused_fd_flags+0xd0/0xd0 [ 63.649784] [] ? setup_sigcontext+0x7d0/0x7d0 [ 63.649788] [] ? fd_install+0x4d/0x60 [ 63.649793] [] ? do_futex+0x17c0/0x17c0 [ 63.649797] [] ? SyS_socket+0x121/0x1b0 [ 63.649802] [] ? exit_to_usermode_loop+0xac/0x120 [ 63.649806] [] exit_to_usermode_loop+0xe1/0x120 [ 63.649810] [] do_syscall_64+0x364/0x490 [ 63.649816] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 63.658995] Dumping ftrace buffer: [ 63.658998] (ftrace buffer empty) [ 63.659001] Kernel Offset: disabled [ 63.929278] Rebooting in 86400 seconds..