[ 30.026182] audit: type=1800 audit(1575361934.007:33): pid=6804 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 [ 30.053683] audit: type=1800 audit(1575361934.007:34): pid=6804 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: [ 31.419808] random: sshd: uninitialized urandom read (32 bytes read) [ 31.628023] audit: type=1400 audit(1575361935.607:35): avc: denied { map } for pid=6977 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 [ 31.700606] random: sshd: uninitialized urandom read (32 bytes read) [ 32.278575] random: sshd: uninitialized urandom read (32 bytes read) [ 32.451822] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.1.3' (ECDSA) to the list of known hosts. [ 37.971595] 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 executing program executing program executing program executing program executing program executing program [ 38.089574] audit: type=1400 audit(1575361942.067:36): avc: denied { map } for pid=6991 comm="syz-executor396" path="/root/syz-executor396700873" 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 executing program executing program executing program executing program executing program executing program executing program executing program [ 38.202840] ================================================================== [ 38.210366] BUG: KASAN: use-after-free in tty_open+0x995/0xa10 [ 38.216338] Read of size 8 at addr ffff888090ae56c0 by task syz-executor396/7022 [ 38.223859] [ 38.225479] CPU: 0 PID: 7022 Comm: syz-executor396 Not tainted 4.14.157-syzkaller #0 [ 38.233341] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.242689] Call Trace: [ 38.245274] dump_stack+0x142/0x197 [ 38.248907] ? sctp_sendmsg+0xc0/0x2cb0 [ 38.252867] ? tty_open+0x995/0xa10 [ 38.256483] print_address_description.cold+0x7c/0x1dc [ 38.261745] ? tty_open+0x995/0xa10 [ 38.265362] kasan_report.cold+0xa9/0x2af [ 38.269510] __asan_report_load8_noabort+0x14/0x20 [ 38.274417] tty_open+0x995/0xa10 [ 38.277853] ? tty_init_dev+0x3a0/0x3a0 [ 38.281811] ? do_raw_spin_unlock+0x16b/0x260 [ 38.286288] ? tty_init_dev+0x3a0/0x3a0 [ 38.290242] chrdev_open+0x207/0x590 [ 38.293941] ? cdev_put.part.0+0x50/0x50 [ 38.297984] ? security_file_open+0x89/0x190 [ 38.302373] do_dentry_open+0x73b/0xeb0 [ 38.306331] ? cdev_put.part.0+0x50/0x50 [ 38.310376] vfs_open+0x105/0x220 [ 38.313812] path_openat+0x8bd/0x3f70 [ 38.317598] ? trace_hardirqs_on+0x10/0x10 [ 38.321818] ? path_lookupat.isra.0+0x7b0/0x7b0 [ 38.326467] ? find_held_lock+0x35/0x130 [ 38.330513] ? __alloc_fd+0x1d4/0x4a0 [ 38.334307] do_filp_open+0x18e/0x250 [ 38.338103] ? may_open_dev+0xe0/0xe0 [ 38.341890] ? do_raw_spin_unlock+0x16b/0x260 [ 38.346385] ? _raw_spin_unlock+0x2d/0x50 [ 38.350533] ? __alloc_fd+0x1d4/0x4a0 [ 38.354367] do_sys_open+0x2c5/0x430 [ 38.358066] ? filp_open+0x70/0x70 [ 38.361588] ? security_file_ioctl+0x89/0xb0 [ 38.365982] SyS_open+0x2d/0x40 [ 38.369242] ? do_sys_open+0x430/0x430 [ 38.373121] do_syscall_64+0x1e8/0x640 [ 38.377010] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.381842] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 38.387018] RIP: 0033:0x401140 [ 38.390187] RSP: 002b:00007fffd1282d88 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 38.397877] RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000401140 [ 38.405129] RDX: 0000000000000000 RSI: 0000000000101000 RDI: 00007fffd1282db0 [ 38.412389] RBP: 0000000000009510 R08: 000000000000000f R09: 00000000004002e0 [ 38.419646] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000402160 [ 38.426901] R13: 00000000004021f0 R14: 0000000000000000 R15: 0000000000000000 [ 38.434161] [ 38.435771] Allocated by task 7020: [ 38.439390] save_stack_trace+0x16/0x20 [ 38.443345] save_stack+0x45/0xd0 [ 38.446777] kasan_kmalloc+0xce/0xf0 [ 38.450479] kmem_cache_alloc_trace+0x152/0x790 [ 38.455146] vc_allocate+0x148/0x580 [ 38.458842] con_install+0x52/0x400 [ 38.462452] tty_init_dev+0xea/0x3a0 [ 38.466147] tty_open+0x414/0xa10 [ 38.469577] chrdev_open+0x207/0x590 [ 38.473389] do_dentry_open+0x73b/0xeb0 [ 38.477343] vfs_open+0x105/0x220 [ 38.480778] path_openat+0x8bd/0x3f70 [ 38.484563] do_filp_open+0x18e/0x250 [ 38.488341] do_sys_open+0x2c5/0x430 [ 38.492038] SyS_open+0x2d/0x40 [ 38.495300] do_syscall_64+0x1e8/0x640 [ 38.499165] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 38.504331] [ 38.505964] Freed by task 7022: [ 38.509226] save_stack_trace+0x16/0x20 [ 38.513181] save_stack+0x45/0xd0 [ 38.516613] kasan_slab_free+0x75/0xc0 [ 38.520479] kfree+0xcc/0x270 [ 38.523572] vt_disallocate_all+0x286/0x380 [ 38.527871] vt_ioctl+0x76b/0x2170 [ 38.531391] tty_ioctl+0x841/0x1320 [ 38.534997] do_vfs_ioctl+0x7ae/0x1060 [ 38.538948] SyS_ioctl+0x8f/0xc0 [ 38.542292] do_syscall_64+0x1e8/0x640 [ 38.546167] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 38.551331] [ 38.552939] The buggy address belongs to the object at ffff888090ae54c0 [ 38.552939] which belongs to the cache kmalloc-2048 of size 2048 [ 38.565748] The buggy address is located 512 bytes inside of [ 38.565748] 2048-byte region [ffff888090ae54c0, ffff888090ae5cc0) [ 38.577693] The buggy address belongs to the page: [ 38.582605] page:ffffea000242b900 count:1 mapcount:0 mapping:ffff888090ae43c0 index:0x0 compound_mapcount: 0 [ 38.592551] flags: 0xfffe0000008100(slab|head) [ 38.597114] raw: 00fffe0000008100 ffff888090ae43c0 0000000000000000 0000000100000003 [ 38.605081] raw: ffffea00020173a0 ffffea00024d3520 ffff8880aa800c40 0000000000000000 [ 38.612941] page dumped because: kasan: bad access detected [ 38.618729] [ 38.620335] Memory state around the buggy address: [ 38.625244] ffff888090ae5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.632584] ffff888090ae5600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.639919] >ffff888090ae5680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.647260] ^ [ 38.652693] ffff888090ae5700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.660038] ffff888090ae5780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.667378] ================================================================== [ 38.674729] Disabling lock debugging due to kernel taint [ 38.682387] Kernel panic - not syncing: panic_on_warn set ... [ 38.682387] [ 38.689752] CPU: 0 PID: 7022 Comm: syz-executor396 Tainted: G B 4.14.157-syzkaller #0 [ 38.698866] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.708196] Call Trace: [ 38.710770] dump_stack+0x142/0x197 [ 38.714377] ? tty_open+0x995/0xa10 [ 38.717977] panic+0x1f9/0x42d [ 38.721142] ? add_taint.cold+0x16/0x16 [ 38.725094] ? ___preempt_schedule+0x16/0x18 [ 38.729480] kasan_end_report+0x47/0x4f [ 38.733432] kasan_report.cold+0x130/0x2af [ 38.737646] __asan_report_load8_noabort+0x14/0x20 [ 38.742555] tty_open+0x995/0xa10 [ 38.745985] ? tty_init_dev+0x3a0/0x3a0 [ 38.749934] ? do_raw_spin_unlock+0x16b/0x260 [ 38.754406] ? tty_init_dev+0x3a0/0x3a0 [ 38.758356] chrdev_open+0x207/0x590 [ 38.762045] ? cdev_put.part.0+0x50/0x50 [ 38.766089] ? security_file_open+0x89/0x190 [ 38.770490] do_dentry_open+0x73b/0xeb0 [ 38.774448] ? cdev_put.part.0+0x50/0x50 [ 38.778488] vfs_open+0x105/0x220 [ 38.781918] path_openat+0x8bd/0x3f70 [ 38.785703] ? trace_hardirqs_on+0x10/0x10 [ 38.789915] ? path_lookupat.isra.0+0x7b0/0x7b0 [ 38.794566] ? find_held_lock+0x35/0x130 [ 38.798623] ? __alloc_fd+0x1d4/0x4a0 [ 38.802442] do_filp_open+0x18e/0x250 [ 38.806219] ? may_open_dev+0xe0/0xe0 [ 38.810098] ? do_raw_spin_unlock+0x16b/0x260 [ 38.814570] ? _raw_spin_unlock+0x2d/0x50 [ 38.818697] ? __alloc_fd+0x1d4/0x4a0 [ 38.822476] do_sys_open+0x2c5/0x430 [ 38.826167] ? filp_open+0x70/0x70 [ 38.829692] ? security_file_ioctl+0x89/0xb0 [ 38.834076] SyS_open+0x2d/0x40 [ 38.837332] ? do_sys_open+0x430/0x430 [ 38.841195] do_syscall_64+0x1e8/0x640 [ 38.845070] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.849893] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 38.855056] RIP: 0033:0x401140 [ 38.859698] RSP: 002b:00007fffd1282d88 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 38.867390] RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000401140 [ 38.874639] RDX: 0000000000000000 RSI: 0000000000101000 RDI: 00007fffd1282db0 [ 38.881886] RBP: 0000000000009510 R08: 000000000000000f R09: 00000000004002e0 [ 38.889132] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000402160 [ 38.896542] R13: 00000000004021f0 R14: 0000000000000000 R15: 0000000000000000 [ 38.905061] Kernel Offset: disabled [ 38.908679] Rebooting in 86400 seconds..