[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 12.631324] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.571702] random: sshd: uninitialized urandom read (32 bytes read) [ 15.779801] random: sshd: uninitialized urandom read (32 bytes read) [ 16.760175] random: sshd: uninitialized urandom read (32 bytes read) [ 26.124870] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.48' (ECDSA) to the list of known hosts. [ 31.705646] 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 35.215549] ================================================================== [ 35.222956] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 35.230213] Read of size 4 at addr ffff8801d6ea2c80 by task syz-executor055/5322 [ 35.237867] [ 35.239480] CPU: 1 PID: 5322 Comm: syz-executor055 Not tainted 4.9.109-ge1815b3 #49 [ 35.247254] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.256595] ffff8801d85dfb00 ffffffff81eb3e29 ffffea00075ba880 ffff8801d6ea2c80 [ 35.264610] 0000000000000000 ffff8801d6ea2c80 ffffffff83013be0 ffff8801d85dfb38 [ 35.272617] ffffffff81567a89 ffff8801d6ea2c80 0000000000000004 0000000000000000 [ 35.280639] Call Trace: [ 35.283216] [] dump_stack+0xc1/0x128 [ 35.288563] [] ? sock_release+0x1c0/0x1c0 [ 35.294342] [] print_address_description+0x6c/0x234 [ 35.300989] [] ? sock_release+0x1c0/0x1c0 [ 35.306797] [] kasan_report.cold.6+0x242/0x2fe [ 35.313121] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 35.319884] [] __asan_report_load4_noabort+0x14/0x20 [ 35.326627] [] l2tp_session_queue_purge+0xf4/0x100 [ 35.333187] [] ? sock_release+0x1c0/0x1c0 [ 35.338977] [] pppol2tp_release+0x1fb/0x2e0 [ 35.344938] [] sock_release+0x96/0x1c0 [ 35.350454] [] sock_close+0x16/0x20 [ 35.355715] [] __fput+0x263/0x700 [ 35.360800] [] ____fput+0x15/0x20 [ 35.365908] [] task_work_run+0x10c/0x180 [ 35.371610] [] do_exit+0x9e1/0x27c0 [ 35.376879] [] ? vm_insert_mixed+0x200/0x200 [ 35.382922] [] ? release_task.part.19+0x1210/0x1210 [ 35.389586] [] ? __do_page_fault+0x5dd/0xd50 [ 35.395720] [] ? up_read+0x1a/0x40 [ 35.400963] [] ? __do_page_fault+0x183/0xd50 [ 35.407007] [] do_group_exit+0x111/0x340 [ 35.412693] [] ? do_group_exit+0x340/0x340 [ 35.418573] [] SyS_exit_group+0x1d/0x20 [ 35.424180] [] do_syscall_64+0x1a6/0x490 [ 35.429880] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 35.436783] [ 35.438387] Allocated by task 5320: [ 35.442006] save_stack_trace+0x16/0x20 [ 35.445957] save_stack+0x43/0xd0 [ 35.449384] kasan_kmalloc+0xc7/0xe0 [ 35.453074] __kmalloc+0x11d/0x300 [ 35.456593] l2tp_session_create+0x38/0x16f0 [ 35.460987] pppol2tp_connect+0x10d7/0x18f0 [ 35.465286] SYSC_connect+0x1b8/0x300 [ 35.469147] SyS_connect+0x24/0x30 [ 35.472671] do_syscall_64+0x1a6/0x490 [ 35.476536] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 35.481615] [ 35.483229] Freed by task 5272: [ 35.486485] save_stack_trace+0x16/0x20 [ 35.490434] save_stack+0x43/0xd0 [ 35.493862] kasan_slab_free+0x72/0xc0 [ 35.497731] kfree+0xfb/0x310 [ 35.500822] l2tp_session_free+0x166/0x200 [ 35.505044] l2tp_tunnel_closeall+0x284/0x350 [ 35.509530] l2tp_udp_encap_destroy+0x87/0xe0 [ 35.514002] udpv6_destroy_sock+0xb1/0xd0 [ 35.518124] sk_common_release+0x6d/0x300 [ 35.522248] udp_lib_close+0x15/0x20 [ 35.525952] inet_release+0xff/0x1d0 [ 35.529645] inet6_release+0x50/0x70 [ 35.533334] sock_release+0x96/0x1c0 [ 35.537024] sock_close+0x16/0x20 [ 35.540473] __fput+0x263/0x700 [ 35.543732] ____fput+0x15/0x20 [ 35.546992] task_work_run+0x10c/0x180 [ 35.550855] do_exit+0x9e1/0x27c0 [ 35.554296] do_group_exit+0x111/0x340 [ 35.558159] SyS_exit_group+0x1d/0x20 [ 35.561938] do_syscall_64+0x1a6/0x490 [ 35.565803] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 35.570875] [ 35.572478] The buggy address belongs to the object at ffff8801d6ea2c80 [ 35.572478] which belongs to the cache kmalloc-512 of size 512 [ 35.585120] The buggy address is located 0 bytes inside of [ 35.585120] 512-byte region [ffff8801d6ea2c80, ffff8801d6ea2e80) [ 35.596796] The buggy address belongs to the page: [ 35.601709] page:ffffea00075ba880 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 35.611905] flags: 0x8000000000004080(slab|head) [ 35.616636] page dumped because: kasan: bad access detected [ 35.622329] [ 35.623928] Memory state around the buggy address: [ 35.628834] ffff8801d6ea2b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.636171] ffff8801d6ea2c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.643507] >ffff8801d6ea2c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.650842] ^ [ 35.654182] ffff8801d6ea2d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.661516] ffff8801d6ea2d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.668846] ================================================================== [ 35.676178] Disabling lock debugging due to kernel taint [ 35.682185] Kernel panic - not syncing: panic_on_warn set ... [ 35.682185] [ 35.689900] CPU: 1 PID: 5322 Comm: syz-executor055 Tainted: G B 4.9.109-ge1815b3 #49 [ 35.698883] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.708313] ffff8801d85dfa60 ffffffff81eb3e29 ffffffff843c6327 00000000ffffffff [ 35.716324] 0000000000000000 0000000000000001 ffffffff83013be0 ffff8801d85dfb20 [ 35.724321] ffffffff81421925 0000000041b58ab3 ffffffff843b9a40 ffffffff81421766 [ 35.732977] Call Trace: [ 35.735554] [] dump_stack+0xc1/0x128 [ 35.740905] [] ? sock_release+0x1c0/0x1c0 [ 35.746691] [] panic+0x1bf/0x3bc [ 35.751694] [] ? add_taint.cold.6+0x16/0x16 [ 35.757641] [] ? ___preempt_schedule+0x16/0x18 [ 35.763849] [] kasan_end_report+0x47/0x4f [ 35.769624] [] kasan_report.cold.6+0x76/0x2fe [ 35.775766] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 35.782511] [] __asan_report_load4_noabort+0x14/0x20 [ 35.789240] [] l2tp_session_queue_purge+0xf4/0x100 [ 35.795799] [] ? sock_release+0x1c0/0x1c0 [ 35.801585] [] pppol2tp_release+0x1fb/0x2e0 [ 35.807546] [] sock_release+0x96/0x1c0 [ 35.813058] [] sock_close+0x16/0x20 [ 35.818309] [] __fput+0x263/0x700 [ 35.823392] [] ____fput+0x15/0x20 [ 35.828474] [] task_work_run+0x10c/0x180 [ 35.834174] [] do_exit+0x9e1/0x27c0 [ 35.839445] [] ? vm_insert_mixed+0x200/0x200 [ 35.845485] [] ? release_task.part.19+0x1210/0x1210 [ 35.852146] [] ? __do_page_fault+0x5dd/0xd50 [ 35.859544] [] ? up_read+0x1a/0x40 [ 35.864715] [] ? __do_page_fault+0x183/0xd50 [ 35.870761] [] do_group_exit+0x111/0x340 [ 35.876471] [] ? do_group_exit+0x340/0x340 [ 35.882332] [] SyS_exit_group+0x1d/0x20 [ 35.887929] [] do_syscall_64+0x1a6/0x490 [ 35.893628] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 35.900997] Dumping ftrace buffer: [ 35.904525] (ftrace buffer empty) [ 35.908232] Kernel Offset: disabled [ 35.911853] Rebooting in 86400 seconds..