Warning: Permanently added '10.128.10.61' (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 syzkaller login: [ 60.059235] kauditd_printk_skb: 3 callbacks suppressed [ 60.059249] audit: type=1400 audit(1576370475.768:36): avc: denied { map } for pid=7744 comm="syz-executor462" path="/root/syz-executor462864216" dev="sda1" ino=16484 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 61.703202] ================================================================== [ 61.703252] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.703263] Read of size 1 at addr ffff88809fe040c1 by task syz-executor462/7996 [ 61.703267] [ 61.703282] CPU: 1 PID: 7996 Comm: syz-executor462 Not tainted 4.19.89-syzkaller #0 [ 61.703289] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.703294] Call Trace: [ 61.703314] dump_stack+0x197/0x210 [ 61.703329] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.703349] print_address_description.cold+0x7c/0x20d [ 61.703364] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.703378] kasan_report.cold+0x8c/0x2ba [ 61.703396] __asan_report_load1_noabort+0x14/0x20 [ 61.703410] n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.703427] ? find_held_lock+0x35/0x130 [ 61.703454] n_tty_receive_buf2+0x34/0x40 [ 61.703471] tty_ldisc_receive_buf+0xad/0x1c0 [ 61.703487] ? add_wait_queue+0x112/0x170 [ 61.703499] ? n_tty_receive_buf_common+0x2ab0/0x2ab0 [ 61.703518] paste_selection+0x1ff/0x443 [ 61.703537] ? set_selection+0x1370/0x1370 [ 61.703554] ? lock_downgrade+0x880/0x880 [ 61.703566] ? wake_up_q+0x100/0x100 [ 61.703588] tioclinux+0x133/0x470 [ 61.703604] vt_ioctl+0x19ab/0x2530 [ 61.703620] ? complete_change_console+0x3a0/0x3a0 [ 61.703639] ? avc_has_extended_perms+0xa78/0x10f0 [ 61.703659] ? avc_ss_reset+0x190/0x190 [ 61.703672] ? save_stack+0xa9/0xd0 [ 61.703685] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 61.703701] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 61.703716] ? complete_change_console+0x3a0/0x3a0 [ 61.703730] tty_ioctl+0x7f3/0x1510 [ 61.703744] ? tty_vhangup+0x30/0x30 [ 61.703757] ? find_held_lock+0x35/0x130 [ 61.703772] ? debug_check_no_obj_freed+0x200/0x464 [ 61.703802] ? __might_sleep+0x95/0x190 [ 61.703816] ? trace_hardirqs_off+0x62/0x220 [ 61.703829] ? tty_vhangup+0x30/0x30 [ 61.703846] do_vfs_ioctl+0xd5f/0x1380 [ 61.703861] ? selinux_file_ioctl+0x46f/0x5e0 [ 61.703873] ? selinux_file_ioctl+0x125/0x5e0 [ 61.703887] ? ioctl_preallocate+0x210/0x210 [ 61.703900] ? selinux_file_mprotect+0x620/0x620 [ 61.703911] ? putname+0xef/0x130 [ 61.703925] ? kmem_cache_free+0x222/0x260 [ 61.703939] ? putname+0xf4/0x130 [ 61.703955] ? do_sys_open+0x31d/0x550 [ 61.703972] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 61.703985] ? security_file_ioctl+0x8d/0xc0 [ 61.704002] ksys_ioctl+0xab/0xd0 [ 61.704017] __x64_sys_ioctl+0x73/0xb0 [ 61.704035] do_syscall_64+0xfd/0x620 [ 61.704056] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.704065] RIP: 0033:0x441319 [ 61.704075] 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 [ 61.704081] RSP: 002b:00007ffefa624668 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 61.704092] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 61.704099] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000004 [ 61.704105] RBP: 000000000000f0b0 R08: 000000000000000d R09: 00000000004002c8 [ 61.704111] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 61.704127] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 61.704142] [ 61.704148] Allocated by task 7996: [ 61.704161] save_stack+0x45/0xd0 [ 61.704172] kasan_kmalloc+0xce/0xf0 [ 61.704182] __kmalloc+0x15d/0x750 [ 61.704194] set_selection+0x7e4/0x1370 [ 61.704204] tioclinux+0x11c/0x470 [ 61.704216] vt_ioctl+0x19ab/0x2530 [ 61.704225] tty_ioctl+0x7f3/0x1510 [ 61.704236] do_vfs_ioctl+0xd5f/0x1380 [ 61.704245] ksys_ioctl+0xab/0xd0 [ 61.704255] __x64_sys_ioctl+0x73/0xb0 [ 61.704266] do_syscall_64+0xfd/0x620 [ 61.704278] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.704282] [ 61.704287] Freed by task 7993: [ 61.704298] save_stack+0x45/0xd0 [ 61.704309] __kasan_slab_free+0x102/0x150 [ 61.704321] kasan_slab_free+0xe/0x10 [ 61.704330] kfree+0xcf/0x220 [ 61.704342] set_selection+0x801/0x1370 [ 61.704352] tioclinux+0x11c/0x470 [ 61.704363] vt_ioctl+0x19ab/0x2530 [ 61.704372] tty_ioctl+0x7f3/0x1510 [ 61.704382] do_vfs_ioctl+0xd5f/0x1380 [ 61.704393] ksys_ioctl+0xab/0xd0 [ 61.704403] __x64_sys_ioctl+0x73/0xb0 [ 61.704414] do_syscall_64+0xfd/0x620 [ 61.704426] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.704429] [ 61.704438] The buggy address belongs to the object at ffff88809fe040c0 [ 61.704438] which belongs to the cache kmalloc-512 of size 512 [ 61.704448] The buggy address is located 1 bytes inside of [ 61.704448] 512-byte region [ffff88809fe040c0, ffff88809fe042c0) [ 61.704452] The buggy address belongs to the page: [ 61.704462] page:ffffea00027f8100 count:1 mapcount:0 mapping:ffff88812c31c940 index:0x0 [ 61.704471] flags: 0xfffe0000000100(slab) [ 61.704486] raw: 00fffe0000000100 ffffea00027e4048 ffffea00027dc988 ffff88812c31c940 [ 61.704495] raw: 0000000000000000 ffff88809fe040c0 0000000100000006 0000000000000000 [ 61.704499] page dumped because: kasan: bad access detected [ 61.704500] [ 61.704503] Memory state around the buggy address: [ 61.704510] ffff88809fe03f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 61.704516] ffff88809fe04000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 61.704522] >ffff88809fe04080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 61.704525] ^ [ 61.704530] ffff88809fe04100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.704536] ffff88809fe04180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.704539] ================================================================== [ 61.704542] Disabling lock debugging due to kernel taint [ 61.704682] Kernel panic - not syncing: panic_on_warn set ... [ 61.704682] [ 61.704692] CPU: 1 PID: 7996 Comm: syz-executor462 Tainted: G B 4.19.89-syzkaller #0 [ 61.704697] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.704699] Call Trace: [ 61.704711] dump_stack+0x197/0x210 [ 61.704721] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.704729] panic+0x26a/0x50e [ 61.704735] ? __warn_printk+0xf3/0xf3 [ 61.704743] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.704753] ? preempt_schedule+0x4b/0x60 [ 61.704762] ? ___preempt_schedule+0x16/0x18 [ 61.704775] ? trace_hardirqs_on+0x5e/0x220 [ 61.704788] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.704798] kasan_end_report+0x47/0x4f [ 61.704810] kasan_report.cold+0xa9/0x2ba [ 61.704824] __asan_report_load1_noabort+0x14/0x20 [ 61.704834] n_tty_receive_buf_common+0x26a4/0x2ab0 [ 61.704847] ? find_held_lock+0x35/0x130 [ 61.704867] n_tty_receive_buf2+0x34/0x40 [ 61.704881] tty_ldisc_receive_buf+0xad/0x1c0 [ 61.704893] ? add_wait_queue+0x112/0x170 [ 61.704903] ? n_tty_receive_buf_common+0x2ab0/0x2ab0 [ 61.704917] paste_selection+0x1ff/0x443 [ 61.704932] ? set_selection+0x1370/0x1370 [ 61.704947] ? lock_downgrade+0x880/0x880 [ 61.704958] ? wake_up_q+0x100/0x100 [ 61.704973] tioclinux+0x133/0x470 [ 61.704987] vt_ioctl+0x19ab/0x2530 [ 61.705001] ? complete_change_console+0x3a0/0x3a0 [ 61.705016] ? avc_has_extended_perms+0xa78/0x10f0 [ 61.705034] ? avc_ss_reset+0x190/0x190 [ 61.705045] ? save_stack+0xa9/0xd0 [ 61.705055] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 61.705069] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 61.705082] ? complete_change_console+0x3a0/0x3a0 [ 61.705095] tty_ioctl+0x7f3/0x1510 [ 61.705107] ? tty_vhangup+0x30/0x30 [ 61.705127] ? find_held_lock+0x35/0x130 [ 61.705138] ? debug_check_no_obj_freed+0x200/0x464 [ 61.705153] ? __might_sleep+0x95/0x190 [ 61.705160] ? trace_hardirqs_off+0x62/0x220 [ 61.705166] ? tty_vhangup+0x30/0x30 [ 61.705174] do_vfs_ioctl+0xd5f/0x1380 [ 61.705182] ? selinux_file_ioctl+0x46f/0x5e0 [ 61.705189] ? selinux_file_ioctl+0x125/0x5e0 [ 61.705196] ? ioctl_preallocate+0x210/0x210 [ 61.705204] ? selinux_file_mprotect+0x620/0x620 [ 61.705210] ? putname+0xef/0x130 [ 61.705217] ? kmem_cache_free+0x222/0x260 [ 61.705223] ? putname+0xf4/0x130 [ 61.705232] ? do_sys_open+0x31d/0x550 [ 61.705241] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 61.705248] ? security_file_ioctl+0x8d/0xc0 [ 61.705256] ksys_ioctl+0xab/0xd0 [ 61.705263] __x64_sys_ioctl+0x73/0xb0 [ 61.705271] do_syscall_64+0xfd/0x620 [ 61.705280] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.705286] RIP: 0033:0x441319 [ 61.705293] 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 [ 61.705297] RSP: 002b:00007ffefa624668 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 61.705305] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 61.705309] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000004 [ 61.705313] RBP: 000000000000f0b0 R08: 000000000000000d R09: 00000000004002c8 [ 61.705317] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 61.705321] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 61.706765] Kernel Offset: disabled