[ 473.008835] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.130' (ECDSA) to the list of known hosts. [ 478.670260] 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 executing program [ 478.794146] audit: type=1400 audit(1581765250.271:36): avc: denied { map } for pid=7467 comm="syz-executor297" path="/root/syz-executor297726658" 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 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 [ 479.691902] ================================================================== [ 479.692051] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x214f/0x2570 [ 479.692056] Read of size 1 at addr ffff88808c71d541 by task syz-executor297/7611 [ 479.692058] [ 479.692064] CPU: 0 PID: 7611 Comm: syz-executor297 Not tainted 4.14.171-syzkaller #0 [ 479.692067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 479.692083] Call Trace: [ 479.692145] dump_stack+0x142/0x197 [ 479.692182] ? e1000_phy_get_info+0xc78/0xce0 [ 479.692194] ? n_tty_receive_buf_common+0x214f/0x2570 [ 479.692242] print_address_description.cold+0x7c/0x1dc [ 479.692248] ? n_tty_receive_buf_common+0x214f/0x2570 [ 479.692252] kasan_report.cold+0xa9/0x2af [ 479.692258] __asan_report_load1_noabort+0x14/0x20 [ 479.692263] n_tty_receive_buf_common+0x214f/0x2570 [ 479.692295] ? add_wait_queue+0x112/0x170 [ 479.692308] n_tty_receive_buf2+0x34/0x40 [ 479.692313] ? n_tty_receive_buf_common+0x2570/0x2570 [ 479.692317] tty_ldisc_receive_buf+0xa5/0x1a0 [ 479.692327] paste_selection+0x1e6/0x3f2 [ 479.692344] ? find_held_lock+0x35/0x130 [ 479.692350] ? set_selection+0xe30/0xe30 [ 479.692356] ? lock_downgrade+0x740/0x740 [ 479.692373] ? wake_up_q+0xf0/0xf0 [ 479.692424] tioclinux+0x10e/0x400 [ 479.692430] vt_ioctl+0x180c/0x2170 [ 479.692488] ? avc_has_extended_perms+0x8ec/0xe40 [ 479.692494] ? complete_change_console+0x360/0x360 [ 479.692498] ? avc_ss_reset+0x110/0x110 [ 479.692503] ? kasan_slab_free+0x75/0xc0 [ 479.692524] ? SyS_open+0x2d/0x40 [ 479.692556] ? do_syscall_64+0x1e8/0x640 [ 479.692581] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 479.692587] ? find_held_lock+0x35/0x130 [ 479.692635] ? debug_check_no_obj_freed+0x2aa/0x7b7 [ 479.692640] ? tty_jobctrl_ioctl+0x44/0xc10 [ 479.692644] ? complete_change_console+0x360/0x360 [ 479.692650] tty_ioctl+0x841/0x1320 [ 479.692655] ? tty_vhangup+0x30/0x30 [ 479.692664] ? __might_sleep+0x93/0xb0 [ 479.692672] ? tty_vhangup+0x30/0x30 [ 479.692694] do_vfs_ioctl+0x7ae/0x1060 [ 479.692699] ? selinux_file_mprotect+0x5d0/0x5d0 [ 479.692705] ? ioctl_preallocate+0x1c0/0x1c0 [ 479.692708] ? putname+0xe0/0x120 [ 479.692714] ? do_sys_open+0x221/0x430 [ 479.692739] ? security_file_ioctl+0x7d/0xb0 [ 479.692743] ? security_file_ioctl+0x89/0xb0 [ 479.692749] SyS_ioctl+0x8f/0xc0 [ 479.692754] ? do_vfs_ioctl+0x1060/0x1060 [ 479.692759] do_syscall_64+0x1e8/0x640 [ 479.692764] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 479.692771] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 479.692788] RIP: 0033:0x441329 [ 479.692791] RSP: 002b:00007ffc2fe54bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 479.692796] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 479.692811] RDX: 0000000020000040 RSI: 000000000000541c RDI: 0000000000000004 [ 479.692813] RBP: 0000000000075178 R08: 000000000000000d R09: 00000000004002c8 [ 479.692816] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 479.692819] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 479.692827] [ 479.692846] Allocated by task 7612: [ 479.692866] save_stack_trace+0x16/0x20 [ 479.692870] save_stack+0x45/0xd0 [ 479.692873] kasan_kmalloc+0xce/0xf0 [ 479.692876] __kmalloc+0x15d/0x7a0 [ 479.692879] set_selection+0x79a/0xe30 [ 479.692883] tioclinux+0xf7/0x400 [ 479.692886] vt_ioctl+0x180c/0x2170 [ 479.692890] tty_ioctl+0x841/0x1320 [ 479.692893] do_vfs_ioctl+0x7ae/0x1060 [ 479.692897] SyS_ioctl+0x8f/0xc0 [ 479.692900] do_syscall_64+0x1e8/0x640 [ 479.692904] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 479.692906] [ 479.692908] Freed by task 7614: [ 479.692911] save_stack_trace+0x16/0x20 [ 479.692914] save_stack+0x45/0xd0 [ 479.692918] kasan_slab_free+0x75/0xc0 [ 479.692921] kfree+0xcc/0x270 [ 479.692924] set_selection+0x7b7/0xe30 [ 479.692927] tioclinux+0xf7/0x400 [ 479.692930] vt_ioctl+0x180c/0x2170 [ 479.692934] tty_ioctl+0x841/0x1320 [ 479.692937] do_vfs_ioctl+0x7ae/0x1060 [ 479.692941] SyS_ioctl+0x8f/0xc0 [ 479.692944] do_syscall_64+0x1e8/0x640 [ 479.692948] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 479.692950] [ 479.692953] The buggy address belongs to the object at ffff88808c71d540 [ 479.692953] which belongs to the cache kmalloc-256 of size 256 [ 479.692957] The buggy address is located 1 bytes inside of [ 479.692957] 256-byte region [ffff88808c71d540, ffff88808c71d640) [ 479.692958] The buggy address belongs to the page: [ 479.692962] page:ffffea000231c740 count:1 mapcount:0 mapping:ffff88808c71d040 index:0xffff88808c71d040 [ 479.692967] flags: 0xfffe0000000100(slab) [ 479.692973] raw: 00fffe0000000100 ffff88808c71d040 ffff88808c71d040 0000000100000005 [ 479.692978] raw: ffffea0002818b60 ffffea00026ed760 ffff8880aa8007c0 0000000000000000 [ 479.692980] page dumped because: kasan: bad access detected [ 479.692981] [ 479.692982] Memory state around the buggy address: [ 479.692986] ffff88808c71d400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 479.692989] ffff88808c71d480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 479.692992] >ffff88808c71d500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 479.692994] ^ [ 479.692997] ffff88808c71d580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 479.693001] ffff88808c71d600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 479.693002] ================================================================== [ 479.693004] Disabling lock debugging due to kernel taint [ 479.693044] Kernel panic - not syncing: panic_on_warn set ... [ 479.693044] [ 479.693050] CPU: 0 PID: 7611 Comm: syz-executor297 Tainted: G B 4.14.171-syzkaller #0 [ 479.693054] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 479.693056] Call Trace: [ 479.693064] dump_stack+0x142/0x197 [ 479.693073] ? n_tty_receive_buf_common+0x214f/0x2570 [ 479.693101] panic+0x1f9/0x42d [ 479.693107] ? add_taint.cold+0x16/0x16 [ 479.693116] kasan_end_report+0x47/0x4f [ 479.693120] kasan_report.cold+0x130/0x2af [ 479.693124] __asan_report_load1_noabort+0x14/0x20 [ 479.693129] n_tty_receive_buf_common+0x214f/0x2570 [ 479.693134] ? add_wait_queue+0x112/0x170 [ 479.693142] n_tty_receive_buf2+0x34/0x40 [ 479.693147] ? n_tty_receive_buf_common+0x2570/0x2570 [ 479.693150] tty_ldisc_receive_buf+0xa5/0x1a0 [ 479.693154] paste_selection+0x1e6/0x3f2 [ 479.693158] ? find_held_lock+0x35/0x130 [ 479.693162] ? set_selection+0xe30/0xe30 [ 479.693167] ? lock_downgrade+0x740/0x740 [ 479.693171] ? wake_up_q+0xf0/0xf0 [ 479.693176] tioclinux+0x10e/0x400 [ 479.693180] vt_ioctl+0x180c/0x2170 [ 479.693193] ? avc_has_extended_perms+0x8ec/0xe40 [ 479.693197] ? complete_change_console+0x360/0x360 [ 479.693201] ? avc_ss_reset+0x110/0x110 [ 479.693204] ? kasan_slab_free+0x75/0xc0 [ 479.693209] ? SyS_open+0x2d/0x40 [ 479.693212] ? do_syscall_64+0x1e8/0x640 [ 479.693216] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 479.693220] ? find_held_lock+0x35/0x130 [ 479.693224] ? debug_check_no_obj_freed+0x2aa/0x7b7 [ 479.693227] ? tty_jobctrl_ioctl+0x44/0xc10 [ 479.693231] ? complete_change_console+0x360/0x360 [ 479.693237] tty_ioctl+0x841/0x1320 [ 479.693244] ? tty_vhangup+0x30/0x30 [ 479.693252] ? __might_sleep+0x93/0xb0 [ 479.693258] ? tty_vhangup+0x30/0x30 [ 479.693262] do_vfs_ioctl+0x7ae/0x1060 [ 479.693267] ? selinux_file_mprotect+0x5d0/0x5d0 [ 479.693271] ? ioctl_preallocate+0x1c0/0x1c0 [ 479.693274] ? putname+0xe0/0x120 [ 479.693279] ? do_sys_open+0x221/0x430 [ 479.693288] ? security_file_ioctl+0x7d/0xb0 [ 479.693293] ? security_file_ioctl+0x89/0xb0 [ 479.693329] SyS_ioctl+0x8f/0xc0 [ 479.693334] ? do_vfs_ioctl+0x1060/0x1060 [ 479.693339] do_syscall_64+0x1e8/0x640 [ 479.693343] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 479.693350] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 479.693353] RIP: 0033:0x441329 [ 479.693356] RSP: 002b:00007ffc2fe54bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 479.693360] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 479.693363] RDX: 0000000020000040 RSI: 000000000000541c RDI: 0000000000000004 [ 479.693365] RBP: 0000000000075178 R08: 000000000000000d R09: 00000000004002c8 [ 479.693367] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 479.693370] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 479.694830] Kernel Offset: disabled