Warning: Permanently added '10.128.1.10' (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 [ 62.316948] audit: type=1400 audit(1582219968.778:36): avc: denied { map } for pid=8352 comm="syz-executor049" path="/root/syz-executor049960461" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program [ 62.425121] ================================================================== [ 62.425202] BUG: KASAN: use-after-free in con_shutdown+0x85/0x90 [ 62.425215] Write of size 8 at addr ffff8880a500d488 by task syz-executor049/8371 [ 62.425219] [ 62.425235] CPU: 0 PID: 8371 Comm: syz-executor049 Not tainted 4.19.105-syzkaller #0 [ 62.425243] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.425253] Call Trace: [ 62.425304] dump_stack+0x197/0x210 [ 62.425323] ? con_shutdown+0x85/0x90 [ 62.425367] print_address_description.cold+0x7c/0x20d [ 62.425390] ? con_shutdown+0x85/0x90 [ 62.425406] kasan_report.cold+0x8c/0x2ba [ 62.425422] ? set_palette+0x1c0/0x1c0 [ 62.425441] __asan_report_store8_noabort+0x17/0x20 [ 62.425455] con_shutdown+0x85/0x90 [ 62.425470] release_tty+0xe4/0x4d0 [ 62.425488] tty_release_struct+0x3c/0x50 [ 62.425503] tty_release+0xbcb/0xe90 [ 62.425526] ? tty_release_struct+0x50/0x50 [ 62.425546] __fput+0x2dd/0x8b0 [ 62.425568] ____fput+0x16/0x20 [ 62.425595] task_work_run+0x145/0x1c0 [ 62.425621] do_exit+0xc1f/0x30d0 [ 62.425646] ? mm_update_next_owner+0x660/0x660 [ 62.425665] ? up_read+0x1a/0x110 [ 62.425688] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.425718] ? __do_page_fault+0x484/0xe90 [ 62.425746] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.425762] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.425780] do_group_exit+0x135/0x370 [ 62.425799] __x64_sys_exit_group+0x44/0x50 [ 62.425816] do_syscall_64+0xfd/0x620 [ 62.425837] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.425854] RIP: 0033:0x43ff38 [ 62.425869] 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 [ 62.425877] RSP: 002b:00007ffe3ff4b5d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 62.425898] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 62.425906] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 62.425915] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 62.425923] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 62.425931] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 62.425951] [ 62.425966] Allocated by task 8363: [ 62.425979] save_stack+0x45/0xd0 [ 62.425992] kasan_kmalloc+0xce/0xf0 [ 62.426004] kmem_cache_alloc_trace+0x152/0x760 [ 62.426017] vc_allocate+0x1f5/0x760 [ 62.426030] con_install+0x52/0x410 [ 62.426042] tty_init_dev+0xf7/0x460 [ 62.426054] tty_open+0x4bf/0xb70 [ 62.426071] chrdev_open+0x245/0x6b0 [ 62.426083] do_dentry_open+0x4c3/0x1210 [ 62.426094] vfs_open+0xa0/0xd0 [ 62.426109] path_openat+0x10d8/0x44a0 [ 62.426123] do_filp_open+0x1a1/0x280 [ 62.426135] do_sys_open+0x3fe/0x550 [ 62.426146] __x64_sys_open+0x7e/0xc0 [ 62.426160] do_syscall_64+0xfd/0x620 [ 62.426173] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.426177] [ 62.426183] Freed by task 8369: [ 62.426195] save_stack+0x45/0xd0 [ 62.426206] __kasan_slab_free+0x102/0x150 [ 62.426218] kasan_slab_free+0xe/0x10 [ 62.426229] kfree+0xcf/0x220 [ 62.426245] vt_disallocate_all+0x2bd/0x3e0 [ 62.426258] vt_ioctl+0xc38/0x2530 [ 62.426270] tty_ioctl+0x7f3/0x1510 [ 62.426286] do_vfs_ioctl+0xd5f/0x1380 [ 62.426298] ksys_ioctl+0xab/0xd0 [ 62.426308] __x64_sys_ioctl+0x73/0xb0 [ 62.426320] do_syscall_64+0xfd/0x620 [ 62.426334] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.426338] [ 62.426348] The buggy address belongs to the object at ffff8880a500d380 [ 62.426348] which belongs to the cache kmalloc-2048 of size 2048 [ 62.426360] The buggy address is located 264 bytes inside of [ 62.426360] 2048-byte region [ffff8880a500d380, ffff8880a500db80) [ 62.426364] The buggy address belongs to the page: [ 62.426377] page:ffffea0002940300 count:1 mapcount:0 mapping:ffff88812c31cc40 index:0x0 compound_mapcount: 0 [ 62.426391] flags: 0xfffe0000008100(slab|head) [ 62.426411] raw: 00fffe0000008100 ffffea00029fac88 ffffea0002922008 ffff88812c31cc40 [ 62.426427] raw: 0000000000000000 ffff8880a500c280 0000000100000003 0000000000000000 [ 62.426433] page dumped because: kasan: bad access detected [ 62.426437] [ 62.426441] Memory state around the buggy address: [ 62.426453] ffff8880a500d380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.426463] ffff8880a500d400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.426473] >ffff8880a500d480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.426478] ^ [ 62.426489] ffff8880a500d500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.426501] ffff8880a500d580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.426506] ================================================================== [ 62.426511] Disabling lock debugging due to kernel taint [ 62.426566] Kernel panic - not syncing: panic_on_warn set ... [ 62.426566] [ 62.426580] CPU: 0 PID: 8371 Comm: syz-executor049 Tainted: G B 4.19.105-syzkaller #0 [ 62.426587] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.426591] Call Trace: [ 62.426607] dump_stack+0x197/0x210 [ 62.426621] ? con_shutdown+0x85/0x90 [ 62.426643] panic+0x26a/0x50e [ 62.426659] ? __warn_printk+0xf3/0xf3 [ 62.426671] ? con_shutdown+0x85/0x90 [ 62.426693] ? trace_hardirqs_on+0x5e/0x220 [ 62.426711] ? trace_hardirqs_on+0x5e/0x220 [ 62.426730] ? con_shutdown+0x85/0x90 [ 62.426744] kasan_end_report+0x47/0x4f [ 62.426759] kasan_report.cold+0xa9/0x2ba [ 62.426773] ? set_palette+0x1c0/0x1c0 [ 62.426790] __asan_report_store8_noabort+0x17/0x20 [ 62.426803] con_shutdown+0x85/0x90 [ 62.426815] release_tty+0xe4/0x4d0 [ 62.426830] tty_release_struct+0x3c/0x50 [ 62.426843] tty_release+0xbcb/0xe90 [ 62.426861] ? tty_release_struct+0x50/0x50 [ 62.426872] __fput+0x2dd/0x8b0 [ 62.426889] ____fput+0x16/0x20 [ 62.426901] task_work_run+0x145/0x1c0 [ 62.426913] do_exit+0xc1f/0x30d0 [ 62.426930] ? mm_update_next_owner+0x660/0x660 [ 62.426940] ? up_read+0x1a/0x110 [ 62.426952] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.426963] ? __do_page_fault+0x484/0xe90 [ 62.426980] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.426992] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.427005] do_group_exit+0x135/0x370 [ 62.427018] __x64_sys_exit_group+0x44/0x50 [ 62.427033] do_syscall_64+0xfd/0x620 [ 62.427048] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.427056] RIP: 0033:0x43ff38 [ 62.427066] 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 [ 62.427072] RSP: 002b:00007ffe3ff4b5d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 62.427082] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 62.427089] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 62.427096] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 62.427103] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 62.427109] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 62.428625] Kernel Offset: disabled