[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 14.280529] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.109840] random: sshd: uninitialized urandom read (32 bytes read) [ 19.618989] random: sshd: uninitialized urandom read (32 bytes read) [ 20.694641] random: sshd: uninitialized urandom read (32 bytes read) [ 45.472211] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.46' (ECDSA) to the list of known hosts. [ 51.079724] 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 [ 51.584211] ================================================================== [ 51.591620] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 51.598878] Read of size 4 at addr ffff8801c9cdc280 by task syz-executor502/4058 [ 51.606387] [ 51.607995] CPU: 0 PID: 4058 Comm: syz-executor502 Not tainted 4.9.109-ge1815b3 #52 [ 51.615773] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.625112] ffff8801b615fb00 ffffffff81eb3e29 ffffea0007273700 ffff8801c9cdc280 [ 51.633124] 0000000000000000 ffff8801c9cdc280 ffffffff83013be0 ffff8801b615fb38 [ 51.641116] ffffffff81567a89 ffff8801c9cdc280 0000000000000004 0000000000000000 [ 51.649122] Call Trace: [ 51.651689] [] dump_stack+0xc1/0x128 [ 51.657035] [] ? sock_release+0x1c0/0x1c0 [ 51.662820] [] print_address_description+0x6c/0x234 [ 51.669466] [] ? sock_release+0x1c0/0x1c0 [ 51.675245] [] kasan_report.cold.6+0x242/0x2fe [ 51.681459] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 51.688192] [] __asan_report_load4_noabort+0x14/0x20 [ 51.694926] [] l2tp_session_queue_purge+0xf4/0x100 [ 51.701505] [] ? sock_release+0x1c0/0x1c0 [ 51.707319] [] pppol2tp_release+0x1fb/0x2e0 [ 51.713285] [] sock_release+0x96/0x1c0 [ 51.718801] [] sock_close+0x16/0x20 [ 51.724061] [] __fput+0x263/0x700 [ 51.729150] [] ____fput+0x15/0x20 [ 51.734230] [] task_work_run+0x10c/0x180 [ 51.739919] [] do_exit+0x9e1/0x27c0 [ 51.745175] [] ? vm_insert_mixed+0x200/0x200 [ 51.751208] [] ? release_task.part.19+0x1210/0x1210 [ 51.757859] [] ? __do_page_fault+0x5dd/0xd50 [ 51.763899] [] ? up_read+0x1a/0x40 [ 51.769066] [] ? __do_page_fault+0x183/0xd50 [ 51.775111] [] do_group_exit+0x111/0x340 [ 51.780807] [] ? do_group_exit+0x340/0x340 [ 51.786671] [] SyS_exit_group+0x1d/0x20 [ 51.792277] [] do_syscall_64+0x1a6/0x490 [ 51.797970] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 51.804869] [ 51.806475] Allocated by task 4056: [ 51.810084] save_stack_trace+0x16/0x20 [ 51.814032] save_stack+0x43/0xd0 [ 51.817464] kasan_kmalloc+0xc7/0xe0 [ 51.821152] __kmalloc+0x11d/0x300 [ 51.824668] l2tp_session_create+0x38/0x16f0 [ 51.829052] pppol2tp_connect+0x10d7/0x18f0 [ 51.833367] SYSC_connect+0x1b8/0x300 [ 51.837146] SyS_connect+0x24/0x30 [ 51.840674] do_syscall_64+0x1a6/0x490 [ 51.844538] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 51.849616] [ 51.851229] Freed by task 3993: [ 51.854483] save_stack_trace+0x16/0x20 [ 51.858436] save_stack+0x43/0xd0 [ 51.861861] kasan_slab_free+0x72/0xc0 [ 51.865722] kfree+0xfb/0x310 [ 51.868835] l2tp_session_free+0x166/0x200 [ 51.873059] l2tp_tunnel_closeall+0x284/0x350 [ 51.877530] l2tp_udp_encap_destroy+0x87/0xe0 [ 51.881999] udpv6_destroy_sock+0xb1/0xd0 [ 51.886121] sk_common_release+0x6d/0x300 [ 51.890258] udp_lib_close+0x15/0x20 [ 51.893952] inet_release+0xff/0x1d0 [ 51.897649] inet6_release+0x50/0x70 [ 51.901343] sock_release+0x96/0x1c0 [ 51.905051] sock_close+0x16/0x20 [ 51.908485] __fput+0x263/0x700 [ 51.911743] ____fput+0x15/0x20 [ 51.915000] task_work_run+0x10c/0x180 [ 51.918880] do_exit+0x9e1/0x27c0 [ 51.922308] do_group_exit+0x111/0x340 [ 51.926169] SyS_exit_group+0x1d/0x20 [ 51.929942] do_syscall_64+0x1a6/0x490 [ 51.933804] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 51.938900] [ 51.940504] The buggy address belongs to the object at ffff8801c9cdc280 [ 51.940504] which belongs to the cache kmalloc-512 of size 512 [ 51.953139] The buggy address is located 0 bytes inside of [ 51.953139] 512-byte region [ffff8801c9cdc280, ffff8801c9cdc480) [ 51.964830] The buggy address belongs to the page: [ 51.969736] page:ffffea0007273700 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 51.979933] flags: 0x8000000000004080(slab|head) [ 51.984663] page dumped because: kasan: bad access detected [ 51.990343] [ 51.991941] Memory state around the buggy address: [ 51.996847] ffff8801c9cdc180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.004181] ffff8801c9cdc200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 52.011532] >ffff8801c9cdc280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.018867] ^ [ 52.022207] ffff8801c9cdc300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 52.029543] ffff8801c9cdc380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.036889] ================================================================== [ 52.044219] Disabling lock debugging due to kernel taint [ 52.050271] Kernel panic - not syncing: panic_on_warn set ... [ 52.050271] [ 52.057623] CPU: 0 PID: 4058 Comm: syz-executor502 Tainted: G B 4.9.109-ge1815b3 #52 [ 52.066613] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.075950] ffff8801b615fa60 ffffffff81eb3e29 ffffffff843c6327 00000000ffffffff [ 52.083959] 0000000000000000 0000000000000000 ffffffff83013be0 ffff8801b615fb20 [ 52.091950] ffffffff81421925 0000000041b58ab3 ffffffff843b9a40 ffffffff81421766 [ 52.099953] Call Trace: [ 52.102518] [] dump_stack+0xc1/0x128 [ 52.107863] [] ? sock_release+0x1c0/0x1c0 [ 52.113638] [] panic+0x1bf/0x3bc [ 52.118628] [] ? add_taint.cold.6+0x16/0x16 [ 52.124576] [] ? ___preempt_schedule+0x16/0x18 [ 52.130803] [] kasan_end_report+0x47/0x4f [ 52.136591] [] kasan_report.cold.6+0x76/0x2fe [ 52.142730] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 52.149478] [] __asan_report_load4_noabort+0x14/0x20 [ 52.156213] [] l2tp_session_queue_purge+0xf4/0x100 [ 52.162779] [] ? sock_release+0x1c0/0x1c0 [ 52.168559] [] pppol2tp_release+0x1fb/0x2e0 [ 52.174508] [] sock_release+0x96/0x1c0 [ 52.180022] [] sock_close+0x16/0x20 [ 52.185285] [] __fput+0x263/0x700 [ 52.190363] [] ____fput+0x15/0x20 [ 52.195442] [] task_work_run+0x10c/0x180 [ 52.201141] [] do_exit+0x9e1/0x27c0 [ 52.206406] [] ? vm_insert_mixed+0x200/0x200 [ 52.212456] [] ? release_task.part.19+0x1210/0x1210 [ 52.219108] [] ? __do_page_fault+0x5dd/0xd50 [ 52.225151] [] ? up_read+0x1a/0x40 [ 52.230321] [] ? __do_page_fault+0x183/0xd50 [ 52.236359] [] do_group_exit+0x111/0x340 [ 52.242053] [] ? do_group_exit+0x340/0x340 [ 52.247913] [] SyS_exit_group+0x1d/0x20 [ 52.253526] [] do_syscall_64+0x1a6/0x490 [ 52.259217] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 52.266613] Dumping ftrace buffer: [ 52.270139] (ftrace buffer empty) [ 52.273825] Kernel Offset: disabled [ 52.277435] Rebooting in 86400 seconds..