Warning: Permanently added '10.128.0.141' (ECDSA) to the list of known hosts. [ 50.032389] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 50.155132] audit: type=1400 audit(1583131787.402:36): avc: denied { map } for pid=7493 comm="syz-executor106" path="/root/syz-executor106631519" 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 [ 50.241109] ================================================================== [ 50.241176] BUG: KASAN: use-after-free in con_shutdown+0x7f/0x90 [ 50.241183] Write of size 8 at addr ffff88809f96e188 by task syz-executor106/7503 [ 50.241185] [ 50.241193] CPU: 0 PID: 7503 Comm: syz-executor106 Not tainted 4.14.172-syzkaller #0 [ 50.241198] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.241201] Call Trace: [ 50.241219] dump_stack+0x13e/0x194 [ 50.241229] ? con_shutdown+0x7f/0x90 [ 50.241241] print_address_description.cold+0x7c/0x1e2 [ 50.241250] ? con_shutdown+0x7f/0x90 [ 50.241257] kasan_report.cold+0xa9/0x2ae [ 50.241265] ? set_palette+0x130/0x130 [ 50.241273] con_shutdown+0x7f/0x90 [ 50.241288] release_tty+0xb6/0x7a0 [ 50.241297] tty_release_struct+0x37/0x50 [ 50.241305] tty_release+0xaa6/0xd60 [ 50.241319] ? tty_release_struct+0x50/0x50 [ 50.241326] __fput+0x25f/0x790 [ 50.241342] task_work_run+0x113/0x190 [ 50.241354] do_exit+0x9f2/0x2b00 [ 50.241365] ? __do_page_fault+0x4e4/0xb40 [ 50.241375] ? mm_update_next_owner+0x5b0/0x5b0 [ 50.241384] ? lock_downgrade+0x6e0/0x6e0 [ 50.241398] do_group_exit+0x100/0x310 [ 50.241408] SyS_exit_group+0x19/0x20 [ 50.241415] ? do_group_exit+0x310/0x310 [ 50.241423] do_syscall_64+0x1d5/0x640 [ 50.241436] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.241443] RIP: 0033:0x43ff38 [ 50.241448] RSP: 002b:00007ffcfd75f158 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 50.241458] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 50.241462] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 50.241467] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 50.241471] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 50.241476] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 50.241490] [ 50.241494] Allocated by task 7503: [ 50.241501] save_stack+0x32/0xa0 [ 50.241507] kasan_kmalloc+0xbf/0xe0 [ 50.241513] kmem_cache_alloc_trace+0x14d/0x7b0 [ 50.241520] vc_allocate+0x142/0x550 [ 50.241526] con_install+0x4f/0x3e0 [ 50.241533] tty_init_dev+0xe1/0x3a0 [ 50.241539] tty_open+0x410/0x9c0 [ 50.241553] chrdev_open+0x1fc/0x540 [ 50.241560] do_dentry_open+0x732/0xe90 [ 50.241567] vfs_open+0x105/0x220 [ 50.241572] path_openat+0x8ca/0x3c50 [ 50.241579] do_filp_open+0x18e/0x250 [ 50.241585] do_sys_open+0x29d/0x3f0 [ 50.241592] do_syscall_64+0x1d5/0x640 [ 50.241598] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.241601] [ 50.241604] Freed by task 7505: [ 50.241610] save_stack+0x32/0xa0 [ 50.241616] kasan_slab_free+0x75/0xc0 [ 50.241621] kfree+0xcb/0x260 [ 50.241629] vt_disallocate_all+0x25c/0x340 [ 50.241634] vt_ioctl+0x6e3/0x1f00 [ 50.241640] tty_ioctl+0x6c5/0x1220 [ 50.241647] do_vfs_ioctl+0x75a/0xfe0 [ 50.241654] SyS_ioctl+0x7f/0xb0 [ 50.241660] do_syscall_64+0x1d5/0x640 [ 50.241667] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.241669] [ 50.241675] The buggy address belongs to the object at ffff88809f96e080 [ 50.241675] which belongs to the cache kmalloc-2048 of size 2048 [ 50.241681] The buggy address is located 264 bytes inside of [ 50.241681] 2048-byte region [ffff88809f96e080, ffff88809f96e880) [ 50.241683] The buggy address belongs to the page: [ 50.241690] page:ffffea00027e5b80 count:1 mapcount:0 mapping:ffff88809f96e080 index:0x0 compound_mapcount: 0 [ 50.241701] flags: 0xfffe0000008100(slab|head) [ 50.241710] raw: 00fffe0000008100 ffff88809f96e080 0000000000000000 0000000100000003 [ 50.241719] raw: ffffea0002616fa0 ffffea00020bce20 ffff88812fe56c40 0000000000000000 [ 50.241722] page dumped because: kasan: bad access detected [ 50.241724] [ 50.241727] Memory state around the buggy address: [ 50.241733] ffff88809f96e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.241739] ffff88809f96e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.241745] >ffff88809f96e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.241748] ^ [ 50.241754] ffff88809f96e200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.241759] ffff88809f96e280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.241762] ================================================================== [ 50.241765] Disabling lock debugging due to kernel taint [ 50.241769] Kernel panic - not syncing: panic_on_warn set ... [ 50.241769] [ 50.241776] CPU: 0 PID: 7503 Comm: syz-executor106 Tainted: G B 4.14.172-syzkaller #0 [ 50.241779] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.241781] Call Trace: [ 50.241789] dump_stack+0x13e/0x194 [ 50.241797] panic+0x1f9/0x42d [ 50.241803] ? add_taint.cold+0x16/0x16 [ 50.241811] ? lock_downgrade+0x6e0/0x6e0 [ 50.241820] ? con_shutdown+0x7f/0x90 [ 50.241827] kasan_end_report+0x43/0x49 [ 50.241834] kasan_report.cold+0x12f/0x2ae [ 50.241841] ? set_palette+0x130/0x130 [ 50.241847] con_shutdown+0x7f/0x90 [ 50.241853] release_tty+0xb6/0x7a0 [ 50.241860] tty_release_struct+0x37/0x50 [ 50.241867] tty_release+0xaa6/0xd60 [ 50.241878] ? tty_release_struct+0x50/0x50 [ 50.241882] __fput+0x25f/0x790 [ 50.241891] task_work_run+0x113/0x190 [ 50.241898] do_exit+0x9f2/0x2b00 [ 50.241904] ? __do_page_fault+0x4e4/0xb40 [ 50.241911] ? mm_update_next_owner+0x5b0/0x5b0 [ 50.241918] ? lock_downgrade+0x6e0/0x6e0 [ 50.241928] do_group_exit+0x100/0x310 [ 50.241935] SyS_exit_group+0x19/0x20 [ 50.241941] ? do_group_exit+0x310/0x310 [ 50.241947] do_syscall_64+0x1d5/0x640 [ 50.241956] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.241960] RIP: 0033:0x43ff38 [ 50.241964] RSP: 002b:00007ffcfd75f158 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 50.241971] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 50.241975] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 50.241979] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 50.241983] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 50.241987] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 50.243586] Kernel Offset: disabled [ 50.829919] Rebooting in 86400 seconds..