Warning: Permanently added '10.128.1.24' (ECDSA) to the list of known hosts. 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 syzkaller login: [ 91.013178][ T9859] ================================================================== [ 91.022012][ T9859] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 91.022033][ T9859] Read of size 1 at addr ffff88808c796801 by task syz-executor632/9859 [ 91.022038][ T9859] [ 91.022055][ T9859] CPU: 1 PID: 9859 Comm: syz-executor632 Not tainted 5.5.0-rc2-next-20191220-syzkaller #0 [ 91.022071][ T9859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 91.061037][ T9859] Call Trace: [ 91.061064][ T9859] dump_stack+0x197/0x210 [ 91.061084][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.061108][ T9859] print_address_description.constprop.0.cold+0xd4/0x30b [ 91.061121][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.061135][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.061150][ T9859] __kasan_report.cold+0x1b/0x41 [ 91.061167][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.061188][ T9859] kasan_report+0x12/0x20 [ 91.061203][ T9859] __asan_report_load1_noabort+0x14/0x20 [ 91.116969][ T9859] n_tty_receive_buf_common+0x270f/0x2b70 [ 91.116992][ T9859] ? __kasan_check_read+0x11/0x20 [ 91.127764][ T9859] n_tty_receive_buf2+0x34/0x40 [ 91.127783][ T9859] tty_ldisc_receive_buf+0xad/0x1c0 [ 91.127797][ T9859] ? add_wait_queue+0x112/0x170 [ 91.127811][ T9859] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 91.127830][ T9859] paste_selection+0x1ff/0x460 [ 91.127877][ T9859] ? vcs_remove_sysfs+0x60/0x60 [ 91.127892][ T9859] ? lock_downgrade+0x920/0x920 [ 91.127911][ T9859] ? wake_up_q+0x140/0x140 [ 91.127936][ T9859] tioclinux+0x133/0x480 [ 91.127953][ T9859] vt_ioctl+0x1a41/0x26d0 [ 91.127970][ T9859] ? complete_change_console+0x3a0/0x3a0 [ 91.127996][ T9859] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 91.128018][ T9859] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 91.193692][ T9859] ? tty_jobctrl_ioctl+0x50/0xd40 [ 91.193711][ T9859] ? complete_change_console+0x3a0/0x3a0 [ 91.193726][ T9859] tty_ioctl+0xa37/0x14f0 [ 91.193745][ T9859] ? tty_vhangup+0x30/0x30 [ 91.193769][ T9859] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 91.193787][ T9859] ? do_vfs_ioctl+0x11b/0x1340 [ 91.193808][ T9859] ? ioctl_file_clone+0x180/0x180 [ 91.193833][ T9859] ? __kasan_check_write+0x14/0x20 [ 91.193850][ T9859] ? up_read+0x1cd/0x810 [ 91.193872][ T9859] ? tomoyo_file_ioctl+0x23/0x30 [ 91.193886][ T9859] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 91.193924][ T9859] ? security_file_ioctl+0x8d/0xc0 [ 91.193936][ T9859] ? tty_vhangup+0x30/0x30 [ 91.193952][ T9859] ksys_ioctl+0x123/0x180 [ 91.193970][ T9859] __x64_sys_ioctl+0x73/0xb0 [ 91.193998][ T9859] do_syscall_64+0xfa/0x790 [ 91.272870][ T9859] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 91.272882][ T9859] RIP: 0033:0x441319 [ 91.272897][ T9859] Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 91.272904][ T9859] RSP: 002b:00007fffd9b1f0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 91.272918][ T9859] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 91.272926][ T9859] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 91.272934][ T9859] RBP: 000000000001631d R08: 000000000000000d R09: 00000000004002c8 [ 91.272942][ T9859] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 91.272950][ T9859] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 91.272970][ T9859] [ 91.272978][ T9859] Allocated by task 9855: [ 91.272993][ T9859] save_stack+0x23/0x90 [ 91.273007][ T9859] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 91.273018][ T9859] kasan_kmalloc+0x9/0x10 [ 91.273029][ T9859] __kmalloc+0x163/0x770 [ 91.273046][ T9859] set_selection_kernel+0x872/0x13b0 [ 91.273059][ T9859] set_selection_user+0x95/0xd9 [ 91.273070][ T9859] tioclinux+0x11c/0x480 [ 91.273082][ T9859] vt_ioctl+0x1a41/0x26d0 [ 91.273092][ T9859] tty_ioctl+0xa37/0x14f0 [ 91.273112][ T9859] ksys_ioctl+0x123/0x180 [ 91.404088][ T9859] __x64_sys_ioctl+0x73/0xb0 [ 91.404106][ T9859] do_syscall_64+0xfa/0x790 [ 91.404121][ T9859] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 91.404126][ T9859] [ 91.404134][ T9859] Freed by task 9857: [ 91.404149][ T9859] save_stack+0x23/0x90 [ 91.404168][ T9859] __kasan_slab_free+0x102/0x150 [ 91.404180][ T9859] kasan_slab_free+0xe/0x10 [ 91.404190][ T9859] kfree+0x10a/0x2c0 [ 91.404207][ T9859] set_selection_kernel+0x88f/0x13b0 [ 91.404227][ T9859] set_selection_user+0x95/0xd9 [ 91.453109][ T9859] tioclinux+0x11c/0x480 [ 91.453124][ T9859] vt_ioctl+0x1a41/0x26d0 [ 91.453133][ T9859] tty_ioctl+0xa37/0x14f0 [ 91.453147][ T9859] ksys_ioctl+0x123/0x180 [ 91.453159][ T9859] __x64_sys_ioctl+0x73/0xb0 [ 91.453177][ T9859] do_syscall_64+0xfa/0x790 [ 91.453191][ T9859] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 91.453195][ T9859] [ 91.453207][ T9859] The buggy address belongs to the object at ffff88808c796800 [ 91.453207][ T9859] which belongs to the cache kmalloc-512 of size 512 [ 91.453218][ T9859] The buggy address is located 1 bytes inside of [ 91.453218][ T9859] 512-byte region [ffff88808c796800, ffff88808c796a00) [ 91.453223][ T9859] The buggy address belongs to the page: [ 91.453237][ T9859] page:ffffea000231e580 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0xffff88808c796000 [ 91.453256][ T9859] raw: 00fffe0000000200 ffffea0002603308 ffffea0002a3d8c8 ffff8880aa400a80 [ 91.539518][ T9859] raw: ffff88808c796000 ffff88808c796000 0000000100000002 0000000000000000 [ 91.539525][ T9859] page dumped because: kasan: bad access detected [ 91.539529][ T9859] [ 91.539533][ T9859] Memory state around the buggy address: [ 91.539545][ T9859] ffff88808c796700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 91.539555][ T9859] ffff88808c796780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 91.539566][ T9859] >ffff88808c796800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 91.539571][ T9859] ^ [ 91.539582][ T9859] ffff88808c796880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 91.539592][ T9859] ffff88808c796900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 91.539597][ T9859] ================================================================== [ 91.539602][ T9859] Disabling lock debugging due to kernel taint [ 91.541068][ T9859] Kernel panic - not syncing: panic_on_warn set ... [ 91.629634][ T9859] CPU: 1 PID: 9859 Comm: syz-executor632 Tainted: G B 5.5.0-rc2-next-20191220-syzkaller #0 [ 91.629641][ T9859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 91.629645][ T9859] Call Trace: [ 91.629671][ T9859] dump_stack+0x197/0x210 [ 91.629690][ T9859] panic+0x2e3/0x75c [ 91.629704][ T9859] ? add_taint.cold+0x16/0x16 [ 91.629721][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.629741][ T9859] ? preempt_schedule+0x4b/0x60 [ 91.629757][ T9859] ? ___preempt_schedule+0x16/0x18 [ 91.629780][ T9859] ? trace_hardirqs_on+0x5e/0x240 [ 91.688103][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.688119][ T9859] end_report+0x47/0x4f [ 91.688132][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.688146][ T9859] __kasan_report.cold+0xe/0x41 [ 91.688160][ T9859] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 91.688174][ T9859] kasan_report+0x12/0x20 [ 91.688189][ T9859] __asan_report_load1_noabort+0x14/0x20 [ 91.688202][ T9859] n_tty_receive_buf_common+0x270f/0x2b70 [ 91.688214][ T9859] ? __kasan_check_read+0x11/0x20 [ 91.688238][ T9859] n_tty_receive_buf2+0x34/0x40 [ 91.740301][ T9859] tty_ldisc_receive_buf+0xad/0x1c0 [ 91.740316][ T9859] ? add_wait_queue+0x112/0x170 [ 91.740329][ T9859] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 91.740346][ T9859] paste_selection+0x1ff/0x460 [ 91.740363][ T9859] ? vcs_remove_sysfs+0x60/0x60 [ 91.740377][ T9859] ? lock_downgrade+0x920/0x920 [ 91.740392][ T9859] ? wake_up_q+0x140/0x140 [ 91.740410][ T9859] tioclinux+0x133/0x480 [ 91.740423][ T9859] vt_ioctl+0x1a41/0x26d0 [ 91.740437][ T9859] ? complete_change_console+0x3a0/0x3a0 [ 91.740456][ T9859] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 91.740475][ T9859] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 91.740490][ T9859] ? tty_jobctrl_ioctl+0x50/0xd40 [ 91.740503][ T9859] ? complete_change_console+0x3a0/0x3a0 [ 91.740515][ T9859] tty_ioctl+0xa37/0x14f0 [ 91.740527][ T9859] ? tty_vhangup+0x30/0x30 [ 91.740547][ T9859] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 91.826949][ T9859] ? do_vfs_ioctl+0x11b/0x1340 [ 91.826964][ T9859] ? ioctl_file_clone+0x180/0x180 [ 91.826982][ T9859] ? __kasan_check_write+0x14/0x20 [ 91.827000][ T9859] ? up_read+0x1cd/0x810 [ 91.827019][ T9859] ? tomoyo_file_ioctl+0x23/0x30 [ 91.827037][ T9859] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 91.827053][ T9859] ? security_file_ioctl+0x8d/0xc0 [ 91.827064][ T9859] ? tty_vhangup+0x30/0x30 [ 91.827084][ T9859] ksys_ioctl+0x123/0x180 [ 91.871345][ T9859] __x64_sys_ioctl+0x73/0xb0 [ 91.871366][ T9859] do_syscall_64+0xfa/0x790 [ 91.871396][ T9859] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 91.871407][ T9859] RIP: 0033:0x441319 [ 91.871422][ T9859] Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 91.871429][ T9859] RSP: 002b:00007fffd9b1f0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 91.871440][ T9859] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 91.871456][ T9859] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 91.934389][ T9859] RBP: 000000000001631d R08: 000000000000000d R09: 00000000004002c8 [ 91.934396][ T9859] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 91.934402][ T9859] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 91.935662][ T9859] Kernel Offset: disabled [ 91.963902][ T9859] Rebooting in 86400 seconds..