[ 36.062156] audit: type=1800 audit(1584229512.821:33): pid=7324 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 36.089883] audit: type=1800 audit(1584229512.821:34): pid=7324 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 [ 37.266952] random: sshd: uninitialized urandom read (32 bytes read) syzkaller login: [ 37.531917] audit: type=1400 audit(1584229514.291:35): avc: denied { map } for pid=7497 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 37.609268] random: sshd: uninitialized urandom read (32 bytes read) [ 38.523018] random: sshd: uninitialized urandom read (32 bytes read) [ 43.267144] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.170' (ECDSA) to the list of known hosts. [ 48.958985] 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 executing program executing program executing program [ 49.086455] audit: type=1400 audit(1584229525.841:36): avc: denied { map } for pid=7509 comm="syz-executor943" path="/root/syz-executor943728578" 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 [ 49.167716] ================================================================== [ 49.167752] BUG: KASAN: use-after-free in con_shutdown+0x7f/0x90 [ 49.167758] Write of size 8 at addr ffff8880984e2708 by task syz-executor943/7526 [ 49.167761] [ 49.167769] CPU: 0 PID: 7526 Comm: syz-executor943 Not tainted 4.14.173-syzkaller #0 [ 49.167773] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.167777] Call Trace: [ 49.167789] dump_stack+0x13e/0x194 [ 49.167799] ? con_shutdown+0x7f/0x90 [ 49.167811] print_address_description.cold+0x7c/0x1e2 [ 49.167819] ? con_shutdown+0x7f/0x90 [ 49.167826] kasan_report.cold+0xa9/0x2ae [ 49.167834] ? set_palette+0x130/0x130 [ 49.167843] con_shutdown+0x7f/0x90 [ 49.167852] release_tty+0xb6/0x7a0 [ 49.167862] tty_release_struct+0x37/0x50 [ 49.167869] tty_release+0xaa6/0xd60 [ 49.167883] ? tty_release_struct+0x50/0x50 [ 49.167890] __fput+0x25f/0x790 [ 49.167904] task_work_run+0x113/0x190 [ 49.167917] do_exit+0x9f2/0x2b00 [ 49.167926] ? __do_page_fault+0x4e4/0xb40 [ 49.167936] ? mm_update_next_owner+0x5b0/0x5b0 [ 49.167946] ? lock_downgrade+0x6e0/0x6e0 [ 49.167959] do_group_exit+0x100/0x310 [ 49.167969] SyS_exit_group+0x19/0x20 [ 49.167975] ? do_group_exit+0x310/0x310 [ 49.167983] do_syscall_64+0x1d5/0x640 [ 49.167996] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.168004] RIP: 0033:0x43ff38 [ 49.168009] RSP: 002b:00007ffff813acf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 49.168018] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 49.168022] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 49.168027] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 49.168032] R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000000001 [ 49.168037] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 49.168059] [ 49.168064] Allocated by task 7526: [ 49.168076] save_stack+0x32/0xa0 [ 49.168082] kasan_kmalloc+0xbf/0xe0 [ 49.168088] kmem_cache_alloc_trace+0x14d/0x7b0 [ 49.168094] vc_allocate+0x142/0x550 [ 49.168100] con_install+0x4f/0x3e0 [ 49.168107] tty_init_dev+0xe1/0x3a0 [ 49.168113] tty_open+0x410/0x9c0 [ 49.168119] chrdev_open+0x1fc/0x540 [ 49.168126] do_dentry_open+0x732/0xe90 [ 49.168133] vfs_open+0x105/0x220 [ 49.168139] path_openat+0x8ca/0x3c50 [ 49.168146] do_filp_open+0x18e/0x250 [ 49.168152] do_sys_open+0x29d/0x3f0 [ 49.168158] do_syscall_64+0x1d5/0x640 [ 49.168165] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.168167] [ 49.168171] Freed by task 7525: [ 49.168176] save_stack+0x32/0xa0 [ 49.168183] kasan_slab_free+0x75/0xc0 [ 49.168188] kfree+0xcb/0x260 [ 49.168194] vt_disallocate_all+0x25c/0x340 [ 49.168200] vt_ioctl+0x6e3/0x1f00 [ 49.168205] tty_ioctl+0x6c5/0x1220 [ 49.168211] do_vfs_ioctl+0x75a/0xfe0 [ 49.168217] SyS_ioctl+0x7f/0xb0 [ 49.168223] do_syscall_64+0x1d5/0x640 [ 49.168230] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.168232] [ 49.168237] The buggy address belongs to the object at ffff8880984e2600 [ 49.168237] which belongs to the cache kmalloc-2048 of size 2048 [ 49.168242] The buggy address is located 264 bytes inside of [ 49.168242] 2048-byte region [ffff8880984e2600, ffff8880984e2e00) [ 49.168245] The buggy address belongs to the page: [ 49.168251] page:ffffea0002613880 count:1 mapcount:0 mapping:ffff8880984e2600 index:0x0 compound_mapcount: 0 [ 49.168262] flags: 0xfffe0000008100(slab|head) [ 49.168273] raw: 00fffe0000008100 ffff8880984e2600 0000000000000000 0000000100000003 [ 49.168280] raw: ffffea0002567aa0 ffffea00025752a0 ffff88812fe56c40 0000000000000000 [ 49.168283] page dumped because: kasan: bad access detected [ 49.168284] [ 49.168287] Memory state around the buggy address: [ 49.168292] ffff8880984e2600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.168297] ffff8880984e2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.168303] >ffff8880984e2700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.168306] ^ [ 49.168312] ffff8880984e2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.168317] ffff8880984e2800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.168323] ================================================================== [ 49.168326] Disabling lock debugging due to kernel taint [ 49.168381] Kernel panic - not syncing: panic_on_warn set ... [ 49.168381] [ 49.168388] CPU: 0 PID: 7526 Comm: syz-executor943 Tainted: G B 4.14.173-syzkaller #0 [ 49.168391] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.168393] Call Trace: [ 49.168402] dump_stack+0x13e/0x194 [ 49.168409] panic+0x1f9/0x42d [ 49.168415] ? add_taint.cold+0x16/0x16 [ 49.168422] ? preempt_schedule_common+0x4a/0xc0 [ 49.168429] ? con_shutdown+0x7f/0x90 [ 49.168435] ? ___preempt_schedule+0x16/0x18 [ 49.168445] ? con_shutdown+0x7f/0x90 [ 49.168451] kasan_end_report+0x43/0x49 [ 49.168457] kasan_report.cold+0x12f/0x2ae [ 49.168463] ? set_palette+0x130/0x130 [ 49.168470] con_shutdown+0x7f/0x90 [ 49.168476] release_tty+0xb6/0x7a0 [ 49.168482] tty_release_struct+0x37/0x50 [ 49.168488] tty_release+0xaa6/0xd60 [ 49.168497] ? tty_release_struct+0x50/0x50 [ 49.168502] __fput+0x25f/0x790 [ 49.168511] task_work_run+0x113/0x190 [ 49.168537] do_exit+0x9f2/0x2b00 [ 49.168544] ? __do_page_fault+0x4e4/0xb40 [ 49.168551] ? mm_update_next_owner+0x5b0/0x5b0 [ 49.168559] ? lock_downgrade+0x6e0/0x6e0 [ 49.168574] do_group_exit+0x100/0x310 [ 49.168581] SyS_exit_group+0x19/0x20 [ 49.168586] ? do_group_exit+0x310/0x310 [ 49.168592] do_syscall_64+0x1d5/0x640 [ 49.168601] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.168605] RIP: 0033:0x43ff38 [ 49.168609] RSP: 002b:00007ffff813acf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 49.168615] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 49.168619] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 49.168622] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 49.168626] R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000000001 [ 49.168630] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 49.169834] Kernel Offset: disabled [ 49.764910] Rebooting in 86400 seconds..