[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 76.976714][ T27] audit: type=1800 audit(1585872768.916:25): pid=9255 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 77.010834][ T27] audit: type=1800 audit(1585872768.916:26): pid=9255 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 77.062433][ T27] audit: type=1800 audit(1585872768.916:27): pid=9255 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.1.34' (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 syzkaller login: [ 101.619482][ T9450] ================================================================== [ 101.619543][ T9450] BUG: KASAN: use-after-free in con_shutdown+0x7f/0x90 [ 101.619553][ T9450] Write of size 8 at addr ffff8880a64c0108 by task syz-executor678/9450 [ 101.619557][ T9450] [ 101.619568][ T9450] CPU: 0 PID: 9450 Comm: syz-executor678 Not tainted 5.6.0-rc3-next-20200228-syzkaller #0 [ 101.619575][ T9450] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 101.619579][ T9450] Call Trace: [ 101.619596][ T9450] dump_stack+0x188/0x20d [ 101.619609][ T9450] ? con_shutdown+0x7f/0x90 [ 101.619622][ T9450] ? con_shutdown+0x7f/0x90 [ 101.619638][ T9450] print_address_description.constprop.0.cold+0xd3/0x315 [ 101.619650][ T9450] ? con_shutdown+0x7f/0x90 [ 101.619663][ T9450] ? con_shutdown+0x7f/0x90 [ 101.619672][ T9450] __kasan_report.cold+0x1a/0x32 [ 101.619689][ T9450] ? con_shutdown+0x7f/0x90 [ 101.619706][ T9450] kasan_report+0xe/0x20 [ 101.619719][ T9450] con_shutdown+0x7f/0x90 [ 101.619730][ T9450] ? update_region+0x140/0x140 [ 101.619742][ T9450] release_tty+0xca/0x450 [ 101.619759][ T9450] tty_release_struct+0x37/0x50 [ 101.619772][ T9450] tty_release+0xbc7/0xe90 [ 101.619797][ T9450] ? do_tty_hangup+0x30/0x30 [ 101.619809][ T9450] __fput+0x2da/0x850 [ 101.619835][ T9450] task_work_run+0x13f/0x1b0 [ 101.619855][ T9450] do_exit+0xb53/0x2e10 [ 101.619882][ T9450] ? mm_update_next_owner+0x7a0/0x7a0 [ 101.619894][ T9450] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 101.619908][ T9450] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 101.619924][ T9450] ? down_read_nested+0x430/0x430 [ 101.619944][ T9450] ? switch_fpu_return+0x1db/0x4b0 [ 101.619963][ T9450] do_group_exit+0x125/0x340 [ 101.619979][ T9450] __x64_sys_exit_group+0x3a/0x50 [ 101.619993][ T9450] do_syscall_64+0xf6/0x790 [ 101.620012][ T9450] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 101.620022][ T9450] RIP: 0033:0x43ff38 [ 101.620035][ T9450] Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00 [ 101.620041][ T9450] RSP: 002b:00007ffc4d55ae08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 101.620053][ T9450] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 101.620060][ T9450] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 101.620067][ T9450] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 101.620073][ T9450] R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000000001 [ 101.620080][ T9450] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 101.620107][ T9450] [ 101.620113][ T9450] Allocated by task 9450: [ 101.620124][ T9450] save_stack+0x1b/0x40 [ 101.620135][ T9450] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 101.620146][ T9450] kmem_cache_alloc_trace+0x153/0x7d0 [ 101.620154][ T9450] vc_allocate+0x1e2/0x6e0 [ 101.620163][ T9450] con_install+0x4f/0x400 [ 101.620173][ T9450] tty_init_dev+0xf5/0x460 [ 101.620182][ T9450] tty_open+0x47f/0xb30 [ 101.620192][ T9450] chrdev_open+0x219/0x5c0 [ 101.620203][ T9450] do_dentry_open+0x49e/0x1250 [ 101.620215][ T9450] path_openat+0x122a/0x3230 [ 101.620225][ T9450] do_filp_open+0x192/0x260 [ 101.620236][ T9450] do_sys_openat2+0x54c/0x740 [ 101.620246][ T9450] do_sys_open+0xc3/0x140 [ 101.620257][ T9450] do_syscall_64+0xf6/0x790 [ 101.620267][ T9450] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 101.620270][ T9450] [ 101.620283][ T9450] Freed by task 9453: [ 101.620293][ T9450] save_stack+0x1b/0x40 [ 101.620304][ T9450] __kasan_slab_free+0xf7/0x140 [ 101.620312][ T9450] kfree+0x109/0x2b0 [ 101.620321][ T9450] vt_disallocate_all+0x283/0x370 [ 101.620329][ T9450] vt_ioctl+0x79e/0x2450 [ 101.620340][ T9450] tty_ioctl+0xedd/0x1440 [ 101.620349][ T9450] ksys_ioctl+0x11a/0x180 [ 101.620358][ T9450] __x64_sys_ioctl+0x6f/0xb0 [ 101.620369][ T9450] do_syscall_64+0xf6/0x790 [ 101.620380][ T9450] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 101.620382][ T9450] [ 101.620390][ T9450] The buggy address belongs to the object at ffff8880a64c0000 [ 101.620390][ T9450] which belongs to the cache kmalloc-2k of size 2048 [ 101.620399][ T9450] The buggy address is located 264 bytes inside of [ 101.620399][ T9450] 2048-byte region [ffff8880a64c0000, ffff8880a64c0800) [ 101.620403][ T9450] The buggy address belongs to the page: [ 101.620416][ T9450] page:ffffea0002993000 refcount:1 mapcount:0 mapping:00000000c8195956 index:0x0 [ 101.620425][ T9450] flags: 0xfffe0000000200(slab) [ 101.620440][ T9450] raw: 00fffe0000000200 ffffea0002767488 ffffea00023b4b48 ffff8880aa000e00 [ 101.620453][ T9450] raw: 0000000000000000 ffff8880a64c0000 0000000100000001 0000000000000000 [ 101.620458][ T9450] page dumped because: kasan: bad access detected [ 101.620461][ T9450] [ 101.620464][ T9450] Memory state around the buggy address: [ 101.620474][ T9450] ffff8880a64c0000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 101.620482][ T9450] ffff8880a64c0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 101.620490][ T9450] >ffff8880a64c0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 101.620494][ T9450] ^ [ 101.620501][ T9450] ffff8880a64c0180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 101.620509][ T9450] ffff8880a64c0200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 101.620512][ T9450] ================================================================== [ 101.620516][ T9450] Disabling lock debugging due to kernel taint [ 101.620552][ T9450] Kernel panic - not syncing: panic_on_warn set ... [ 101.620565][ T9450] CPU: 0 PID: 9450 Comm: syz-executor678 Tainted: G B 5.6.0-rc3-next-20200228-syzkaller #0 [ 101.620572][ T9450] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 101.620575][ T9450] Call Trace: [ 101.620589][ T9450] dump_stack+0x188/0x20d [ 101.620603][ T9450] panic+0x2e3/0x75c [ 101.620613][ T9450] ? add_taint.cold+0x16/0x16 [ 101.620622][ T9450] ? retint_kernel+0x2b/0x2b [ 101.620639][ T9450] ? trace_hardirqs_on+0x55/0x220 [ 101.620653][ T9450] ? con_shutdown+0x7f/0x90 [ 101.620664][ T9450] end_report+0x43/0x49 [ 101.620680][ T9450] ? con_shutdown+0x7f/0x90 [ 101.620688][ T9450] __kasan_report.cold+0xd/0x32 [ 101.620700][ T9450] ? con_shutdown+0x7f/0x90 [ 101.620712][ T9450] kasan_report+0xe/0x20 [ 101.620722][ T9450] con_shutdown+0x7f/0x90 [ 101.620733][ T9450] ? update_region+0x140/0x140 [ 101.620743][ T9450] release_tty+0xca/0x450 [ 101.620757][ T9450] tty_release_struct+0x37/0x50 [ 101.620769][ T9450] tty_release+0xbc7/0xe90 [ 101.620786][ T9450] ? do_tty_hangup+0x30/0x30 [ 101.620796][ T9450] __fput+0x2da/0x850 [ 101.620814][ T9450] task_work_run+0x13f/0x1b0 [ 101.620828][ T9450] do_exit+0xb53/0x2e10 [ 101.620844][ T9450] ? mm_update_next_owner+0x7a0/0x7a0 [ 101.620854][ T9450] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 101.620864][ T9450] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 101.620874][ T9450] ? down_read_nested+0x430/0x430 [ 101.620883][ T9450] ? switch_fpu_return+0x1db/0x4b0 [ 101.620891][ T9450] do_group_exit+0x125/0x340 [ 101.620898][ T9450] __x64_sys_exit_group+0x3a/0x50 [ 101.620906][ T9450] do_syscall_64+0xf6/0x790 [ 101.620914][ T9450] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 101.620918][ T9450] RIP: 0033:0x43ff38 [ 101.620925][ T9450] Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00 [ 101.620929][ T9450] RSP: 002b:00007ffc4d55ae08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 101.620936][ T9450] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 101.620940][ T9450] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 101.620943][ T9450] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 101.620947][ T9450] R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000000001 [ 101.620951][ T9450] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 101.622260][ T9450] Kernel Offset: disabled [ 102.382705][ T9450] Rebooting in 86400 seconds..