[ 37.193607] audit: type=1800 audit(1582999227.705:33): pid=7201 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 [ 37.220585] audit: type=1800 audit(1582999227.705:34): pid=7201 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: [ 41.927624] random: sshd: uninitialized urandom read (32 bytes read) [ 42.173021] audit: type=1400 audit(1582999232.685:35): avc: denied { map } for pid=7372 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 [ 42.218729] random: sshd: uninitialized urandom read (32 bytes read) [ 42.955315] random: sshd: uninitialized urandom read (32 bytes read) [ 55.512500] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.11' (ECDSA) to the list of known hosts. [ 61.068450] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program [ 61.194995] audit: type=1400 audit(1582999251.705:36): avc: denied { map } for pid=7384 comm="syz-executor085" path="/root/syz-executor085650131" dev="sda1" ino=1426 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 61.240677] ================================================================== [ 61.240710] BUG: KASAN: use-after-free in con_shutdown+0x7f/0x90 [ 61.240716] Write of size 8 at addr ffff8880a0278f08 by task syz-executor085/7391 [ 61.240718] [ 61.240726] CPU: 0 PID: 7391 Comm: syz-executor085 Not tainted 4.14.172-syzkaller #0 [ 61.240731] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.240734] Call Trace: [ 61.240746] dump_stack+0x13e/0x194 [ 61.240756] ? con_shutdown+0x7f/0x90 [ 61.240767] print_address_description.cold+0x7c/0x1e2 [ 61.240776] ? con_shutdown+0x7f/0x90 [ 61.240783] kasan_report.cold+0xa9/0x2ae [ 61.240791] ? set_palette+0x130/0x130 [ 61.240806] con_shutdown+0x7f/0x90 [ 61.240815] release_tty+0xb6/0x7a0 [ 61.240825] tty_release_struct+0x37/0x50 [ 61.240833] tty_release+0xaa6/0xd60 [ 61.240847] ? tty_release_struct+0x50/0x50 [ 61.240853] __fput+0x25f/0x790 [ 61.240867] task_work_run+0x113/0x190 [ 61.240880] do_exit+0x9f2/0x2b00 [ 61.240888] ? __do_page_fault+0x4e4/0xb40 [ 61.240897] ? mm_update_next_owner+0x5b0/0x5b0 [ 61.240906] ? lock_downgrade+0x6e0/0x6e0 [ 61.240921] do_group_exit+0x100/0x310 [ 61.240931] SyS_exit_group+0x19/0x20 [ 61.240938] ? do_group_exit+0x310/0x310 [ 61.240946] do_syscall_64+0x1d5/0x640 [ 61.240958] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 61.240964] RIP: 0033:0x43ff38 [ 61.240968] RSP: 002b:00007ffc72c29b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 61.240976] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 61.240981] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 61.240985] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 61.240989] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 61.240993] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 61.241008] [ 61.241011] Allocated by task 7391: [ 61.241019] save_stack+0x32/0xa0 [ 61.241025] kasan_kmalloc+0xbf/0xe0 [ 61.241029] kmem_cache_alloc_trace+0x14d/0x7b0 [ 61.241036] vc_allocate+0x142/0x550 [ 61.241042] con_install+0x4f/0x3e0 [ 61.241048] tty_init_dev+0xe1/0x3a0 [ 61.241053] tty_open+0x410/0x9c0 [ 61.241059] chrdev_open+0x1fc/0x540 [ 61.241066] do_dentry_open+0x732/0xe90 [ 61.241071] vfs_open+0x105/0x220 [ 61.241077] path_openat+0x8ca/0x3c50 [ 61.241083] do_filp_open+0x18e/0x250 [ 61.241089] do_sys_open+0x29d/0x3f0 [ 61.241096] do_syscall_64+0x1d5/0x640 [ 61.241103] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 61.241105] [ 61.241108] Freed by task 7393: [ 61.241114] save_stack+0x32/0xa0 [ 61.241120] kasan_slab_free+0x75/0xc0 [ 61.241125] kfree+0xcb/0x260 [ 61.241133] vt_disallocate_all+0x25c/0x340 [ 61.241137] vt_ioctl+0x6e3/0x1f00 [ 61.241143] tty_ioctl+0x6c5/0x1220 [ 61.241150] do_vfs_ioctl+0x75a/0xfe0 [ 61.241155] SyS_ioctl+0x7f/0xb0 [ 61.241161] do_syscall_64+0x1d5/0x640 [ 61.241168] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 61.241170] [ 61.241175] The buggy address belongs to the object at ffff8880a0278e00 [ 61.241175] which belongs to the cache kmalloc-2048 of size 2048 [ 61.241181] The buggy address is located 264 bytes inside of [ 61.241181] 2048-byte region [ffff8880a0278e00, ffff8880a0279600) [ 61.241184] The buggy address belongs to the page: [ 61.241190] page:ffffea0002809e00 count:1 mapcount:0 mapping:ffff8880a0278580 index:0x0 compound_mapcount: 0 [ 61.241200] flags: 0xfffe0000008100(slab|head) [ 61.241210] raw: 00fffe0000008100 ffff8880a0278580 0000000000000000 0000000100000003 [ 61.241217] raw: ffffea0001f2ce20 ffffea00027f2e20 ffff88812fe56c40 0000000000000000 [ 61.241220] page dumped because: kasan: bad access detected [ 61.241223] [ 61.241225] Memory state around the buggy address: [ 61.241231] ffff8880a0278e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.241237] ffff8880a0278e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.241243] >ffff8880a0278f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.241245] ^ [ 61.241250] ffff8880a0278f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.241256] ffff8880a0279000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.241258] ================================================================== [ 61.241261] Disabling lock debugging due to kernel taint [ 61.241294] Kernel panic - not syncing: panic_on_warn set ... [ 61.241294] [ 61.241301] CPU: 0 PID: 7391 Comm: syz-executor085 Tainted: G B 4.14.172-syzkaller #0 [ 61.241304] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.241307] Call Trace: [ 61.241316] dump_stack+0x13e/0x194 [ 61.241324] panic+0x1f9/0x42d [ 61.241330] ? add_taint.cold+0x16/0x16 [ 61.241336] ? preempt_schedule_common+0x4a/0xc0 [ 61.241343] ? con_shutdown+0x7f/0x90 [ 61.241350] ? ___preempt_schedule+0x16/0x18 [ 61.241359] ? con_shutdown+0x7f/0x90 [ 61.241365] kasan_end_report+0x43/0x49 [ 61.241372] kasan_report.cold+0x12f/0x2ae [ 61.241379] ? set_palette+0x130/0x130 [ 61.241386] con_shutdown+0x7f/0x90 [ 61.241392] release_tty+0xb6/0x7a0 [ 61.241400] tty_release_struct+0x37/0x50 [ 61.241407] tty_release+0xaa6/0xd60 [ 61.241416] ? tty_release_struct+0x50/0x50 [ 61.241421] __fput+0x25f/0x790 [ 61.241432] task_work_run+0x113/0x190 [ 61.241439] do_exit+0x9f2/0x2b00 [ 61.241446] ? __do_page_fault+0x4e4/0xb40 [ 61.241453] ? mm_update_next_owner+0x5b0/0x5b0 [ 61.241461] ? lock_downgrade+0x6e0/0x6e0 [ 61.241469] do_group_exit+0x100/0x310 [ 61.241477] SyS_exit_group+0x19/0x20 [ 61.241482] ? do_group_exit+0x310/0x310 [ 61.241488] do_syscall_64+0x1d5/0x640 [ 61.241503] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 61.241508] RIP: 0033:0x43ff38 [ 61.241512] RSP: 002b:00007ffc72c29b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 61.241519] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff38 [ 61.241523] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 61.241527] RBP: 00000000004bf950 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 61.241530] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 61.241533] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 61.242909] Kernel Offset: disabled [ 61.835382] Rebooting in 86400 seconds..