[....] 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[ 15.238874] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 20.268023] random: sshd: uninitialized urandom read (32 bytes read) [ 20.684537] random: sshd: uninitialized urandom read (32 bytes read) [ 21.682383] random: crng init done Warning: Permanently added '10.128.0.46' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 30.749557] ================================================================== [ 30.756968] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 30.764231] Read of size 4 at addr ffff8801c503b900 by task syz-executor461/4928 [ 30.771735] [ 30.773348] CPU: 0 PID: 4928 Comm: syz-executor461 Not tainted 4.9.109-g7cecc75 #2 [ 30.781048] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.790380] ffff8801d801fb00 ffffffff81eb3e29 ffffea0007140e80 ffff8801c503b900 [ 30.798367] 0000000000000000 ffff8801c503b900 ffffffff83013be0 ffff8801d801fb38 [ 30.806348] ffffffff81567a89 ffff8801c503b900 0000000000000004 0000000000000000 [ 30.814335] Call Trace: [ 30.816897] [] dump_stack+0xc1/0x128 [ 30.822241] [] ? sock_release+0x1c0/0x1c0 [ 30.828032] [] print_address_description+0x6c/0x234 [ 30.834671] [] ? sock_release+0x1c0/0x1c0 [ 30.840443] [] kasan_report.cold.6+0x242/0x2fe [ 30.846654] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 30.853386] [] __asan_report_load4_noabort+0x14/0x20 [ 30.860117] [] l2tp_session_queue_purge+0xf4/0x100 [ 30.866671] [] ? sock_release+0x1c0/0x1c0 [ 30.872444] [] pppol2tp_release+0x1fb/0x2e0 [ 30.878401] [] sock_release+0x96/0x1c0 [ 30.883913] [] sock_close+0x16/0x20 [ 30.889175] [] __fput+0x263/0x700 [ 30.894254] [] ____fput+0x15/0x20 [ 30.899332] [] task_work_run+0x10c/0x180 [ 30.905029] [] do_exit+0x9e1/0x27c0 [ 30.910294] [] ? vm_insert_mixed+0x200/0x200 [ 30.916347] [] ? release_task.part.19+0x1210/0x1210 [ 30.923018] [] ? __do_page_fault+0x5dd/0xd50 [ 30.929063] [] ? up_read+0x1a/0x40 [ 30.934238] [] ? __do_page_fault+0x183/0xd50 [ 30.940278] [] do_group_exit+0x111/0x340 [ 30.945967] [] ? do_group_exit+0x340/0x340 [ 30.951825] [] SyS_exit_group+0x1d/0x20 [ 30.957423] [] do_syscall_64+0x1a6/0x490 [ 30.963108] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 30.970003] [ 30.971605] Allocated by task 4926: [ 30.975215] save_stack_trace+0x16/0x20 [ 30.979166] save_stack+0x43/0xd0 [ 30.982603] kasan_kmalloc+0xc7/0xe0 [ 30.986292] __kmalloc+0x11d/0x300 [ 30.989802] l2tp_session_create+0x38/0x16f0 [ 30.994191] pppol2tp_connect+0x10d7/0x18f0 [ 30.998484] SYSC_connect+0x1b8/0x300 [ 31.002254] SyS_connect+0x24/0x30 [ 31.005769] do_syscall_64+0x1a6/0x490 [ 31.009634] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.014709] [ 31.016307] Freed by task 4863: [ 31.019567] save_stack_trace+0x16/0x20 [ 31.023513] save_stack+0x43/0xd0 [ 31.026937] kasan_slab_free+0x72/0xc0 [ 31.030795] kfree+0xfb/0x310 [ 31.033883] l2tp_session_free+0x166/0x200 [ 31.038089] l2tp_tunnel_closeall+0x284/0x350 [ 31.042565] l2tp_udp_encap_destroy+0x87/0xe0 [ 31.047029] udpv6_destroy_sock+0xb1/0xd0 [ 31.051148] sk_common_release+0x6d/0x300 [ 31.055265] udp_lib_close+0x15/0x20 [ 31.058949] inet_release+0xff/0x1d0 [ 31.062636] inet6_release+0x50/0x70 [ 31.066319] sock_release+0x96/0x1c0 [ 31.070011] sock_close+0x16/0x20 [ 31.073435] __fput+0x263/0x700 [ 31.076686] ____fput+0x15/0x20 [ 31.079939] task_work_run+0x10c/0x180 [ 31.083806] do_exit+0x9e1/0x27c0 [ 31.087230] do_group_exit+0x111/0x340 [ 31.091092] SyS_exit_group+0x1d/0x20 [ 31.094864] do_syscall_64+0x1a6/0x490 [ 31.098723] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.103802] [ 31.105407] The buggy address belongs to the object at ffff8801c503b900 [ 31.105407] which belongs to the cache kmalloc-512 of size 512 [ 31.118042] The buggy address is located 0 bytes inside of [ 31.118042] 512-byte region [ffff8801c503b900, ffff8801c503bb00) [ 31.129712] The buggy address belongs to the page: [ 31.134613] page:ffffea0007140e80 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 31.144792] flags: 0x8000000000004080(slab|head) [ 31.149514] page dumped because: kasan: bad access detected [ 31.155190] [ 31.156789] Memory state around the buggy address: [ 31.161689] ffff8801c503b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.169020] ffff8801c503b880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.176350] >ffff8801c503b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.183684] ^ [ 31.187020] ffff8801c503b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.194350] ffff8801c503ba00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.201676] ================================================================== [ 31.209002] Disabling lock debugging due to kernel taint [ 31.214714] Kernel panic - not syncing: panic_on_warn set ... [ 31.214714] [ 31.222064] CPU: 0 PID: 4928 Comm: syz-executor461 Tainted: G B 4.9.109-g7cecc75 #2 [ 31.230955] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.240280] ffff8801d801fa60 ffffffff81eb3e29 ffffffff843c62e7 00000000ffffffff [ 31.248283] 0000000000000000 0000000000000000 ffffffff83013be0 ffff8801d801fb20 [ 31.256278] ffffffff81421925 0000000041b58ab3 ffffffff843b9a00 ffffffff81421766 [ 31.264259] Call Trace: [ 31.266822] [] dump_stack+0xc1/0x128 [ 31.272158] [] ? sock_release+0x1c0/0x1c0 [ 31.277927] [] panic+0x1bf/0x3bc [ 31.282916] [] ? add_taint.cold.6+0x16/0x16 [ 31.288858] [] ? ___preempt_schedule+0x16/0x18 [ 31.295058] [] kasan_end_report+0x47/0x4f [ 31.300828] [] kasan_report.cold.6+0x76/0x2fe [ 31.306951] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 31.313675] [] __asan_report_load4_noabort+0x14/0x20 [ 31.320403] [] l2tp_session_queue_purge+0xf4/0x100 [ 31.326953] [] ? sock_release+0x1c0/0x1c0 [ 31.332724] [] pppol2tp_release+0x1fb/0x2e0 [ 31.338668] [] sock_release+0x96/0x1c0 [ 31.344176] [] sock_close+0x16/0x20 [ 31.349430] [] __fput+0x263/0x700 [ 31.354507] [] ____fput+0x15/0x20 [ 31.359582] [] task_work_run+0x10c/0x180 [ 31.365266] [] do_exit+0x9e1/0x27c0 [ 31.370515] [] ? vm_insert_mixed+0x200/0x200 [ 31.376632] [] ? release_task.part.19+0x1210/0x1210 [ 31.383271] [] ? __do_page_fault+0x5dd/0xd50 [ 31.389309] [] ? up_read+0x1a/0x40 [ 31.394471] [] ? __do_page_fault+0x183/0xd50 [ 31.400499] [] do_group_exit+0x111/0x340 [ 31.406182] [] ? do_group_exit+0x340/0x340 [ 31.412036] [] SyS_exit_group+0x1d/0x20 [ 31.417630] [] do_syscall_64+0x1a6/0x490 [ 31.423313] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.430682] Dumping ftrace buffer: [ 31.434205] (ftrace buffer empty) [ 31.437887] Kernel Offset: disabled [ 31.441489] Rebooting in 86400 seconds..