[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 68.513355][ T27] audit: type=1800 audit(1584421441.141:25): pid=9230 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 68.544770][ T27] audit: type=1800 audit(1584421441.151:26): pid=9230 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 68.565854][ T27] audit: type=1800 audit(1584421441.151:27): pid=9230 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.15.192' (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 syzkaller login: [ 88.639379][ T9402] ================================================================== [ 88.639436][ T9402] BUG: KASAN: use-after-free in con_shutdown+0x7f/0x90 [ 88.639446][ T9402] Write of size 8 at addr ffff88808c555108 by task syz-executor621/9402 [ 88.639450][ T9402] [ 88.639462][ T9402] CPU: 0 PID: 9402 Comm: syz-executor621 Not tainted 5.6.0-rc3-next-20200228-syzkaller #0 [ 88.639468][ T9402] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 88.639472][ T9402] Call Trace: [ 88.639488][ T9402] dump_stack+0x188/0x20d [ 88.639501][ T9402] ? con_shutdown+0x7f/0x90 [ 88.639515][ T9402] ? con_shutdown+0x7f/0x90 [ 88.639539][ T9402] print_address_description.constprop.0.cold+0xd3/0x315 [ 88.639552][ T9402] ? con_shutdown+0x7f/0x90 [ 88.639566][ T9402] ? con_shutdown+0x7f/0x90 [ 88.639577][ T9402] __kasan_report.cold+0x1a/0x32 [ 88.639595][ T9402] ? con_shutdown+0x7f/0x90 [ 88.639613][ T9402] kasan_report+0xe/0x20 [ 88.639625][ T9402] con_shutdown+0x7f/0x90 [ 88.639637][ T9402] ? update_region+0x140/0x140 [ 88.639649][ T9402] release_tty+0xca/0x450 [ 88.639666][ T9402] tty_release_struct+0x37/0x50 [ 88.639681][ T9402] tty_release+0xbc7/0xe90 [ 88.639707][ T9402] ? do_tty_hangup+0x30/0x30 [ 88.639720][ T9402] __fput+0x2da/0x850 [ 88.639748][ T9402] task_work_run+0x13f/0x1b0 [ 88.639768][ T9402] do_exit+0xb53/0x2e10 [ 88.639794][ T9402] ? mm_update_next_owner+0x7a0/0x7a0 [ 88.639808][ T9402] ? up_read+0x1a8/0x750 [ 88.639826][ T9402] ? down_read_nested+0x430/0x430 [ 88.639845][ T9402] ? handle_mm_fault+0x29e/0x660 [ 88.639864][ T9402] do_group_exit+0x125/0x340 [ 88.639882][ T9402] __x64_sys_exit_group+0x3a/0x50 [ 88.639896][ T9402] do_syscall_64+0xf6/0x790 [ 88.639916][ T9402] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 88.639926][ T9402] RIP: 0033:0x43ff38 [ 88.639939][ T9402] 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 [ 88.639946][ T9402] RSP: 002b:00007ffda7c0f3e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 88.639958][ T9402] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 88.639965][ T9402] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 88.639973][ T9402] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 88.639980][ T9402] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 88.639987][ T9402] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 88.640016][ T9402] [ 88.640022][ T9402] Allocated by task 9402: [ 88.640034][ T9402] save_stack+0x1b/0x40 [ 88.640051][ T9402] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 88.640063][ T9402] kmem_cache_alloc_trace+0x153/0x7d0 [ 88.640072][ T9402] vc_allocate+0x1e2/0x6e0 [ 88.640082][ T9402] con_install+0x4f/0x400 [ 88.640093][ T9402] tty_init_dev+0xf5/0x460 [ 88.640100][ T9402] tty_open+0x47f/0xb30 [ 88.640110][ T9402] chrdev_open+0x219/0x5c0 [ 88.640122][ T9402] do_dentry_open+0x49e/0x1250 [ 88.640133][ T9402] path_openat+0x122a/0x3230 [ 88.640144][ T9402] do_filp_open+0x192/0x260 [ 88.640156][ T9402] do_sys_openat2+0x54c/0x740 [ 88.640167][ T9402] do_sys_open+0xc3/0x140 [ 88.640178][ T9402] do_syscall_64+0xf6/0x790 [ 88.640189][ T9402] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 88.640193][ T9402] [ 88.640198][ T9402] Freed by task 9403: [ 88.640209][ T9402] save_stack+0x1b/0x40 [ 88.640220][ T9402] __kasan_slab_free+0xf7/0x140 [ 88.640230][ T9402] kfree+0x109/0x2b0 [ 88.640240][ T9402] vt_disallocate_all+0x283/0x370 [ 88.640249][ T9402] vt_ioctl+0x79e/0x2450 [ 88.640260][ T9402] tty_ioctl+0xedd/0x1440 [ 88.640269][ T9402] ksys_ioctl+0x11a/0x180 [ 88.640278][ T9402] __x64_sys_ioctl+0x6f/0xb0 [ 88.640290][ T9402] do_syscall_64+0xf6/0x790 [ 88.640301][ T9402] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 88.640304][ T9402] [ 88.640312][ T9402] The buggy address belongs to the object at ffff88808c555000 [ 88.640312][ T9402] which belongs to the cache kmalloc-2k of size 2048 [ 88.640322][ T9402] The buggy address is located 264 bytes inside of [ 88.640322][ T9402] 2048-byte region [ffff88808c555000, ffff88808c555800) [ 88.640326][ T9402] The buggy address belongs to the page: [ 88.640338][ T9402] page:ffffea0002315540 refcount:1 mapcount:0 mapping:0000000076703bf2 index:0x0 [ 88.640348][ T9402] flags: 0xfffe0000000200(slab) [ 88.640364][ T9402] raw: 00fffe0000000200 ffffea0002770588 ffffea0002315508 ffff8880aa000e00 [ 88.640378][ T9402] raw: 0000000000000000 ffff88808c555000 0000000100000001 0000000000000000 [ 88.640383][ T9402] page dumped because: kasan: bad access detected [ 88.640386][ T9402] [ 88.640390][ T9402] Memory state around the buggy address: [ 88.640400][ T9402] ffff88808c555000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 88.640409][ T9402] ffff88808c555080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 88.640419][ T9402] >ffff88808c555100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 88.640423][ T9402] ^ [ 88.640433][ T9402] ffff88808c555180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 88.640442][ T9402] ffff88808c555200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 88.640446][ T9402] ================================================================== [ 88.640450][ T9402] Disabling lock debugging due to kernel taint [ 88.640500][ T9402] Kernel panic - not syncing: panic_on_warn set ... [ 88.640513][ T9402] CPU: 0 PID: 9402 Comm: syz-executor621 Tainted: G B 5.6.0-rc3-next-20200228-syzkaller #0 [ 88.640519][ T9402] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 88.640522][ T9402] Call Trace: [ 88.640541][ T9402] dump_stack+0x188/0x20d [ 88.640556][ T9402] panic+0x2e3/0x75c [ 88.640568][ T9402] ? add_taint.cold+0x16/0x16 [ 88.640578][ T9402] ? retint_kernel+0x2b/0x2b [ 88.640594][ T9402] ? trace_hardirqs_on+0x55/0x220 [ 88.640609][ T9402] ? con_shutdown+0x7f/0x90 [ 88.640619][ T9402] end_report+0x43/0x49 [ 88.640631][ T9402] ? con_shutdown+0x7f/0x90 [ 88.640640][ T9402] __kasan_report.cold+0xd/0x32 [ 88.640655][ T9402] ? con_shutdown+0x7f/0x90 [ 88.640669][ T9402] kasan_report+0xe/0x20 [ 88.640680][ T9402] con_shutdown+0x7f/0x90 [ 88.640699][ T9402] ? update_region+0x140/0x140 [ 88.640710][ T9402] release_tty+0xca/0x450 [ 88.640723][ T9402] tty_release_struct+0x37/0x50 [ 88.640736][ T9402] tty_release+0xbc7/0xe90 [ 88.640754][ T9402] ? do_tty_hangup+0x30/0x30 [ 88.640764][ T9402] __fput+0x2da/0x850 [ 88.640782][ T9402] task_work_run+0x13f/0x1b0 [ 88.640796][ T9402] do_exit+0xb53/0x2e10 [ 88.640814][ T9402] ? mm_update_next_owner+0x7a0/0x7a0 [ 88.640825][ T9402] ? up_read+0x1a8/0x750 [ 88.640840][ T9402] ? down_read_nested+0x430/0x430 [ 88.640853][ T9402] ? handle_mm_fault+0x29e/0x660 [ 88.640866][ T9402] do_group_exit+0x125/0x340 [ 88.640879][ T9402] __x64_sys_exit_group+0x3a/0x50 [ 88.640891][ T9402] do_syscall_64+0xf6/0x790 [ 88.640906][ T9402] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 88.640913][ T9402] RIP: 0033:0x43ff38 [ 88.640924][ T9402] 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 [ 88.640929][ T9402] RSP: 002b:00007ffda7c0f3e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 88.640939][ T9402] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 88.640945][ T9402] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 88.640951][ T9402] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 88.640957][ T9402] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 88.640962][ T9402] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 88.642466][ T9402] Kernel Offset: disabled [ 89.388400][ T9402] Rebooting in 86400 seconds..