Warning: Permanently added '10.128.0.221' (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 syzkaller login: [ 93.538505][ T9110] ================================================================== [ 93.538562][ T9110] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 93.538574][ T9110] Read of size 1 at addr ffff888096930001 by task syz-executor447/9110 [ 93.538578][ T9110] [ 93.538593][ T9110] CPU: 0 PID: 9110 Comm: syz-executor447 Not tainted 5.5.0-rc1-syzkaller #0 [ 93.538602][ T9110] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 93.538607][ T9110] Call Trace: [ 93.538625][ T9110] dump_stack+0x197/0x210 [ 93.538640][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.538660][ T9110] print_address_description.constprop.0.cold+0xd4/0x30b [ 93.538681][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.538697][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.538711][ T9110] __kasan_report.cold+0x1b/0x41 [ 93.538726][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.538739][ T9110] kasan_report+0x12/0x20 [ 93.538754][ T9110] __asan_report_load1_noabort+0x14/0x20 [ 93.538768][ T9110] n_tty_receive_buf_common+0x270f/0x2b70 [ 93.538780][ T9110] ? __kasan_check_read+0x11/0x20 [ 93.538812][ T9110] n_tty_receive_buf2+0x34/0x40 [ 93.538829][ T9110] tty_ldisc_receive_buf+0xad/0x1c0 [ 93.538840][ T9110] ? add_wait_queue+0x112/0x170 [ 93.538852][ T9110] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 93.538867][ T9110] paste_selection+0x1ff/0x460 [ 93.538884][ T9110] ? vcs_remove_sysfs+0x60/0x60 [ 93.538897][ T9110] ? lock_downgrade+0x920/0x920 [ 93.538913][ T9110] ? wake_up_q+0x140/0x140 [ 93.538938][ T9110] tioclinux+0x133/0x480 [ 93.538956][ T9110] vt_ioctl+0x1a41/0x26d0 [ 93.538973][ T9110] ? complete_change_console+0x3a0/0x3a0 [ 93.538990][ T9110] ? lock_downgrade+0x920/0x920 [ 93.539004][ T9110] ? rwlock_bug.part.0+0x90/0x90 [ 93.539019][ T9110] ? tomoyo_path_number_perm+0x214/0x520 [ 93.539032][ T9110] ? find_held_lock+0x35/0x130 [ 93.539045][ T9110] ? tomoyo_path_number_perm+0x214/0x520 [ 93.539060][ T9110] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 93.539076][ T9110] ? tty_jobctrl_ioctl+0x50/0xd40 [ 93.539090][ T9110] ? complete_change_console+0x3a0/0x3a0 [ 93.539104][ T9110] tty_ioctl+0xa37/0x14f0 [ 93.539120][ T9110] ? tty_vhangup+0x30/0x30 [ 93.539131][ T9110] ? tomoyo_path_number_perm+0x454/0x520 [ 93.539148][ T9110] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 93.539160][ T9110] ? tomoyo_path_number_perm+0x25e/0x520 [ 93.539177][ T9110] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 93.539209][ T9110] ? tty_vhangup+0x30/0x30 [ 93.539246][ T9110] do_vfs_ioctl+0x977/0x14e0 [ 93.539264][ T9110] ? compat_ioctl_preallocate+0x220/0x220 [ 93.539280][ T9110] ? kmem_cache_free+0x26b/0x320 [ 93.539296][ T9110] ? putname+0xf4/0x130 [ 93.539310][ T9110] ? do_sys_open+0x31d/0x5d0 [ 93.539328][ T9110] ? tomoyo_file_ioctl+0x23/0x30 [ 93.539342][ T9110] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 93.539354][ T9110] ? security_file_ioctl+0x8d/0xc0 [ 93.539370][ T9110] ksys_ioctl+0xab/0xd0 [ 93.539385][ T9110] __x64_sys_ioctl+0x73/0xb0 [ 93.539403][ T9110] do_syscall_64+0xfa/0x790 [ 93.539420][ T9110] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.539432][ T9110] RIP: 0033:0x445079 [ 93.539447][ T9110] 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 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 93.539455][ T9110] RSP: 002b:00007ffe0bbce128 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 93.539468][ T9110] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445079 [ 93.539476][ T9110] RDX: 0000000020000140 RSI: 000000000000541c RDI: 0000000000000005 [ 93.539484][ T9110] RBP: 0000000000016cde R08: 000000000000000d R09: 00000000004002e0 [ 93.539491][ T9110] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402210 [ 93.539499][ T9110] R13: 00000000004022a0 R14: 0000000000000000 R15: 0000000000000000 [ 93.539518][ T9110] [ 93.539524][ T9110] Allocated by task 9108: [ 93.539535][ T9110] save_stack+0x23/0x90 [ 93.539546][ T9110] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 93.539557][ T9110] kasan_kmalloc+0x9/0x10 [ 93.539567][ T9110] __kmalloc+0x163/0x770 [ 93.539578][ T9110] set_selection_kernel+0x872/0x13b0 [ 93.539588][ T9110] set_selection_user+0x95/0xd9 [ 93.539600][ T9110] tioclinux+0x11c/0x480 [ 93.539611][ T9110] vt_ioctl+0x1a41/0x26d0 [ 93.539622][ T9110] tty_ioctl+0xa37/0x14f0 [ 93.539632][ T9110] do_vfs_ioctl+0x977/0x14e0 [ 93.539642][ T9110] ksys_ioctl+0xab/0xd0 [ 93.539652][ T9110] __x64_sys_ioctl+0x73/0xb0 [ 93.539664][ T9110] do_syscall_64+0xfa/0x790 [ 93.539676][ T9110] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.539679][ T9110] [ 93.539685][ T9110] Freed by task 9112: [ 93.539695][ T9110] save_stack+0x23/0x90 [ 93.539706][ T9110] __kasan_slab_free+0x102/0x150 [ 93.539716][ T9110] kasan_slab_free+0xe/0x10 [ 93.539725][ T9110] kfree+0x10a/0x2c0 [ 93.539736][ T9110] set_selection_kernel+0x88f/0x13b0 [ 93.539747][ T9110] set_selection_user+0x95/0xd9 [ 93.539759][ T9110] tioclinux+0x11c/0x480 [ 93.539774][ T9110] vt_ioctl+0x1a41/0x26d0 [ 93.539786][ T9110] tty_ioctl+0xa37/0x14f0 [ 93.539797][ T9110] do_vfs_ioctl+0x977/0x14e0 [ 93.539808][ T9110] ksys_ioctl+0xab/0xd0 [ 93.539819][ T9110] __x64_sys_ioctl+0x73/0xb0 [ 93.539832][ T9110] do_syscall_64+0xfa/0x790 [ 93.539845][ T9110] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.539849][ T9110] [ 93.539859][ T9110] The buggy address belongs to the object at ffff888096930000 [ 93.539859][ T9110] which belongs to the cache kmalloc-8k of size 8192 [ 93.539869][ T9110] The buggy address is located 1 bytes inside of [ 93.539869][ T9110] 8192-byte region [ffff888096930000, ffff888096932000) [ 93.539874][ T9110] The buggy address belongs to the page: [ 93.539888][ T9110] page:ffffea00025a4c00 refcount:1 mapcount:0 mapping:ffff8880aa4021c0 index:0x0 compound_mapcount: 0 [ 93.539907][ T9110] raw: 00fffe0000010200 ffffea000258fd08 ffffea0002314108 ffff8880aa4021c0 [ 93.539921][ T9110] raw: 0000000000000000 ffff888096930000 0000000100000001 0000000000000000 [ 93.539927][ T9110] page dumped because: kasan: bad access detected [ 93.539931][ T9110] [ 93.539935][ T9110] Memory state around the buggy address: [ 93.539945][ T9110] ffff88809692ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 93.539954][ T9110] ffff88809692ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 93.539965][ T9110] >ffff888096930000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.539970][ T9110] ^ [ 93.539980][ T9110] ffff888096930080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.539991][ T9110] ffff888096930100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.539996][ T9110] ================================================================== [ 93.540001][ T9110] Disabling lock debugging due to kernel taint [ 93.541457][ T9110] Kernel panic - not syncing: panic_on_warn set ... [ 93.541474][ T9110] CPU: 0 PID: 9110 Comm: syz-executor447 Tainted: G B 5.5.0-rc1-syzkaller #0 [ 93.541481][ T9110] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 93.541485][ T9110] Call Trace: [ 93.541503][ T9110] dump_stack+0x197/0x210 [ 93.541519][ T9110] panic+0x2e3/0x75c [ 93.541532][ T9110] ? add_taint.cold+0x16/0x16 [ 93.541549][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.541565][ T9110] ? preempt_schedule+0x4b/0x60 [ 93.541580][ T9110] ? ___preempt_schedule+0x16/0x18 [ 93.541596][ T9110] ? trace_hardirqs_on+0x5e/0x240 [ 93.541611][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.541624][ T9110] end_report+0x47/0x4f [ 93.541637][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.541650][ T9110] __kasan_report.cold+0xe/0x41 [ 93.541666][ T9110] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 93.541679][ T9110] kasan_report+0x12/0x20 [ 93.541693][ T9110] __asan_report_load1_noabort+0x14/0x20 [ 93.541707][ T9110] n_tty_receive_buf_common+0x270f/0x2b70 [ 93.541718][ T9110] ? __kasan_check_read+0x11/0x20 [ 93.541742][ T9110] n_tty_receive_buf2+0x34/0x40 [ 93.541757][ T9110] tty_ldisc_receive_buf+0xad/0x1c0 [ 93.541769][ T9110] ? add_wait_queue+0x112/0x170 [ 93.541782][ T9110] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 93.541795][ T9110] paste_selection+0x1ff/0x460 [ 93.541815][ T9110] ? vcs_remove_sysfs+0x60/0x60 [ 93.541827][ T9110] ? lock_downgrade+0x920/0x920 [ 93.541842][ T9110] ? wake_up_q+0x140/0x140 [ 93.541862][ T9110] tioclinux+0x133/0x480 [ 93.541876][ T9110] vt_ioctl+0x1a41/0x26d0 [ 93.541892][ T9110] ? complete_change_console+0x3a0/0x3a0 [ 93.541903][ T9110] ? lock_downgrade+0x920/0x920 [ 93.541917][ T9110] ? rwlock_bug.part.0+0x90/0x90 [ 93.541932][ T9110] ? tomoyo_path_number_perm+0x214/0x520 [ 93.541943][ T9110] ? find_held_lock+0x35/0x130 [ 93.541957][ T9110] ? tomoyo_path_number_perm+0x214/0x520 [ 93.541970][ T9110] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 93.541981][ T9110] ? tty_jobctrl_ioctl+0x50/0xd40 [ 93.541994][ T9110] ? complete_change_console+0x3a0/0x3a0 [ 93.542007][ T9110] tty_ioctl+0xa37/0x14f0 [ 93.542021][ T9110] ? tty_vhangup+0x30/0x30 [ 93.542032][ T9110] ? tomoyo_path_number_perm+0x454/0x520 [ 93.542044][ T9110] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 93.542055][ T9110] ? tomoyo_path_number_perm+0x25e/0x520 [ 93.542069][ T9110] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 93.542090][ T9110] ? tty_vhangup+0x30/0x30 [ 93.542102][ T9110] do_vfs_ioctl+0x977/0x14e0 [ 93.542116][ T9110] ? compat_ioctl_preallocate+0x220/0x220 [ 93.542128][ T9110] ? kmem_cache_free+0x26b/0x320 [ 93.542142][ T9110] ? putname+0xf4/0x130 [ 93.542154][ T9110] ? do_sys_open+0x31d/0x5d0 [ 93.542168][ T9110] ? tomoyo_file_ioctl+0x23/0x30 [ 93.542181][ T9110] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 93.542192][ T9110] ? security_file_ioctl+0x8d/0xc0 [ 93.542205][ T9110] ksys_ioctl+0xab/0xd0 [ 93.542224][ T9110] __x64_sys_ioctl+0x73/0xb0 [ 93.542238][ T9110] do_syscall_64+0xfa/0x790 [ 93.542252][ T9110] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 93.542261][ T9110] RIP: 0033:0x445079 [ 93.542273][ T9110] 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 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 93.542280][ T9110] RSP: 002b:00007ffe0bbce128 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 93.542292][ T9110] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445079 [ 93.542299][ T9110] RDX: 0000000020000140 RSI: 000000000000541c RDI: 0000000000000005 [ 93.542306][ T9110] RBP: 0000000000016cde R08: 000000000000000d R09: 00000000004002e0 [ 93.542312][ T9110] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402210 [ 93.542319][ T9110] R13: 00000000004022a0 R14: 0000000000000000 R15: 0000000000000000 [ 93.543565][ T9110] Kernel Offset: disabled [ 94.571069][ T9110] Rebooting in 86400 seconds..