[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 67.877337][ T27] audit: type=1800 audit(1577185701.032:25): pid=9214 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 67.897051][ T27] audit: type=1800 audit(1577185701.042:26): pid=9214 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 67.944851][ T27] audit: type=1800 audit(1577185701.042:27): pid=9214 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.66' (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 syzkaller login: [ 82.140924][ T9415] ================================================================== [ 82.149480][ T9415] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 82.149497][ T9415] Read of size 1 at addr ffff8880a954fc01 by task syz-executor688/9415 [ 82.149500][ T9415] [ 82.149516][ T9415] CPU: 0 PID: 9415 Comm: syz-executor688 Not tainted 5.5.0-rc2-next-20191220-syzkaller #0 [ 82.149524][ T9415] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 82.149529][ T9415] Call Trace: [ 82.149546][ T9415] dump_stack+0x197/0x210 [ 82.149574][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.149595][ T9415] print_address_description.constprop.0.cold+0xd4/0x30b [ 82.149615][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.214875][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.214891][ T9415] __kasan_report.cold+0x1b/0x41 [ 82.214908][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.214925][ T9415] kasan_report+0x12/0x20 [ 82.214941][ T9415] __asan_report_load1_noabort+0x14/0x20 [ 82.214955][ T9415] n_tty_receive_buf_common+0x270f/0x2b70 [ 82.214968][ T9415] ? __kasan_check_read+0x11/0x20 [ 82.215001][ T9415] n_tty_receive_buf2+0x34/0x40 [ 82.215020][ T9415] tty_ldisc_receive_buf+0xad/0x1c0 [ 82.215034][ T9415] ? add_wait_queue+0x112/0x170 [ 82.215048][ T9415] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 82.215068][ T9415] paste_selection+0x1ff/0x460 [ 82.215090][ T9415] ? vcs_remove_sysfs+0x60/0x60 [ 82.215106][ T9415] ? lock_downgrade+0x920/0x920 [ 82.215123][ T9415] ? wake_up_q+0x140/0x140 [ 82.215147][ T9415] tioclinux+0x133/0x480 [ 82.215176][ T9415] vt_ioctl+0x1a41/0x26d0 [ 82.215194][ T9415] ? complete_change_console+0x3a0/0x3a0 [ 82.215215][ T9415] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 82.215241][ T9415] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 82.215258][ T9415] ? tty_jobctrl_ioctl+0x50/0xd40 [ 82.323821][ T9415] ? complete_change_console+0x3a0/0x3a0 [ 82.323835][ T9415] tty_ioctl+0xa37/0x14f0 [ 82.323852][ T9415] ? tty_vhangup+0x30/0x30 [ 82.323868][ T9415] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 82.323883][ T9415] ? do_vfs_ioctl+0x11b/0x1340 [ 82.323902][ T9415] ? ioctl_file_clone+0x180/0x180 [ 82.323923][ T9415] ? __kasan_check_write+0x14/0x20 [ 82.323936][ T9415] ? up_read+0x1cd/0x810 [ 82.323960][ T9415] ? tomoyo_file_ioctl+0x23/0x30 [ 82.368504][ T9415] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 82.368520][ T9415] ? security_file_ioctl+0x8d/0xc0 [ 82.368533][ T9415] ? tty_vhangup+0x30/0x30 [ 82.368550][ T9415] ksys_ioctl+0x123/0x180 [ 82.368569][ T9415] __x64_sys_ioctl+0x73/0xb0 [ 82.368588][ T9415] do_syscall_64+0xfa/0x790 [ 82.368612][ T9415] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.368623][ T9415] RIP: 0033:0x441339 [ 82.368639][ T9415] 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 [ 82.368647][ T9415] RSP: 002b:00007ffd66bc4258 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 82.368660][ T9415] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 82.368669][ T9415] RDX: 00000000200000c0 RSI: 000000000000541c RDI: 0000000000000003 [ 82.368677][ T9415] RBP: 0000000000014077 R08: 000000000000000d R09: 00000000004002c8 [ 82.368686][ T9415] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 82.368694][ T9415] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 82.368713][ T9415] [ 82.368721][ T9415] Allocated by task 9410: [ 82.368734][ T9415] save_stack+0x23/0x90 [ 82.368748][ T9415] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 82.368757][ T9415] kasan_kmalloc+0x9/0x10 [ 82.368773][ T9415] __kmalloc+0x163/0x770 [ 82.500446][ T9415] set_selection_kernel+0x872/0x13b0 [ 82.500458][ T9415] set_selection_user+0x95/0xd9 [ 82.500469][ T9415] tioclinux+0x11c/0x480 [ 82.500481][ T9415] vt_ioctl+0x1a41/0x26d0 [ 82.500492][ T9415] tty_ioctl+0xa37/0x14f0 [ 82.500505][ T9415] ksys_ioctl+0x123/0x180 [ 82.500517][ T9415] __x64_sys_ioctl+0x73/0xb0 [ 82.500532][ T9415] do_syscall_64+0xfa/0x790 [ 82.500545][ T9415] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.500549][ T9415] [ 82.500556][ T9415] Freed by task 9413: [ 82.500567][ T9415] save_stack+0x23/0x90 [ 82.500584][ T9415] __kasan_slab_free+0x102/0x150 [ 82.558711][ T9415] kasan_slab_free+0xe/0x10 [ 82.558721][ T9415] kfree+0x10a/0x2c0 [ 82.558734][ T9415] set_selection_kernel+0x88f/0x13b0 [ 82.558746][ T9415] set_selection_user+0x95/0xd9 [ 82.558758][ T9415] tioclinux+0x11c/0x480 [ 82.558770][ T9415] vt_ioctl+0x1a41/0x26d0 [ 82.558780][ T9415] tty_ioctl+0xa37/0x14f0 executing program [ 82.558794][ T9415] ksys_ioctl+0x123/0x180 [ 82.558806][ T9415] __x64_sys_ioctl+0x73/0xb0 [ 82.558820][ T9415] do_syscall_64+0xfa/0x790 [ 82.558834][ T9415] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.558844][ T9415] [ 82.611661][ T9415] The buggy address belongs to the object at ffff8880a954fc00 [ 82.611661][ T9415] which belongs to the cache kmalloc-512 of size 512 [ 82.611672][ T9415] The buggy address is located 1 bytes inside of [ 82.611672][ T9415] 512-byte region [ffff8880a954fc00, ffff8880a954fe00) [ 82.611677][ T9415] The buggy address belongs to the page: [ 82.611688][ T9415] page:ffffea0002a553c0 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 82.611706][ T9415] raw: 00fffe0000000200 ffffea0002a5c888 ffffea000258a888 ffff8880aa400a80 [ 82.611722][ T9415] raw: 0000000000000000 ffff8880a954f000 0000000100000004 0000000000000000 [ 82.611728][ T9415] page dumped because: kasan: bad access detected [ 82.611731][ T9415] [ 82.611736][ T9415] Memory state around the buggy address: [ 82.611747][ T9415] ffff8880a954fb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 82.611757][ T9415] ffff8880a954fb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 82.611769][ T9415] >ffff8880a954fc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.611774][ T9415] ^ [ 82.611784][ T9415] ffff8880a954fc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.611794][ T9415] ffff8880a954fd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.611798][ T9415] ================================================================== [ 82.611803][ T9415] Disabling lock debugging due to kernel taint [ 82.614992][ T9415] Kernel panic - not syncing: panic_on_warn set ... [ 82.751325][ T9415] CPU: 0 PID: 9415 Comm: syz-executor688 Tainted: G B 5.5.0-rc2-next-20191220-syzkaller #0 [ 82.751333][ T9415] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 82.751338][ T9415] Call Trace: [ 82.751357][ T9415] dump_stack+0x197/0x210 [ 82.751378][ T9415] panic+0x2e3/0x75c [ 82.784316][ T9415] ? add_taint.cold+0x16/0x16 [ 82.784332][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.784347][ T9415] ? preempt_schedule+0x4b/0x60 [ 82.784362][ T9415] ? ___preempt_schedule+0x16/0x18 [ 82.784379][ T9415] ? trace_hardirqs_on+0x5e/0x240 [ 82.784394][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.784408][ T9415] end_report+0x47/0x4f [ 82.784420][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.784432][ T9415] __kasan_report.cold+0xe/0x41 [ 82.784451][ T9415] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 82.836577][ T9415] kasan_report+0x12/0x20 [ 82.836593][ T9415] __asan_report_load1_noabort+0x14/0x20 [ 82.836605][ T9415] n_tty_receive_buf_common+0x270f/0x2b70 [ 82.836617][ T9415] ? __kasan_check_read+0x11/0x20 [ 82.836639][ T9415] n_tty_receive_buf2+0x34/0x40 [ 82.836654][ T9415] tty_ldisc_receive_buf+0xad/0x1c0 [ 82.836666][ T9415] ? add_wait_queue+0x112/0x170 [ 82.836678][ T9415] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 82.836693][ T9415] paste_selection+0x1ff/0x460 [ 82.836707][ T9415] ? vcs_remove_sysfs+0x60/0x60 [ 82.836725][ T9415] ? lock_downgrade+0x920/0x920 [ 82.892757][ T9415] ? wake_up_q+0x140/0x140 [ 82.892778][ T9415] tioclinux+0x133/0x480 [ 82.892795][ T9415] vt_ioctl+0x1a41/0x26d0 [ 82.892809][ T9415] ? complete_change_console+0x3a0/0x3a0 [ 82.892825][ T9415] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 82.892842][ T9415] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 82.892857][ T9415] ? tty_jobctrl_ioctl+0x50/0xd40 [ 82.892871][ T9415] ? complete_change_console+0x3a0/0x3a0 [ 82.892883][ T9415] tty_ioctl+0xa37/0x14f0 [ 82.892895][ T9415] ? tty_vhangup+0x30/0x30 [ 82.892909][ T9415] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 82.892922][ T9415] ? do_vfs_ioctl+0x11b/0x1340 [ 82.892936][ T9415] ? ioctl_file_clone+0x180/0x180 [ 82.892952][ T9415] ? __kasan_check_write+0x14/0x20 [ 82.892966][ T9415] ? up_read+0x1cd/0x810 [ 82.892982][ T9415] ? tomoyo_file_ioctl+0x23/0x30 [ 82.892997][ T9415] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 82.893011][ T9415] ? security_file_ioctl+0x8d/0xc0 [ 82.893021][ T9415] ? tty_vhangup+0x30/0x30 [ 82.893034][ T9415] ksys_ioctl+0x123/0x180 [ 82.893062][ T9415] __x64_sys_ioctl+0x73/0xb0 [ 82.997353][ T9415] do_syscall_64+0xfa/0x790 [ 82.997368][ T9415] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.997377][ T9415] RIP: 0033:0x441339 [ 82.997392][ T9415] 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 [ 82.997398][ T9415] RSP: 002b:00007ffd66bc4258 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 82.997410][ T9415] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 82.997418][ T9415] RDX: 00000000200000c0 RSI: 000000000000541c RDI: 0000000000000003 [ 82.997425][ T9415] RBP: 0000000000014077 R08: 000000000000000d R09: 00000000004002c8 [ 82.997432][ T9415] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 82.997439][ T9415] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 82.998861][ T9415] Kernel Offset: disabled [ 83.085656][ T9415] Rebooting in 86400 seconds..