Warning: Permanently added '10.128.0.154' (ECDSA) to the list of known hosts. [ 52.146181] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program [ 52.258022] audit: type=1400 audit(1585032986.927:36): avc: denied { map } for pid=7186 comm="syz-executor219" path="/root/syz-executor219066317" 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 [ 52.302198] ================================================================== [ 52.302229] BUG: KASAN: use-after-free in con_shutdown+0x7f/0x90 [ 52.302236] Write of size 8 at addr ffff88808c60e3c8 by task syz-executor219/7194 [ 52.302238] [ 52.302245] CPU: 0 PID: 7194 Comm: syz-executor219 Not tainted 4.14.174-syzkaller #0 [ 52.302249] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.302252] Call Trace: [ 52.302263] dump_stack+0x13e/0x194 [ 52.302270] ? con_shutdown+0x7f/0x90 [ 52.302280] print_address_description.cold+0x7c/0x1e2 [ 52.302288] ? con_shutdown+0x7f/0x90 [ 52.302294] kasan_report.cold+0xa9/0x2ae [ 52.302300] ? set_palette+0x130/0x130 [ 52.302305] con_shutdown+0x7f/0x90 [ 52.302312] release_tty+0xb6/0x7a0 [ 52.302318] tty_release_struct+0x37/0x50 [ 52.302324] tty_release+0xaa6/0xd60 [ 52.302333] ? tty_release_struct+0x50/0x50 [ 52.302339] __fput+0x25f/0x790 [ 52.302349] task_work_run+0x113/0x190 [ 52.302358] do_exit+0x9f2/0x2b00 [ 52.302365] ? __do_page_fault+0x4e4/0xb40 [ 52.302372] ? mm_update_next_owner+0x5b0/0x5b0 [ 52.302379] ? lock_downgrade+0x6e0/0x6e0 [ 52.302389] do_group_exit+0x100/0x310 [ 52.302395] SyS_exit_group+0x19/0x20 [ 52.302400] ? do_group_exit+0x310/0x310 [ 52.302406] do_syscall_64+0x1d5/0x640 [ 52.302415] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 52.302420] RIP: 0033:0x440018 [ 52.302423] RSP: 002b:00007ffc6f0a21e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 52.302429] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440018 [ 52.302433] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 52.302436] RBP: 00000000004bfa70 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 52.302439] R10: 000000000000000e R11: 0000000000000246 R12: 0000000000000001 [ 52.302442] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 52.302450] [ 52.302453] Allocated by task 7194: [ 52.302458] save_stack+0x32/0xa0 [ 52.302462] kasan_kmalloc+0xbf/0xe0 [ 52.302467] kmem_cache_alloc_trace+0x14d/0x7b0 [ 52.302472] vc_allocate+0x142/0x550 [ 52.302476] con_install+0x4f/0x3e0 [ 52.302480] tty_init_dev+0xe1/0x3a0 [ 52.302484] tty_open+0x410/0x9c0 [ 52.302489] chrdev_open+0x1fc/0x540 [ 52.302494] do_dentry_open+0x732/0xe90 [ 52.302499] vfs_open+0x105/0x220 [ 52.302504] path_openat+0x8ca/0x3c50 [ 52.302508] do_filp_open+0x18e/0x250 [ 52.302512] do_sys_open+0x29d/0x3f0 [ 52.302516] do_syscall_64+0x1d5/0x640 [ 52.302521] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 52.302522] [ 52.302525] Freed by task 7195: [ 52.302528] save_stack+0x32/0xa0 [ 52.302532] kasan_slab_free+0x75/0xc0 [ 52.302536] kfree+0xcb/0x260 [ 52.302540] vt_disallocate_all+0x25c/0x340 [ 52.302544] vt_ioctl+0x6e3/0x1f00 [ 52.302548] tty_ioctl+0x6c5/0x1220 [ 52.302552] do_vfs_ioctl+0x75a/0xfe0 [ 52.302556] SyS_ioctl+0x7f/0xb0 [ 52.302560] do_syscall_64+0x1d5/0x640 [ 52.302565] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 52.302566] [ 52.302570] The buggy address belongs to the object at ffff88808c60e2c0 [ 52.302570] which belongs to the cache kmalloc-2048 of size 2048 [ 52.302575] The buggy address is located 264 bytes inside of [ 52.302575] 2048-byte region [ffff88808c60e2c0, ffff88808c60eac0) [ 52.302577] The buggy address belongs to the page: [ 52.302581] page:ffffea0002318380 count:1 mapcount:0 mapping:ffff88808c60e2c0 index:0x0 compound_mapcount: 0 [ 52.302588] flags: 0xfffe0000008100(slab|head) [ 52.302595] raw: 00fffe0000008100 ffff88808c60e2c0 0000000000000000 0000000100000003 [ 52.302600] raw: ffffea0002043620 ffffea000282b9a0 ffff88812fe56c40 0000000000000000 [ 52.302603] page dumped because: kasan: bad access detected [ 52.302604] [ 52.302606] Memory state around the buggy address: [ 52.302610] ffff88808c60e280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 52.302614] ffff88808c60e300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.302618] >ffff88808c60e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.302620] ^ [ 52.302624] ffff88808c60e400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.302628] ffff88808c60e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.302630] ================================================================== [ 52.302632] Disabling lock debugging due to kernel taint [ 52.302635] Kernel panic - not syncing: panic_on_warn set ... [ 52.302635] [ 52.302639] CPU: 0 PID: 7194 Comm: syz-executor219 Tainted: G B 4.14.174-syzkaller #0 [ 52.302642] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.302643] Call Trace: [ 52.302648] dump_stack+0x13e/0x194 [ 52.302654] panic+0x1f9/0x42d [ 52.302658] ? add_taint.cold+0x16/0x16 [ 52.302663] ? lock_downgrade+0x6e0/0x6e0 [ 52.302670] ? con_shutdown+0x7f/0x90 [ 52.302674] kasan_end_report+0x43/0x49 [ 52.302679] kasan_report.cold+0x12f/0x2ae [ 52.302683] ? set_palette+0x130/0x130 [ 52.302688] con_shutdown+0x7f/0x90 [ 52.302692] release_tty+0xb6/0x7a0 [ 52.302703] tty_release_struct+0x37/0x50 [ 52.302708] tty_release+0xaa6/0xd60 [ 52.302715] ? tty_release_struct+0x50/0x50 [ 52.302718] __fput+0x25f/0x790 [ 52.302725] task_work_run+0x113/0x190 [ 52.302731] do_exit+0x9f2/0x2b00 [ 52.302735] ? __do_page_fault+0x4e4/0xb40 [ 52.302741] ? mm_update_next_owner+0x5b0/0x5b0 [ 52.302746] ? lock_downgrade+0x6e0/0x6e0 [ 52.302752] do_group_exit+0x100/0x310 [ 52.302758] SyS_exit_group+0x19/0x20 [ 52.302762] ? do_group_exit+0x310/0x310 [ 52.302766] do_syscall_64+0x1d5/0x640 [ 52.302772] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 52.302775] RIP: 0033:0x440018 [ 52.302782] RSP: 002b:00007ffc6f0a21e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 52.302787] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440018 [ 52.302790] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 52.302792] RBP: 00000000004bfa70 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 52.302795] R10: 000000000000000e R11: 0000000000000246 R12: 0000000000000001 [ 52.302797] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 52.304101] Kernel Offset: disabled [ 52.889918] Rebooting in 86400 seconds..