[ 38.117990] audit: type=1800 audit(1583646469.418:33): pid=7427 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 [ 38.140206] audit: type=1800 audit(1583646469.418:34): pid=7427 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: [ 39.665490] random: sshd: uninitialized urandom read (32 bytes read) [ 39.981754] audit: type=1400 audit(1583646471.288:35): avc: denied { map } for pid=7599 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 [ 40.027879] random: sshd: uninitialized urandom read (32 bytes read) [ 40.788952] random: sshd: uninitialized urandom read (32 bytes read) [ 40.997394] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.193' (ECDSA) to the list of known hosts. [ 46.569165] 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 [ 46.695747] audit: type=1400 audit(1583646477.998:36): avc: denied { map } for pid=7611 comm="syz-executor488" path="/root/syz-executor488897406" 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 [ 46.775998] ================================================================== [ 46.776032] BUG: KASAN: use-after-free in con_shutdown+0x7f/0x90 [ 46.776039] Write of size 8 at addr ffff8880885e8b08 by task syz-executor488/7627 [ 46.776042] [ 46.776051] CPU: 1 PID: 7627 Comm: syz-executor488 Not tainted 4.14.172-syzkaller #0 [ 46.776056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.776059] Call Trace: [ 46.776072] dump_stack+0x13e/0x194 [ 46.776082] ? con_shutdown+0x7f/0x90 [ 46.776092] print_address_description.cold+0x7c/0x1e2 [ 46.776101] ? con_shutdown+0x7f/0x90 [ 46.776108] kasan_report.cold+0xa9/0x2ae [ 46.776116] ? set_palette+0x130/0x130 [ 46.776125] con_shutdown+0x7f/0x90 [ 46.776134] release_tty+0xb6/0x7a0 [ 46.776144] tty_release_struct+0x37/0x50 [ 46.776151] tty_release+0xaa6/0xd60 [ 46.776164] ? tty_release_struct+0x50/0x50 [ 46.776172] __fput+0x25f/0x790 [ 46.776188] task_work_run+0x113/0x190 [ 46.776200] do_exit+0x9f2/0x2b00 [ 46.776210] ? __do_page_fault+0x4e4/0xb40 [ 46.776220] ? mm_update_next_owner+0x5b0/0x5b0 [ 46.776231] ? lock_downgrade+0x6e0/0x6e0 [ 46.776245] do_group_exit+0x100/0x310 [ 46.776255] SyS_exit_group+0x19/0x20 [ 46.776262] ? do_group_exit+0x310/0x310 [ 46.776270] do_syscall_64+0x1d5/0x640 [ 46.776285] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.776292] RIP: 0033:0x43ff38 [ 46.776296] RSP: 002b:00007ffc251d2328 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.776305] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 46.776310] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 46.776315] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 46.776319] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 46.776323] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 46.776336] [ 46.776340] Allocated by task 7627: [ 46.776347] save_stack+0x32/0xa0 [ 46.776353] kasan_kmalloc+0xbf/0xe0 [ 46.776360] kmem_cache_alloc_trace+0x14d/0x7b0 [ 46.776366] vc_allocate+0x142/0x550 [ 46.776372] con_install+0x4f/0x3e0 [ 46.776379] tty_init_dev+0xe1/0x3a0 [ 46.776384] tty_open+0x410/0x9c0 [ 46.776404] chrdev_open+0x1fc/0x540 [ 46.776412] do_dentry_open+0x732/0xe90 [ 46.776418] vfs_open+0x105/0x220 [ 46.776424] path_openat+0x8ca/0x3c50 [ 46.776430] do_filp_open+0x18e/0x250 [ 46.776436] do_sys_open+0x29d/0x3f0 [ 46.776442] do_syscall_64+0x1d5/0x640 [ 46.776448] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.776451] [ 46.776454] Freed by task 7621: [ 46.776459] save_stack+0x32/0xa0 [ 46.776465] kasan_slab_free+0x75/0xc0 [ 46.776470] kfree+0xcb/0x260 [ 46.776478] vt_disallocate_all+0x25c/0x340 [ 46.776483] vt_ioctl+0x6e3/0x1f00 [ 46.776490] tty_ioctl+0x6c5/0x1220 [ 46.776496] do_vfs_ioctl+0x75a/0xfe0 [ 46.776503] SyS_ioctl+0x7f/0xb0 [ 46.776509] do_syscall_64+0x1d5/0x640 [ 46.776516] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.776518] [ 46.776524] The buggy address belongs to the object at ffff8880885e8a00 [ 46.776524] which belongs to the cache kmalloc-2048 of size 2048 [ 46.776530] The buggy address is located 264 bytes inside of [ 46.776530] 2048-byte region [ffff8880885e8a00, ffff8880885e9200) [ 46.776533] The buggy address belongs to the page: [ 46.776539] page:ffffea0002217a00 count:1 mapcount:0 mapping:ffff8880885e8180 index:0x0 compound_mapcount: 0 [ 46.776549] flags: 0xfffe0000008100(slab|head) [ 46.776559] raw: 00fffe0000008100 ffff8880885e8180 0000000000000000 0000000100000003 [ 46.776568] raw: ffffea000222faa0 ffffea000232f020 ffff88812fe56c40 0000000000000000 [ 46.776572] page dumped because: kasan: bad access detected [ 46.776574] [ 46.776577] Memory state around the buggy address: [ 46.776583] ffff8880885e8a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.776588] ffff8880885e8a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.776594] >ffff8880885e8b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.776597] ^ [ 46.776603] ffff8880885e8b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.776609] ffff8880885e8c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.776611] ================================================================== [ 46.776614] Disabling lock debugging due to kernel taint [ 46.776617] Kernel panic - not syncing: panic_on_warn set ... [ 46.776617] [ 46.776624] CPU: 1 PID: 7627 Comm: syz-executor488 Tainted: G B 4.14.172-syzkaller #0 [ 46.776627] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.776630] Call Trace: [ 46.776638] dump_stack+0x13e/0x194 [ 46.776646] panic+0x1f9/0x42d [ 46.776660] ? add_taint.cold+0x16/0x16 [ 46.776668] ? lock_downgrade+0x6e0/0x6e0 [ 46.776679] ? con_shutdown+0x7f/0x90 [ 46.776685] kasan_end_report+0x43/0x49 [ 46.776692] kasan_report.cold+0x12f/0x2ae [ 46.776698] ? set_palette+0x130/0x130 [ 46.776704] con_shutdown+0x7f/0x90 [ 46.776711] release_tty+0xb6/0x7a0 [ 46.776719] tty_release_struct+0x37/0x50 [ 46.776725] tty_release+0xaa6/0xd60 [ 46.776735] ? tty_release_struct+0x50/0x50 [ 46.776740] __fput+0x25f/0x790 [ 46.776749] task_work_run+0x113/0x190 [ 46.776756] do_exit+0x9f2/0x2b00 [ 46.776763] ? __do_page_fault+0x4e4/0xb40 [ 46.776771] ? mm_update_next_owner+0x5b0/0x5b0 [ 46.776777] ? lock_downgrade+0x6e0/0x6e0 [ 46.776786] do_group_exit+0x100/0x310 [ 46.776793] SyS_exit_group+0x19/0x20 [ 46.776799] ? do_group_exit+0x310/0x310 [ 46.776805] do_syscall_64+0x1d5/0x640 [ 46.776814] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.776819] RIP: 0033:0x43ff38 [ 46.776823] RSP: 002b:00007ffc251d2328 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.776831] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 46.776835] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 46.776839] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 46.776842] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 46.776845] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 46.777968] Kernel Offset: disabled [ 47.382795] Rebooting in 86400 seconds..