Warning: Permanently added '10.128.0.212' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program [ 54.245618] audit: type=1400 audit(1579893678.586:36): avc: denied { map } for pid=8206 comm="syz-executor182" path="/root/syz-executor182518317" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 54.324146] ================================================================== [ 54.324186] BUG: KASAN: use-after-free in con_shutdown+0x85/0x90 [ 54.324198] Write of size 8 at addr ffff88808c362608 by task syz-executor182/8218 [ 54.324202] [ 54.324218] CPU: 1 PID: 8218 Comm: syz-executor182 Not tainted 4.19.98-syzkaller #0 [ 54.324227] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.324232] Call Trace: [ 54.324249] dump_stack+0x197/0x210 [ 54.324274] ? con_shutdown+0x85/0x90 [ 54.324293] print_address_description.cold+0x7c/0x20d [ 54.324311] ? con_shutdown+0x85/0x90 [ 54.324325] kasan_report.cold+0x8c/0x2ba [ 54.324341] ? set_palette+0x1c0/0x1c0 [ 54.324359] __asan_report_store8_noabort+0x17/0x20 [ 54.324374] con_shutdown+0x85/0x90 [ 54.324390] release_tty+0xe4/0x4d0 [ 54.324407] tty_release_struct+0x3c/0x50 [ 54.324422] tty_release+0xbcb/0xe90 [ 54.324446] ? tty_release_struct+0x50/0x50 [ 54.324461] __fput+0x2dd/0x8b0 [ 54.324483] ____fput+0x16/0x20 [ 54.324498] task_work_run+0x145/0x1c0 [ 54.324519] do_exit+0xc1f/0x30d0 [ 54.324544] ? mm_update_next_owner+0x660/0x660 [ 54.324559] ? up_read+0x1a/0x110 [ 54.324574] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.324588] ? __do_page_fault+0x484/0xe90 [ 54.324614] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 54.324629] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 54.324646] do_group_exit+0x135/0x370 [ 54.324664] __x64_sys_exit_group+0x44/0x50 [ 54.324679] do_syscall_64+0xfd/0x620 [ 54.324698] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.324709] RIP: 0033:0x43ff78 [ 54.324722] Code: Bad RIP value. [ 54.324730] RSP: 002b:00007fff9f0b3368 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 54.324744] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff78 [ 54.324752] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 54.324761] RBP: 00000000004bf990 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 54.324769] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 54.324777] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 54.324796] [ 54.324803] Allocated by task 8218: [ 54.324815] save_stack+0x45/0xd0 [ 54.324828] kasan_kmalloc+0xce/0xf0 [ 54.324840] kmem_cache_alloc_trace+0x152/0x760 [ 54.324853] vc_allocate+0x1f5/0x760 [ 54.324867] con_install+0x52/0x410 [ 54.324880] tty_init_dev+0xf7/0x460 [ 54.324893] tty_open+0x4bf/0xb70 [ 54.324904] chrdev_open+0x245/0x6b0 [ 54.324914] do_dentry_open+0x4c3/0x1210 [ 54.324925] vfs_open+0xa0/0xd0 [ 54.324935] path_openat+0x10d7/0x45e0 [ 54.324946] do_filp_open+0x1a1/0x280 [ 54.324956] do_sys_open+0x3fe/0x550 [ 54.324967] __x64_sys_open+0x7e/0xc0 [ 54.324980] do_syscall_64+0xfd/0x620 [ 54.324992] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.324996] [ 54.325001] Freed by task 8221: [ 54.325013] save_stack+0x45/0xd0 [ 54.325025] __kasan_slab_free+0x102/0x150 [ 54.325037] kasan_slab_free+0xe/0x10 [ 54.325047] kfree+0xcf/0x220 [ 54.325058] vt_disallocate_all+0x2bd/0x3e0 [ 54.325068] vt_ioctl+0xc38/0x2530 [ 54.325080] tty_ioctl+0x7f3/0x1510 [ 54.325091] do_vfs_ioctl+0xd5f/0x1380 [ 54.325102] ksys_ioctl+0xab/0xd0 [ 54.325113] __x64_sys_ioctl+0x73/0xb0 [ 54.325125] do_syscall_64+0xfd/0x620 [ 54.325138] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.325141] [ 54.325151] The buggy address belongs to the object at ffff88808c362500 [ 54.325151] which belongs to the cache kmalloc-2048 of size 2048 [ 54.325163] The buggy address is located 264 bytes inside of [ 54.325163] 2048-byte region [ffff88808c362500, ffff88808c362d00) [ 54.325167] The buggy address belongs to the page: [ 54.325179] page:ffffea000230d880 count:1 mapcount:0 mapping:ffff88812c31cc40 index:0x0 compound_mapcount: 0 [ 54.325193] flags: 0xfffe0000008100(slab|head) [ 54.325213] raw: 00fffe0000008100 ffffea0002339c88 ffffea00022d3d88 ffff88812c31cc40 [ 54.325228] raw: 0000000000000000 ffff88808c362500 0000000100000003 0000000000000000 [ 54.325233] page dumped because: kasan: bad access detected [ 54.325236] [ 54.325240] Memory state around the buggy address: [ 54.325251] ffff88808c362500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.325261] ffff88808c362580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.325272] >ffff88808c362600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.325276] ^ [ 54.325287] ffff88808c362680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.325297] ffff88808c362700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.325302] ================================================================== [ 54.325306] Disabling lock debugging due to kernel taint [ 54.328998] Kernel panic - not syncing: panic_on_warn set ... [ 54.328998] [ 54.329017] CPU: 1 PID: 8218 Comm: syz-executor182 Tainted: G B 4.19.98-syzkaller #0 [ 54.329025] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.329029] Call Trace: [ 54.329047] dump_stack+0x197/0x210 [ 54.329066] ? con_shutdown+0x85/0x90 [ 54.329077] panic+0x26a/0x50e [ 54.329089] ? __warn_printk+0xf3/0xf3 [ 54.329104] ? con_shutdown+0x85/0x90 [ 54.329119] ? preempt_schedule+0x4b/0x60 [ 54.329134] ? ___preempt_schedule+0x16/0x18 [ 54.329149] ? trace_hardirqs_on+0x5e/0x220 [ 54.329165] ? con_shutdown+0x85/0x90 [ 54.329181] kasan_end_report+0x47/0x4f [ 54.329195] kasan_report.cold+0xa9/0x2ba [ 54.329209] ? set_palette+0x1c0/0x1c0 [ 54.329225] __asan_report_store8_noabort+0x17/0x20 [ 54.329239] con_shutdown+0x85/0x90 [ 54.329253] release_tty+0xe4/0x4d0 [ 54.329268] tty_release_struct+0x3c/0x50 [ 54.329281] tty_release+0xbcb/0xe90 [ 54.329298] ? tty_release_struct+0x50/0x50 [ 54.329310] __fput+0x2dd/0x8b0 [ 54.329326] ____fput+0x16/0x20 [ 54.329339] task_work_run+0x145/0x1c0 [ 54.329353] do_exit+0xc1f/0x30d0 [ 54.329372] ? mm_update_next_owner+0x660/0x660 [ 54.329386] ? up_read+0x1a/0x110 [ 54.329400] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.329412] ? __do_page_fault+0x484/0xe90 [ 54.329429] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 54.329442] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 54.329456] do_group_exit+0x135/0x370 [ 54.329471] __x64_sys_exit_group+0x44/0x50 [ 54.329483] do_syscall_64+0xfd/0x620 [ 54.329499] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.329508] RIP: 0033:0x43ff78 [ 54.329520] 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 [ 54.329526] RSP: 002b:00007fff9f0b3368 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 54.329538] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff78 [ 54.329545] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 54.329553] RBP: 00000000004bf990 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 54.329560] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 54.329568] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 54.330827] Kernel Offset: disabled