. [ 36.721546] audit: type=1800 audit(1576370425.433:33): pid=7044 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 [ 36.743225] audit: type=1800 audit(1576370425.453:34): pid=7044 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 [ 37.197723] audit: type=1400 audit(1576370425.903:35): avc: denied { map } for pid=7214 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 [ 37.244327] random: sshd: uninitialized urandom read (32 bytes read) [ 37.840597] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 38.034167] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.130' (ECDSA) to the list of known hosts. [ 43.565369] 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 executing program executing program executing program [ 43.682399] audit: type=1400 audit(1576370432.393:36): avc: denied { map } for pid=7226 comm="syz-executor182" path="/root/syz-executor182816606" 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 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 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 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 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 [ 44.578135] ================================================================== [ 44.578175] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x1feb/0x2410 [ 44.578184] Read of size 1 at addr ffff88808bb5f64a by task syz-executor182/7372 [ 44.578186] [ 44.578197] CPU: 1 PID: 7372 Comm: syz-executor182 Not tainted 4.14.158-syzkaller #0 [ 44.578202] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.578205] Call Trace: [ 44.578217] dump_stack+0x142/0x197 [ 44.578228] ? n_tty_receive_buf_common+0x1feb/0x2410 [ 44.578238] print_address_description.cold+0x7c/0x1dc [ 44.637294] ? n_tty_receive_buf_common+0x1feb/0x2410 [ 44.637305] kasan_report.cold+0xa9/0x2af [ 44.637318] __asan_report_load1_noabort+0x14/0x20 [ 44.637326] n_tty_receive_buf_common+0x1feb/0x2410 [ 44.637350] n_tty_receive_buf2+0x34/0x40 [ 44.637359] ? n_tty_receive_buf_common+0x2410/0x2410 [ 44.637366] tty_ldisc_receive_buf+0xa5/0x1a0 [ 44.637379] paste_selection+0x1e6/0x3f2 [ 44.637390] ? find_held_lock+0x35/0x130 [ 44.637402] ? set_selection+0xe30/0xe30 [ 44.637413] ? lock_downgrade+0x740/0x740 [ 44.637423] ? wake_up_q+0xf0/0xf0 [ 44.637438] tioclinux+0x10e/0x400 [ 44.637446] vt_ioctl+0x180c/0x2170 [ 44.637454] ? avc_has_extended_perms+0x8ec/0xe40 [ 44.637464] ? complete_change_console+0x360/0x360 [ 44.637472] ? avc_ss_reset+0x110/0x110 [ 44.637479] ? kasan_slab_free+0x75/0xc0 [ 44.637490] ? SyS_open+0x2d/0x40 [ 44.637499] ? do_syscall_64+0x1e8/0x640 [ 44.637508] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.637515] ? find_held_lock+0x35/0x130 [ 44.637524] ? debug_check_no_obj_freed+0x2aa/0x7b7 [ 44.637531] ? tty_jobctrl_ioctl+0x44/0xc10 [ 44.637545] ? complete_change_console+0x360/0x360 [ 44.637554] tty_ioctl+0x841/0x1320 [ 44.637563] ? tty_vhangup+0x30/0x30 [ 44.637577] ? __might_sleep+0x93/0xb0 [ 44.637590] ? tty_vhangup+0x30/0x30 [ 44.637601] do_vfs_ioctl+0x7ae/0x1060 [ 44.637611] ? selinux_file_mprotect+0x5d0/0x5d0 [ 44.637623] ? ioctl_preallocate+0x1c0/0x1c0 [ 44.637629] ? putname+0xe0/0x120 [ 44.779179] ? do_sys_open+0x221/0x430 [ 44.779193] ? security_file_ioctl+0x7d/0xb0 [ 44.779198] ? security_file_ioctl+0x89/0xb0 [ 44.779210] SyS_ioctl+0x8f/0xc0 [ 44.779219] ? do_vfs_ioctl+0x1060/0x1060 [ 44.779232] do_syscall_64+0x1e8/0x640 [ 44.779239] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.779255] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.779262] RIP: 0033:0x441319 [ 44.779267] RSP: 002b:00007ffe5db40cf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 44.779276] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 44.779280] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000004 [ 44.779284] RBP: 000000000000add3 R08: 000000000000000d R09: 00000000004002c8 [ 44.779288] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 44.779293] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 44.779305] [ 44.779311] Allocated by task 7377: [ 44.779321] save_stack_trace+0x16/0x20 [ 44.779329] save_stack+0x45/0xd0 [ 44.779334] kasan_kmalloc+0xce/0xf0 [ 44.779339] __kmalloc+0x15d/0x7a0 [ 44.779348] set_selection+0x79a/0xe30 [ 44.779353] tioclinux+0xf7/0x400 [ 44.779359] vt_ioctl+0x180c/0x2170 [ 44.779368] tty_ioctl+0x841/0x1320 [ 44.779373] do_vfs_ioctl+0x7ae/0x1060 [ 44.779379] SyS_ioctl+0x8f/0xc0 [ 44.779385] do_syscall_64+0x1e8/0x640 [ 44.779391] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.779394] [ 44.779397] Freed by task 7374: [ 44.779402] save_stack_trace+0x16/0x20 [ 44.779409] save_stack+0x45/0xd0 [ 44.927882] kasan_slab_free+0x75/0xc0 [ 44.927888] kfree+0xcc/0x270 [ 44.927896] set_selection+0x7b7/0xe30 [ 44.927902] tioclinux+0xf7/0x400 [ 44.927906] vt_ioctl+0x180c/0x2170 [ 44.927915] tty_ioctl+0x841/0x1320 [ 44.927924] do_vfs_ioctl+0x7ae/0x1060 [ 44.927930] SyS_ioctl+0x8f/0xc0 [ 44.927941] do_syscall_64+0x1e8/0x640 [ 44.927951] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.927954] [ 44.927960] The buggy address belongs to the object at ffff88808bb5f640 [ 44.927960] which belongs to the cache kmalloc-256 of size 256 [ 44.927966] The buggy address is located 10 bytes inside of [ 44.927966] 256-byte region [ffff88808bb5f640, ffff88808bb5f740) [ 44.927970] The buggy address belongs to the page: [ 44.927978] page:ffffea00022ed7c0 count:1 mapcount:0 mapping:ffff88808bb5f000 index:0x0 [ 44.927986] flags: 0xfffe0000000100(slab) [ 44.927997] raw: 00fffe0000000100 ffff88808bb5f000 0000000000000000 000000010000000c [ 44.928004] raw: ffffea0002640620 ffff8880aa801648 ffff8880aa8007c0 0000000000000000 [ 44.928007] page dumped because: kasan: bad access detected [ 44.928012] [ 45.043473] Memory state around the buggy address: [ 45.043484] ffff88808bb5f500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.043490] ffff88808bb5f580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.043496] >ffff88808bb5f600: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 45.043501] ^ [ 45.043507] ffff88808bb5f680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.043512] ffff88808bb5f700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.043515] ================================================================== [ 45.043519] Disabling lock debugging due to kernel taint [ 45.044584] Kernel panic - not syncing: panic_on_warn set ... [ 45.044584] [ 45.117564] CPU: 1 PID: 7372 Comm: syz-executor182 Tainted: G B 4.14.158-syzkaller #0 [ 45.117568] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.117571] Call Trace: [ 45.117592] dump_stack+0x142/0x197 [ 45.117607] ? n_tty_receive_buf_common+0x1feb/0x2410 [ 45.117615] panic+0x1f9/0x42d [ 45.117620] ? add_taint.cold+0x16/0x16 [ 45.117631] ? ___preempt_schedule+0x16/0x18 [ 45.117644] kasan_end_report+0x47/0x4f [ 45.117651] kasan_report.cold+0x130/0x2af [ 45.117659] __asan_report_load1_noabort+0x14/0x20 [ 45.117665] n_tty_receive_buf_common+0x1feb/0x2410 [ 45.117679] n_tty_receive_buf2+0x34/0x40 [ 45.117685] ? n_tty_receive_buf_common+0x2410/0x2410 [ 45.117691] tty_ldisc_receive_buf+0xa5/0x1a0 [ 45.117700] paste_selection+0x1e6/0x3f2 [ 45.117711] ? find_held_lock+0x35/0x130 [ 45.117719] ? set_selection+0xe30/0xe30 [ 45.117726] ? lock_downgrade+0x740/0x740 [ 45.117735] ? wake_up_q+0xf0/0xf0 [ 45.117743] tioclinux+0x10e/0x400 [ 45.117750] vt_ioctl+0x180c/0x2170 [ 45.117759] ? avc_has_extended_perms+0x8ec/0xe40 [ 45.117766] ? complete_change_console+0x360/0x360 [ 45.117772] ? avc_ss_reset+0x110/0x110 [ 45.117778] ? kasan_slab_free+0x75/0xc0 [ 45.117785] ? SyS_open+0x2d/0x40 [ 45.117796] ? do_syscall_64+0x1e8/0x640 [ 45.246625] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 45.246640] ? find_held_lock+0x35/0x130 [ 45.246648] ? debug_check_no_obj_freed+0x2aa/0x7b7 [ 45.246657] ? tty_jobctrl_ioctl+0x44/0xc10 [ 45.246665] ? complete_change_console+0x360/0x360 [ 45.246675] tty_ioctl+0x841/0x1320 [ 45.246683] ? tty_vhangup+0x30/0x30 [ 45.246696] ? __might_sleep+0x93/0xb0 [ 45.246705] ? tty_vhangup+0x30/0x30 [ 45.246715] do_vfs_ioctl+0x7ae/0x1060 [ 45.246724] ? selinux_file_mprotect+0x5d0/0x5d0 [ 45.246731] ? ioctl_preallocate+0x1c0/0x1c0 [ 45.246737] ? putname+0xe0/0x120 [ 45.246745] ? do_sys_open+0x221/0x430 [ 45.246755] ? security_file_ioctl+0x7d/0xb0 [ 45.310988] ? security_file_ioctl+0x89/0xb0 [ 45.311007] SyS_ioctl+0x8f/0xc0 [ 45.311015] ? do_vfs_ioctl+0x1060/0x1060 [ 45.311026] do_syscall_64+0x1e8/0x640 [ 45.311033] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.311065] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 45.311072] RIP: 0033:0x441319 [ 45.311076] RSP: 002b:00007ffe5db40cf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 45.311083] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 45.311087] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000004 [ 45.311091] RBP: 000000000000add3 R08: 000000000000000d R09: 00000000004002c8 [ 45.311094] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 45.311098] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 45.317148] Kernel Offset: disabled [ 45.393246] Rebooting in 86400 seconds..