[ 34.298639] audit: type=1800 audit(1581140288.454:33): pid=7207 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 [ 34.325829] audit: type=1800 audit(1581140288.464:34): pid=7207 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 syzkaller login: [ 38.908533] random: sshd: uninitialized urandom read (32 bytes read) [ 39.350100] audit: type=1400 audit(1581140293.504:35): avc: denied { map } for pid=7380 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 [ 39.413374] random: sshd: uninitialized urandom read (32 bytes read) [ 40.224982] random: sshd: uninitialized urandom read (32 bytes read) [ 40.454904] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.191' (ECDSA) to the list of known hosts. [ 46.084735] 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 [ 46.217032] audit: type=1400 audit(1581140300.374:36): avc: denied { map } for pid=7392 comm="syz-executor439" path="/root/syz-executor439881086" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 46.512146] ================================================================== [ 46.512177] BUG: KASAN: use-after-free in con_shutdown+0x85/0x90 [ 46.512183] Write of size 8 at addr ffff888099679748 by task syz-executor439/7442 [ 46.512185] [ 46.512194] CPU: 1 PID: 7442 Comm: syz-executor439 Not tainted 4.14.170-syzkaller #0 [ 46.512198] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.512202] Call Trace: [ 46.512214] dump_stack+0x142/0x197 [ 46.512225] ? con_shutdown+0x85/0x90 [ 46.512235] print_address_description.cold+0x7c/0x1dc [ 46.512243] ? con_shutdown+0x85/0x90 [ 46.512251] kasan_report.cold+0xa9/0x2af [ 46.512260] ? set_palette+0x140/0x140 [ 46.512267] __asan_report_store8_noabort+0x17/0x20 [ 46.512274] con_shutdown+0x85/0x90 [ 46.512284] release_tty+0xbf/0x7c0 [ 46.512293] tty_release_struct+0x3c/0x50 [ 46.512301] tty_release+0xaa3/0xd60 [ 46.512315] ? tty_release_struct+0x50/0x50 [ 46.512322] __fput+0x275/0x7a0 [ 46.512334] ____fput+0x16/0x20 [ 46.512343] task_work_run+0x114/0x190 [ 46.512353] do_exit+0xa1a/0x2cd0 [ 46.512362] ? mm_update_next_owner+0x5d0/0x5d0 [ 46.512373] ? up_read+0x1a/0x40 [ 46.512379] ? __do_page_fault+0x358/0xb80 [ 46.512388] do_group_exit+0x111/0x330 [ 46.512398] SyS_exit_group+0x1d/0x20 [ 46.512405] ? do_group_exit+0x330/0x330 [ 46.512414] do_syscall_64+0x1e8/0x640 [ 46.512423] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.512436] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.512443] RIP: 0033:0x43ff38 [ 46.512447] RSP: 002b:00007fff31bca1f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.512455] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 46.512464] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 46.512469] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 46.512473] R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000000001 [ 46.512477] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 46.512491] [ 46.512495] Allocated by task 7442: [ 46.512505] save_stack_trace+0x16/0x20 [ 46.512511] save_stack+0x45/0xd0 [ 46.512517] kasan_kmalloc+0xce/0xf0 [ 46.512523] kmem_cache_alloc_trace+0x152/0x790 [ 46.512530] vc_allocate+0x148/0x580 [ 46.512537] con_install+0x52/0x400 [ 46.512544] tty_init_dev+0xea/0x3a0 [ 46.512551] tty_open+0x414/0xa10 [ 46.512557] chrdev_open+0x207/0x590 [ 46.512565] do_dentry_open+0x73b/0xeb0 [ 46.512570] vfs_open+0x105/0x220 [ 46.512577] path_openat+0x917/0x3e50 [ 46.512582] do_filp_open+0x18e/0x250 [ 46.512588] do_sys_open+0x2c5/0x430 [ 46.512594] SyS_open+0x2d/0x40 [ 46.512600] do_syscall_64+0x1e8/0x640 [ 46.512607] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.512609] [ 46.512612] Freed by task 7443: [ 46.512618] save_stack_trace+0x16/0x20 [ 46.512623] save_stack+0x45/0xd0 [ 46.512629] kasan_slab_free+0x75/0xc0 [ 46.512634] kfree+0xcc/0x270 [ 46.512640] vt_disallocate_all+0x286/0x380 [ 46.512645] vt_ioctl+0x76b/0x2170 [ 46.512650] tty_ioctl+0x841/0x1320 [ 46.512656] do_vfs_ioctl+0x7ae/0x1060 [ 46.512662] SyS_ioctl+0x8f/0xc0 [ 46.512668] do_syscall_64+0x1e8/0x640 [ 46.512675] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.512677] [ 46.512683] The buggy address belongs to the object at ffff888099679640 [ 46.512683] which belongs to the cache kmalloc-2048 of size 2048 [ 46.512688] The buggy address is located 264 bytes inside of [ 46.512688] 2048-byte region [ffff888099679640, ffff888099679e40) [ 46.512690] The buggy address belongs to the page: [ 46.512697] page:ffffea0002659e00 count:1 mapcount:0 mapping:ffff888099678540 index:0x0 compound_mapcount: 0 [ 46.512708] flags: 0xfffe0000008100(slab|head) [ 46.512718] raw: 00fffe0000008100 ffff888099678540 0000000000000000 0000000100000003 [ 46.512726] raw: ffffea00026585a0 ffffea00021db8a0 ffff8880aa800c40 0000000000000000 [ 46.512730] page dumped because: kasan: bad access detected [ 46.512739] [ 46.512741] Memory state around the buggy address: [ 46.512746] ffff888099679600: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 46.512751] ffff888099679680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.512755] >ffff888099679700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.512758] ^ [ 46.512762] ffff888099679780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.512766] ffff888099679800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.512769] ================================================================== [ 46.512772] Disabling lock debugging due to kernel taint [ 46.512776] Kernel panic - not syncing: panic_on_warn set ... [ 46.512776] [ 46.512783] CPU: 1 PID: 7442 Comm: syz-executor439 Tainted: G B 4.14.170-syzkaller #0 [ 46.512786] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.512788] Call Trace: [ 46.512797] dump_stack+0x142/0x197 [ 46.512804] ? con_shutdown+0x85/0x90 [ 46.512809] panic+0x1f9/0x42d [ 46.512814] ? add_taint.cold+0x16/0x16 [ 46.512822] ? lock_downgrade+0x740/0x740 [ 46.512832] kasan_end_report+0x47/0x4f [ 46.512838] kasan_report.cold+0x130/0x2af [ 46.512845] ? set_palette+0x140/0x140 [ 46.512852] __asan_report_store8_noabort+0x17/0x20 [ 46.512858] con_shutdown+0x85/0x90 [ 46.512865] release_tty+0xbf/0x7c0 [ 46.512872] tty_release_struct+0x3c/0x50 [ 46.512878] tty_release+0xaa3/0xd60 [ 46.512886] ? tty_release_struct+0x50/0x50 [ 46.512892] __fput+0x275/0x7a0 [ 46.512901] ____fput+0x16/0x20 [ 46.512908] task_work_run+0x114/0x190 [ 46.512917] do_exit+0xa1a/0x2cd0 [ 46.512926] ? mm_update_next_owner+0x5d0/0x5d0 [ 46.512934] ? up_read+0x1a/0x40 [ 46.512939] ? __do_page_fault+0x358/0xb80 [ 46.512947] do_group_exit+0x111/0x330 [ 46.512955] SyS_exit_group+0x1d/0x20 [ 46.512960] ? do_group_exit+0x330/0x330 [ 46.512967] do_syscall_64+0x1e8/0x640 [ 46.512974] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.512983] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.512987] RIP: 0033:0x43ff38 [ 46.512991] RSP: 002b:00007fff31bca1f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.512998] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 46.513002] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 46.513011] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 46.513015] R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000000001 [ 46.513018] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 46.514497] Kernel Offset: disabled [ 47.140489] Rebooting in 86400 seconds..