[ 31.425568] audit: type=1800 audit(1575436317.946:33): pid=6951 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 [ 31.452471] audit: type=1800 audit(1575436317.946:34): pid=6951 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: [ 35.465451] random: sshd: uninitialized urandom read (32 bytes read) [ 35.846330] audit: type=1400 audit(1575436322.366:35): avc: denied { map } for pid=7123 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 [ 35.916342] random: sshd: uninitialized urandom read (32 bytes read) [ 36.502753] random: sshd: uninitialized urandom read (32 bytes read) [ 36.731021] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.49' (ECDSA) to the list of known hosts. [ 42.329838] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program [ 42.452849] audit: type=1400 audit(1575436328.976:36): avc: denied { map } for pid=7135 comm="syz-executor141" path="/root/syz-executor141973438" 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 [ 42.506101] ================================================================== [ 42.506130] BUG: KASAN: use-after-free in con_shutdown+0x85/0x90 [ 42.506136] Write of size 8 at addr ffff88808af88ec8 by task syz-executor141/7146 [ 42.506138] [ 42.506146] CPU: 0 PID: 7146 Comm: syz-executor141 Not tainted 4.14.157-syzkaller #0 [ 42.506150] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.506154] Call Trace: [ 42.506164] dump_stack+0x142/0x197 [ 42.506179] ? con_shutdown+0x85/0x90 [ 42.506201] print_address_description.cold+0x7c/0x1dc [ 42.506210] ? con_shutdown+0x85/0x90 [ 42.506216] kasan_report.cold+0xa9/0x2af [ 42.506224] ? set_palette+0x140/0x140 [ 42.506232] __asan_report_store8_noabort+0x17/0x20 [ 42.506238] con_shutdown+0x85/0x90 [ 42.506246] release_tty+0xbf/0x7c0 [ 42.506255] tty_release_struct+0x3c/0x50 [ 42.506262] tty_release+0xaa3/0xd60 [ 42.506274] ? tty_release_struct+0x50/0x50 [ 42.506281] __fput+0x275/0x7a0 [ 42.506292] ____fput+0x16/0x20 [ 42.506299] task_work_run+0x114/0x190 [ 42.506311] do_exit+0x7df/0x2ce0 [ 42.506324] ? mm_update_next_owner+0x5d0/0x5d0 [ 42.506338] ? up_read+0x1a/0x40 [ 42.506345] ? __do_page_fault+0x358/0xb80 [ 42.506353] do_group_exit+0x111/0x330 [ 42.506362] SyS_exit_group+0x1d/0x20 [ 42.506368] ? do_group_exit+0x330/0x330 [ 42.506376] do_syscall_64+0x1e8/0x640 [ 42.506383] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.506397] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.506403] RIP: 0033:0x43ff48 [ 42.506407] RSP: 002b:00007ffe8662a9f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 42.506416] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff48 [ 42.506420] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 42.506425] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 42.506430] R10: 000000000000000e R11: 0000000000000246 R12: 0000000000000001 [ 42.506433] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 42.506445] [ 42.506449] Allocated by task 7146: [ 42.506457] save_stack_trace+0x16/0x20 [ 42.506462] save_stack+0x45/0xd0 [ 42.506467] kasan_kmalloc+0xce/0xf0 [ 42.506473] kmem_cache_alloc_trace+0x152/0x790 [ 42.506477] vc_allocate+0x148/0x580 [ 42.506481] con_install+0x52/0x400 [ 42.506486] tty_init_dev+0xea/0x3a0 [ 42.506491] tty_open+0x414/0xa10 [ 42.506497] chrdev_open+0x207/0x590 [ 42.506504] do_dentry_open+0x73b/0xeb0 [ 42.506510] vfs_open+0x105/0x220 [ 42.506517] path_openat+0x8bd/0x3f70 [ 42.506522] do_filp_open+0x18e/0x250 [ 42.506527] do_sys_open+0x2c5/0x430 [ 42.506532] SyS_open+0x2d/0x40 [ 42.506538] do_syscall_64+0x1e8/0x640 [ 42.506545] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.506547] [ 42.506550] Freed by task 7151: [ 42.506556] save_stack_trace+0x16/0x20 [ 42.506561] save_stack+0x45/0xd0 [ 42.506566] kasan_slab_free+0x75/0xc0 [ 42.506570] kfree+0xcc/0x270 [ 42.506576] vt_disallocate_all+0x286/0x380 [ 42.506581] vt_ioctl+0x76b/0x2170 [ 42.506587] tty_ioctl+0x841/0x1320 [ 42.506593] do_vfs_ioctl+0x7ae/0x1060 [ 42.506599] SyS_ioctl+0x8f/0xc0 [ 42.506605] do_syscall_64+0x1e8/0x640 [ 42.506611] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.506613] [ 42.506618] The buggy address belongs to the object at ffff88808af88dc0 [ 42.506618] which belongs to the cache kmalloc-2048 of size 2048 [ 42.506624] The buggy address is located 264 bytes inside of [ 42.506624] 2048-byte region [ffff88808af88dc0, ffff88808af895c0) [ 42.506627] The buggy address belongs to the page: [ 42.506633] page:ffffea00022be200 count:1 mapcount:0 mapping:ffff88808af88540 index:0x0 compound_mapcount: 0 [ 42.506644] flags: 0xfffe0000008100(slab|head) [ 42.506654] raw: 00fffe0000008100 ffff88808af88540 0000000000000000 0000000100000003 [ 42.506661] raw: ffffea00020a57a0 ffffea00022ba420 ffff8880aa800c40 0000000000000000 [ 42.506664] page dumped because: kasan: bad access detected [ 42.506666] [ 42.506668] Memory state around the buggy address: [ 42.506674] ffff88808af88d80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 42.506680] ffff88808af88e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.506685] >ffff88808af88e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.506688] ^ [ 42.506693] ffff88808af88f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.506698] ffff88808af88f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.506701] ================================================================== [ 42.506704] Disabling lock debugging due to kernel taint [ 42.507891] Kernel panic - not syncing: panic_on_warn set ... [ 42.507891] [ 42.507899] CPU: 0 PID: 7146 Comm: syz-executor141 Tainted: G B 4.14.157-syzkaller #0 [ 42.507902] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.507905] Call Trace: [ 42.507921] dump_stack+0x142/0x197 [ 42.507932] ? con_shutdown+0x85/0x90 [ 42.507942] panic+0x1f9/0x42d [ 42.507948] ? add_taint.cold+0x16/0x16 [ 42.507957] ? ___preempt_schedule+0x16/0x18 [ 42.507969] kasan_end_report+0x47/0x4f [ 42.507976] kasan_report.cold+0x130/0x2af [ 42.507982] ? set_palette+0x140/0x140 [ 42.507989] __asan_report_store8_noabort+0x17/0x20 [ 42.507995] con_shutdown+0x85/0x90 [ 42.508003] release_tty+0xbf/0x7c0 [ 42.508011] tty_release_struct+0x3c/0x50 [ 42.508018] tty_release+0xaa3/0xd60 [ 42.508027] ? tty_release_struct+0x50/0x50 [ 42.508035] __fput+0x275/0x7a0 [ 42.508043] ____fput+0x16/0x20 [ 42.508050] task_work_run+0x114/0x190 [ 42.508059] do_exit+0x7df/0x2ce0 [ 42.508069] ? mm_update_next_owner+0x5d0/0x5d0 [ 42.508079] ? up_read+0x1a/0x40 [ 42.508085] ? __do_page_fault+0x358/0xb80 [ 42.508092] do_group_exit+0x111/0x330 [ 42.508097] SyS_exit_group+0x1d/0x20 [ 42.508101] ? do_group_exit+0x330/0x330 [ 42.508107] do_syscall_64+0x1e8/0x640 [ 42.508111] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.508120] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.508125] RIP: 0033:0x43ff48 [ 42.508127] RSP: 002b:00007ffe8662a9f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 42.508134] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff48 [ 42.508137] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 42.508140] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 42.508142] R10: 000000000000000e R11: 0000000000000246 R12: 0000000000000001 [ 42.508145] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 42.509668] Kernel Offset: disabled [ 43.134952] Rebooting in 86400 seconds..