Warning: Permanently added '10.128.0.141' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program [ 51.880184] audit: type=1400 audit(1578536111.284:36): avc: denied { map } for pid=8025 comm="syz-executor162" path="/root/syz-executor162128734" 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 executing program executing program executing program [ 51.985651] ================================================================== [ 51.985687] BUG: KASAN: use-after-free in con_shutdown+0x85/0x90 [ 51.985700] Write of size 8 at addr ffff8880844981c8 by task syz-executor162/8040 [ 51.985703] [ 51.985718] CPU: 0 PID: 8040 Comm: syz-executor162 Not tainted 4.19.93-syzkaller #0 [ 51.985727] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.985732] Call Trace: [ 51.985749] dump_stack+0x197/0x210 [ 51.985768] ? con_shutdown+0x85/0x90 [ 51.985787] print_address_description.cold+0x7c/0x20d [ 51.985805] ? con_shutdown+0x85/0x90 [ 51.985821] kasan_report.cold+0x8c/0x2ba [ 51.985837] ? set_palette+0x1c0/0x1c0 [ 51.985856] __asan_report_store8_noabort+0x17/0x20 [ 51.985870] con_shutdown+0x85/0x90 [ 51.985893] release_tty+0xe4/0x4d0 [ 51.985912] tty_release_struct+0x3c/0x50 [ 51.985928] tty_release+0xbcb/0xe90 [ 51.985951] ? tty_release_struct+0x50/0x50 [ 51.985965] __fput+0x2dd/0x8b0 [ 51.985988] ____fput+0x16/0x20 [ 51.986004] task_work_run+0x145/0x1c0 [ 51.986031] do_exit+0x994/0x3080 [ 51.986056] ? mm_update_next_owner+0x660/0x660 [ 51.986071] ? up_read+0x1a/0x110 [ 51.986087] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.986102] ? __do_page_fault+0x484/0xe90 [ 51.986123] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.986138] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.986157] do_group_exit+0x135/0x370 [ 51.986177] __x64_sys_exit_group+0x44/0x50 [ 51.986193] do_syscall_64+0xfd/0x620 [ 51.986213] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.986223] RIP: 0033:0x43ff38 [ 51.986238] 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 [ 51.986246] RSP: 002b:00007ffe069d20d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 51.986259] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 51.986267] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 51.986276] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 51.986283] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 51.986292] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 51.986312] [ 51.986319] Allocated by task 8040: [ 51.986332] save_stack+0x45/0xd0 [ 51.986345] kasan_kmalloc+0xce/0xf0 [ 51.986357] kmem_cache_alloc_trace+0x152/0x760 [ 51.986370] vc_allocate+0x1f5/0x760 [ 51.986383] con_install+0x52/0x410 [ 51.986395] tty_init_dev+0xf7/0x460 [ 51.986407] tty_open+0x4bf/0xb70 [ 51.986418] chrdev_open+0x245/0x6b0 [ 51.986429] do_dentry_open+0x4c3/0x1210 [ 51.986440] vfs_open+0xa0/0xd0 [ 51.986450] path_openat+0x10d7/0x45e0 [ 51.986460] do_filp_open+0x1a1/0x280 [ 51.986470] do_sys_open+0x3fe/0x550 [ 51.986480] __x64_sys_open+0x7e/0xc0 [ 51.986493] do_syscall_64+0xfd/0x620 [ 51.986506] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.986509] [ 51.986515] Freed by task 8041: [ 51.986526] save_stack+0x45/0xd0 [ 51.986538] __kasan_slab_free+0x102/0x150 [ 51.986550] kasan_slab_free+0xe/0x10 [ 51.986560] kfree+0xcf/0x220 [ 51.986572] vt_disallocate_all+0x2bd/0x3e0 [ 51.986582] vt_ioctl+0xc38/0x2530 [ 51.986594] tty_ioctl+0x7f3/0x1510 [ 51.986605] do_vfs_ioctl+0xd5f/0x1380 [ 51.986617] ksys_ioctl+0xab/0xd0 [ 51.986628] __x64_sys_ioctl+0x73/0xb0 [ 51.986641] do_syscall_64+0xfd/0x620 [ 51.986654] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.986657] [ 51.986667] The buggy address belongs to the object at ffff8880844980c0 [ 51.986667] which belongs to the cache kmalloc-2048 of size 2048 [ 51.986679] The buggy address is located 264 bytes inside of [ 51.986679] 2048-byte region [ffff8880844980c0, ffff8880844988c0) [ 51.986684] The buggy address belongs to the page: [ 51.986697] page:ffffea0002112600 count:1 mapcount:0 mapping:ffff88812c31cc40 index:0x0 compound_mapcount: 0 [ 51.986712] flags: 0xfffe0000008100(slab|head) [ 51.986730] raw: 00fffe0000008100 ffffea0002806b08 ffffea0002115908 ffff88812c31cc40 [ 51.986746] raw: 0000000000000000 ffff8880844980c0 0000000100000003 0000000000000000 [ 51.986752] page dumped because: kasan: bad access detected [ 51.986755] [ 51.986772] Memory state around the buggy address: [ 51.986783] ffff888084498080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 51.986793] ffff888084498100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.986804] >ffff888084498180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.986809] ^ [ 51.986819] ffff888084498200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.986829] ffff888084498280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.986834] ================================================================== [ 51.986839] Disabling lock debugging due to kernel taint [ 51.986876] Kernel panic - not syncing: panic_on_warn set ... [ 51.986876] [ 51.986890] CPU: 0 PID: 8040 Comm: syz-executor162 Tainted: G B 4.19.93-syzkaller #0 [ 51.986897] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.986901] Call Trace: [ 51.986914] dump_stack+0x197/0x210 [ 51.986930] ? con_shutdown+0x85/0x90 [ 51.986940] panic+0x26a/0x50e [ 51.986951] ? __warn_printk+0xf3/0xf3 [ 51.986963] ? con_shutdown+0x85/0x90 [ 51.986980] ? trace_hardirqs_on+0x5e/0x220 [ 51.986992] ? trace_hardirqs_on+0x5e/0x220 [ 51.987007] ? con_shutdown+0x85/0x90 [ 51.987025] kasan_end_report+0x47/0x4f [ 51.987040] kasan_report.cold+0xa9/0x2ba [ 51.987053] ? set_palette+0x1c0/0x1c0 [ 51.987069] __asan_report_store8_noabort+0x17/0x20 [ 51.987083] con_shutdown+0x85/0x90 [ 51.987096] release_tty+0xe4/0x4d0 [ 51.987111] tty_release_struct+0x3c/0x50 [ 51.987124] tty_release+0xbcb/0xe90 [ 51.987141] ? tty_release_struct+0x50/0x50 [ 51.987154] __fput+0x2dd/0x8b0 [ 51.987170] ____fput+0x16/0x20 [ 51.987182] task_work_run+0x145/0x1c0 [ 51.987196] do_exit+0x994/0x3080 [ 51.987213] ? mm_update_next_owner+0x660/0x660 [ 51.987226] ? up_read+0x1a/0x110 [ 51.987239] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.987253] ? __do_page_fault+0x484/0xe90 [ 51.987269] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.987284] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.987298] do_group_exit+0x135/0x370 [ 51.987313] __x64_sys_exit_group+0x44/0x50 [ 51.987327] do_syscall_64+0xfd/0x620 [ 51.987342] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.987351] RIP: 0033:0x43ff38 [ 51.987364] 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 [ 51.987371] RSP: 002b:00007ffe069d20d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 51.987384] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 51.987391] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 51.987399] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 51.987407] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 51.987415] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 51.988822] Kernel Offset: disabled [ 52.674142] Rebooting in 86400 seconds..