[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 71.716812][ T27] audit: type=1800 audit(1577325498.815:25): pid=9241 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 71.738584][ T27] audit: type=1800 audit(1577325498.815:26): pid=9241 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 71.797329][ T27] audit: type=1800 audit(1577325498.815:27): pid=9241 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.87' (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 syzkaller login: [ 526.966536][ T9436] ================================================================== [ 526.975186][ T9436] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 526.975206][ T9436] Read of size 1 at addr ffff888098ef9401 by task syz-executor563/9436 [ 526.975210][ T9436] [ 526.975226][ T9436] CPU: 0 PID: 9436 Comm: syz-executor563 Not tainted 5.5.0-rc2-next-20191220-syzkaller #0 [ 526.975234][ T9436] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 526.975262][ T9436] Call Trace: [ 526.975307][ T9436] dump_stack+0x197/0x210 [ 526.975322][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 526.975378][ T9436] print_address_description.constprop.0.cold+0xd4/0x30b [ 526.975399][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 527.046618][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 527.046639][ T9436] __kasan_report.cold+0x1b/0x41 [ 527.057459][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 527.057476][ T9436] kasan_report+0x12/0x20 [ 527.057493][ T9436] __asan_report_load1_noabort+0x14/0x20 [ 527.057507][ T9436] n_tty_receive_buf_common+0x270f/0x2b70 [ 527.057520][ T9436] ? __kasan_check_read+0x11/0x20 [ 527.057553][ T9436] n_tty_receive_buf2+0x34/0x40 [ 527.057570][ T9436] tty_ldisc_receive_buf+0xad/0x1c0 [ 527.057628][ T9436] ? add_wait_queue+0x112/0x170 [ 527.057647][ T9436] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 527.057673][ T9436] paste_selection+0x1ff/0x460 [ 527.112481][ T9436] ? vcs_remove_sysfs+0x60/0x60 [ 527.112592][ T9436] ? lock_downgrade+0x920/0x920 [ 527.112639][ T9436] ? wake_up_q+0x140/0x140 [ 527.112668][ T9436] tioclinux+0x133/0x480 [ 527.112686][ T9436] vt_ioctl+0x1a41/0x26d0 [ 527.112704][ T9436] ? complete_change_console+0x3a0/0x3a0 [ 527.112784][ T9436] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 527.112850][ T9436] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 527.112871][ T9436] ? tty_jobctrl_ioctl+0x50/0xd40 [ 527.157859][ T9436] ? complete_change_console+0x3a0/0x3a0 [ 527.157876][ T9436] tty_ioctl+0xa37/0x14f0 [ 527.157895][ T9436] ? tty_vhangup+0x30/0x30 [ 527.157913][ T9436] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 527.158016][ T9436] ? do_vfs_ioctl+0x11b/0x1340 [ 527.158036][ T9436] ? ioctl_file_clone+0x180/0x180 [ 527.158057][ T9436] ? __kasan_check_write+0x14/0x20 [ 527.158078][ T9436] ? up_read+0x1cd/0x810 [ 527.197724][ T9436] ? tomoyo_file_ioctl+0x23/0x30 [ 527.197742][ T9436] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 527.197830][ T9436] ? security_file_ioctl+0x8d/0xc0 [ 527.197849][ T9436] ? tty_vhangup+0x30/0x30 [ 527.218587][ T9436] ksys_ioctl+0x123/0x180 [ 527.218609][ T9436] __x64_sys_ioctl+0x73/0xb0 [ 527.218703][ T9436] do_syscall_64+0xfa/0x790 [ 527.218744][ T9436] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 527.218757][ T9436] RIP: 0033:0x441339 [ 527.218771][ T9436] 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 [ 527.218779][ T9436] RSP: 002b:00007ffddd23f468 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 527.218792][ T9436] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 527.218800][ T9436] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000003 [ 527.218814][ T9436] RBP: 0000000000080a10 R08: 000000000000000d R09: 00000000004002c8 [ 527.218822][ T9436] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 527.218830][ T9436] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 527.218849][ T9436] [ 527.218879][ T9436] Allocated by task 9432: [ 527.218894][ T9436] save_stack+0x23/0x90 [ 527.218914][ T9436] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 527.326361][ T9436] kasan_kmalloc+0x9/0x10 [ 527.326372][ T9436] __kmalloc+0x163/0x770 [ 527.326384][ T9436] set_selection_kernel+0x872/0x13b0 [ 527.326395][ T9436] set_selection_user+0x95/0xd9 [ 527.326407][ T9436] tioclinux+0x11c/0x480 [ 527.326419][ T9436] vt_ioctl+0x1a41/0x26d0 [ 527.326430][ T9436] tty_ioctl+0xa37/0x14f0 [ 527.326442][ T9436] ksys_ioctl+0x123/0x180 [ 527.326454][ T9436] __x64_sys_ioctl+0x73/0xb0 [ 527.326469][ T9436] do_syscall_64+0xfa/0x790 [ 527.326482][ T9436] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 527.326487][ T9436] [ 527.326500][ T9436] Freed by task 9433: [ 527.383593][ T9436] save_stack+0x23/0x90 [ 527.383605][ T9436] __kasan_slab_free+0x102/0x150 [ 527.383614][ T9436] kasan_slab_free+0xe/0x10 [ 527.383624][ T9436] kfree+0x10a/0x2c0 [ 527.383639][ T9436] set_selection_kernel+0x88f/0x13b0 [ 527.383652][ T9436] set_selection_user+0x95/0xd9 [ 527.383663][ T9436] tioclinux+0x11c/0x480 [ 527.383675][ T9436] vt_ioctl+0x1a41/0x26d0 [ 527.383685][ T9436] tty_ioctl+0xa37/0x14f0 [ 527.383698][ T9436] ksys_ioctl+0x123/0x180 [ 527.383710][ T9436] __x64_sys_ioctl+0x73/0xb0 [ 527.383723][ T9436] do_syscall_64+0xfa/0x790 [ 527.383742][ T9436] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 527.443339][ T9436] [ 527.443352][ T9436] The buggy address belongs to the object at ffff888098ef9400 [ 527.443352][ T9436] which belongs to the cache kmalloc-512 of size 512 [ 527.443362][ T9436] The buggy address is located 1 bytes inside of [ 527.443362][ T9436] 512-byte region [ffff888098ef9400, ffff888098ef9600) [ 527.443367][ T9436] The buggy address belongs to the page: [ 527.443378][ T9436] page:ffffea000263be40 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 527.443396][ T9436] raw: 00fffe0000000200 ffffea00029f2408 ffffea00029d0548 ffff8880aa400a80 [ 527.443412][ T9436] raw: 0000000000000000 ffff888098ef9000 0000000100000004 0000000000000000 [ 527.443418][ T9436] page dumped because: kasan: bad access detected [ 527.443422][ T9436] [ 527.443426][ T9436] Memory state around the buggy address: [ 527.443437][ T9436] ffff888098ef9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 527.443448][ T9436] ffff888098ef9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 527.443459][ T9436] >ffff888098ef9400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 527.443464][ T9436] ^ [ 527.443474][ T9436] ffff888098ef9480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 527.443485][ T9436] ffff888098ef9500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 527.443490][ T9436] ================================================================== [ 527.443495][ T9436] Disabling lock debugging due to kernel taint [ 527.444386][ T9436] Kernel panic - not syncing: panic_on_warn set ... [ 527.444404][ T9436] CPU: 0 PID: 9436 Comm: syz-executor563 Tainted: G B 5.5.0-rc2-next-20191220-syzkaller #0 [ 527.444416][ T9436] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 527.444424][ T9436] Call Trace: [ 527.444443][ T9436] dump_stack+0x197/0x210 [ 527.444548][ T9436] panic+0x2e3/0x75c [ 527.444565][ T9436] ? add_taint.cold+0x16/0x16 [ 527.444582][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 527.444599][ T9436] ? preempt_schedule+0x4b/0x60 [ 527.444617][ T9436] ? ___preempt_schedule+0x16/0x18 [ 527.444675][ T9436] ? trace_hardirqs_on+0x5e/0x240 [ 527.444692][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 527.444709][ T9436] end_report+0x47/0x4f [ 527.444724][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 527.444740][ T9436] __kasan_report.cold+0xe/0x41 [ 527.444756][ T9436] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 527.444772][ T9436] kasan_report+0x12/0x20 [ 527.444789][ T9436] __asan_report_load1_noabort+0x14/0x20 [ 527.444804][ T9436] n_tty_receive_buf_common+0x270f/0x2b70 [ 527.444827][ T9436] ? __kasan_check_read+0x11/0x20 [ 527.444852][ T9436] n_tty_receive_buf2+0x34/0x40 [ 527.444869][ T9436] tty_ldisc_receive_buf+0xad/0x1c0 [ 527.444884][ T9436] ? add_wait_queue+0x112/0x170 [ 527.444900][ T9436] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 527.444917][ T9436] paste_selection+0x1ff/0x460 [ 527.444934][ T9436] ? vcs_remove_sysfs+0x60/0x60 [ 527.444949][ T9436] ? lock_downgrade+0x920/0x920 [ 527.444965][ T9436] ? wake_up_q+0x140/0x140 [ 527.444982][ T9436] tioclinux+0x133/0x480 [ 527.444998][ T9436] vt_ioctl+0x1a41/0x26d0 [ 527.445014][ T9436] ? complete_change_console+0x3a0/0x3a0 [ 527.445033][ T9436] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 527.445053][ T9436] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 527.445069][ T9436] ? tty_jobctrl_ioctl+0x50/0xd40 [ 527.445085][ T9436] ? complete_change_console+0x3a0/0x3a0 [ 527.445100][ T9436] tty_ioctl+0xa37/0x14f0 [ 527.445114][ T9436] ? tty_vhangup+0x30/0x30 [ 527.445131][ T9436] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 527.445148][ T9436] ? do_vfs_ioctl+0x11b/0x1340 [ 527.445164][ T9436] ? ioctl_file_clone+0x180/0x180 [ 527.445180][ T9436] ? __kasan_check_write+0x14/0x20 [ 527.445196][ T9436] ? up_read+0x1cd/0x810 [ 527.445213][ T9436] ? tomoyo_file_ioctl+0x23/0x30 [ 527.445229][ T9436] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 527.445246][ T9436] ? security_file_ioctl+0x8d/0xc0 [ 527.445260][ T9436] ? tty_vhangup+0x30/0x30 [ 527.445275][ T9436] ksys_ioctl+0x123/0x180 [ 527.445291][ T9436] __x64_sys_ioctl+0x73/0xb0 [ 527.445308][ T9436] do_syscall_64+0xfa/0x790 [ 527.445325][ T9436] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 527.445338][ T9436] RIP: 0033:0x441339 [ 527.445354][ T9436] 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 [ 527.445365][ T9436] RSP: 002b:00007ffddd23f468 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 527.445387][ T9436] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 527.445398][ T9436] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000003 [ 527.445410][ T9436] RBP: 0000000000080a10 R08: 000000000000000d R09: 00000000004002c8 [ 527.445421][ T9436] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 527.445434][ T9436] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 527.446920][ T9436] Kernel Offset: disabled [ 527.918286][ T9436] Rebooting in 86400 seconds..