Warning: Permanently added '10.128.0.166' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 110.531057][ T9641] ================================================================== [ 110.531124][ T9641] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 110.531136][ T9641] Read of size 1 at addr ffff88809dd02402 by task syz-executor478/9641 [ 110.531140][ T9641] [ 110.531155][ T9641] CPU: 1 PID: 9641 Comm: syz-executor478 Not tainted 5.5.0-rc2-next-20191220-syzkaller #0 [ 110.531164][ T9641] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 110.531168][ T9641] Call Trace: [ 110.531184][ T9641] dump_stack+0x197/0x210 [ 110.531199][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 110.531219][ T9641] print_address_description.constprop.0.cold+0xd4/0x30b [ 110.531232][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 110.531246][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 110.531261][ T9641] __kasan_report.cold+0x1b/0x41 [ 110.531277][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 110.531297][ T9641] kasan_report+0x12/0x20 [ 110.625753][ T9641] __asan_report_load1_noabort+0x14/0x20 [ 110.625771][ T9641] n_tty_receive_buf_common+0x270f/0x2b70 [ 110.625784][ T9641] ? __kasan_check_read+0x11/0x20 [ 110.625813][ T9641] n_tty_receive_buf2+0x34/0x40 [ 110.625830][ T9641] tty_ldisc_receive_buf+0xad/0x1c0 [ 110.625844][ T9641] ? add_wait_queue+0x112/0x170 [ 110.625857][ T9641] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 110.625875][ T9641] paste_selection+0x1ff/0x460 [ 110.625895][ T9641] ? vcs_remove_sysfs+0x60/0x60 [ 110.625915][ T9641] ? lock_downgrade+0x920/0x920 [ 110.677308][ T9641] ? wake_up_q+0x140/0x140 [ 110.677332][ T9641] tioclinux+0x133/0x480 [ 110.677350][ T9641] vt_ioctl+0x1a41/0x26d0 [ 110.677368][ T9641] ? complete_change_console+0x3a0/0x3a0 [ 110.677389][ T9641] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 110.677412][ T9641] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 110.677429][ T9641] ? tty_jobctrl_ioctl+0x50/0xd40 [ 110.677444][ T9641] ? complete_change_console+0x3a0/0x3a0 [ 110.677459][ T9641] tty_ioctl+0xa37/0x14f0 [ 110.677474][ T9641] ? tty_vhangup+0x30/0x30 [ 110.677489][ T9641] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 110.677503][ T9641] ? do_vfs_ioctl+0x11b/0x1340 [ 110.677522][ T9641] ? ioctl_file_clone+0x180/0x180 [ 110.677545][ T9641] ? __kasan_check_write+0x14/0x20 [ 110.747980][ T9641] ? up_read+0x1cd/0x810 [ 110.748002][ T9641] ? tomoyo_file_ioctl+0x23/0x30 [ 110.748018][ T9641] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 110.748034][ T9641] ? security_file_ioctl+0x8d/0xc0 [ 110.748046][ T9641] ? tty_vhangup+0x30/0x30 [ 110.748064][ T9641] ksys_ioctl+0x123/0x180 [ 110.748087][ T9641] __x64_sys_ioctl+0x73/0xb0 [ 110.748104][ T9641] do_syscall_64+0xfa/0x790 [ 110.748124][ T9641] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 110.792195][ T9641] RIP: 0033:0x441329 [ 110.792209][ T9641] 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 [ 110.792216][ T9641] RSP: 002b:00007ffed03ec0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 110.792228][ T9641] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 110.792236][ T9641] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 110.792244][ T9641] RBP: 000000000001af5a R08: 00000000004002c8 R09: 00000000004002c8 [ 110.792252][ T9641] R10: 000000000000000d R11: 0000000000000246 R12: 00000000004020a0 [ 110.792260][ T9641] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 110.792280][ T9641] [ 110.792287][ T9641] Allocated by task 9643: [ 110.792303][ T9641] save_stack+0x23/0x90 [ 110.792317][ T9641] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 110.792333][ T9641] kasan_kmalloc+0x9/0x10 [ 110.885634][ T9641] __kmalloc+0x163/0x770 [ 110.885648][ T9641] set_selection_kernel+0x872/0x13b0 [ 110.885659][ T9641] set_selection_user+0x95/0xd9 [ 110.885671][ T9641] tioclinux+0x11c/0x480 [ 110.885683][ T9641] vt_ioctl+0x1a41/0x26d0 [ 110.885694][ T9641] tty_ioctl+0xa37/0x14f0 [ 110.885706][ T9641] ksys_ioctl+0x123/0x180 [ 110.885719][ T9641] __x64_sys_ioctl+0x73/0xb0 [ 110.885733][ T9641] do_syscall_64+0xfa/0x790 [ 110.885747][ T9641] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 110.885751][ T9641] [ 110.885757][ T9641] Freed by task 9644: [ 110.885769][ T9641] save_stack+0x23/0x90 [ 110.885782][ T9641] __kasan_slab_free+0x102/0x150 [ 110.885793][ T9641] kasan_slab_free+0xe/0x10 [ 110.885803][ T9641] kfree+0x10a/0x2c0 [ 110.885816][ T9641] set_selection_kernel+0x88f/0x13b0 [ 110.885829][ T9641] set_selection_user+0x95/0xd9 [ 110.885840][ T9641] tioclinux+0x11c/0x480 [ 110.885852][ T9641] vt_ioctl+0x1a41/0x26d0 [ 110.885862][ T9641] tty_ioctl+0xa37/0x14f0 [ 110.885879][ T9641] ksys_ioctl+0x123/0x180 [ 110.992265][ T9641] __x64_sys_ioctl+0x73/0xb0 [ 110.992280][ T9641] do_syscall_64+0xfa/0x790 [ 110.992292][ T9641] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 110.992296][ T9641] [ 110.992307][ T9641] The buggy address belongs to the object at ffff88809dd02400 [ 110.992307][ T9641] which belongs to the cache kmalloc-512 of size 512 [ 110.992319][ T9641] The buggy address is located 2 bytes inside of [ 110.992319][ T9641] 512-byte region [ffff88809dd02400, ffff88809dd02600) [ 110.992324][ T9641] The buggy address belongs to the page: [ 110.992338][ T9641] page:ffffea0002774080 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0xffff88809dd02000 [ 110.992358][ T9641] raw: 00fffe0000000200 ffffea00029cf908 ffffea00026a4088 ffff8880aa400a80 [ 110.992374][ T9641] raw: ffff88809dd02000 ffff88809dd02000 0000000100000003 0000000000000000 [ 110.992381][ T9641] page dumped because: kasan: bad access detected [ 110.992385][ T9641] [ 110.992390][ T9641] Memory state around the buggy address: [ 110.992402][ T9641] ffff88809dd02300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 110.992412][ T9641] ffff88809dd02380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 110.992423][ T9641] >ffff88809dd02400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 110.992428][ T9641] ^ [ 110.992438][ T9641] ffff88809dd02480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 110.992448][ T9641] ffff88809dd02500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 110.992454][ T9641] ================================================================== [ 110.992458][ T9641] Disabling lock debugging due to kernel taint [ 110.993219][ T9641] Kernel panic - not syncing: panic_on_warn set ... [ 111.149333][ T9641] CPU: 1 PID: 9641 Comm: syz-executor478 Tainted: G B 5.5.0-rc2-next-20191220-syzkaller #0 [ 111.149339][ T9641] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 111.149343][ T9641] Call Trace: [ 111.149362][ T9641] dump_stack+0x197/0x210 [ 111.149378][ T9641] panic+0x2e3/0x75c [ 111.149391][ T9641] ? add_taint.cold+0x16/0x16 [ 111.149405][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 111.149419][ T9641] ? preempt_schedule+0x4b/0x60 [ 111.149434][ T9641] ? ___preempt_schedule+0x16/0x18 [ 111.149449][ T9641] ? trace_hardirqs_on+0x5e/0x240 [ 111.149467][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 111.213430][ T9641] end_report+0x47/0x4f [ 111.213444][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 111.213455][ T9641] __kasan_report.cold+0xe/0x41 [ 111.213470][ T9641] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 111.213484][ T9641] kasan_report+0x12/0x20 [ 111.213499][ T9641] __asan_report_load1_noabort+0x14/0x20 [ 111.213512][ T9641] n_tty_receive_buf_common+0x270f/0x2b70 [ 111.213525][ T9641] ? __kasan_check_read+0x11/0x20 [ 111.213551][ T9641] n_tty_receive_buf2+0x34/0x40 [ 111.213566][ T9641] tty_ldisc_receive_buf+0xad/0x1c0 [ 111.213577][ T9641] ? add_wait_queue+0x112/0x170 [ 111.213590][ T9641] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 111.213605][ T9641] paste_selection+0x1ff/0x460 [ 111.213621][ T9641] ? vcs_remove_sysfs+0x60/0x60 [ 111.213633][ T9641] ? lock_downgrade+0x920/0x920 [ 111.213647][ T9641] ? wake_up_q+0x140/0x140 [ 111.213665][ T9641] tioclinux+0x133/0x480 [ 111.213679][ T9641] vt_ioctl+0x1a41/0x26d0 [ 111.213694][ T9641] ? complete_change_console+0x3a0/0x3a0 [ 111.213710][ T9641] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 111.213730][ T9641] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 111.320615][ T9641] ? tty_jobctrl_ioctl+0x50/0xd40 [ 111.320628][ T9641] ? complete_change_console+0x3a0/0x3a0 [ 111.320640][ T9641] tty_ioctl+0xa37/0x14f0 [ 111.320653][ T9641] ? tty_vhangup+0x30/0x30 [ 111.320668][ T9641] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 111.320682][ T9641] ? do_vfs_ioctl+0x11b/0x1340 [ 111.320697][ T9641] ? ioctl_file_clone+0x180/0x180 [ 111.320713][ T9641] ? __kasan_check_write+0x14/0x20 [ 111.320726][ T9641] ? up_read+0x1cd/0x810 [ 111.320745][ T9641] ? tomoyo_file_ioctl+0x23/0x30 [ 111.370178][ T9641] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 111.370198][ T9641] ? security_file_ioctl+0x8d/0xc0 [ 111.370209][ T9641] ? tty_vhangup+0x30/0x30 [ 111.370224][ T9641] ksys_ioctl+0x123/0x180 [ 111.370239][ T9641] __x64_sys_ioctl+0x73/0xb0 [ 111.370255][ T9641] do_syscall_64+0xfa/0x790 [ 111.370271][ T9641] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 111.370281][ T9641] RIP: 0033:0x441329 [ 111.370295][ T9641] 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 [ 111.370302][ T9641] RSP: 002b:00007ffed03ec0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 111.370314][ T9641] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 111.370322][ T9641] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 111.370329][ T9641] RBP: 000000000001af5a R08: 00000000004002c8 R09: 00000000004002c8 [ 111.370336][ T9641] R10: 000000000000000d R11: 0000000000000246 R12: 00000000004020a0 [ 111.370343][ T9641] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 111.377939][ T9641] Kernel Offset: disabled [ 111.482700][ T9641] Rebooting in 86400 seconds..