[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 65.600067][ T27] audit: type=1800 audit(1577268622.874:25): pid=9145 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 65.620099][ T27] audit: type=1800 audit(1577268622.874:26): pid=9145 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 65.678280][ T27] audit: type=1800 audit(1577268622.884:27): pid=9145 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.56' (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 syzkaller login: [ 77.466164][ T9590] ================================================================== [ 77.466204][ T9590] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 77.466212][ T9590] Read of size 1 at addr ffff8880a243f801 by task syz-executor382/9590 [ 77.466214][ T9590] [ 77.466225][ T9590] CPU: 1 PID: 9590 Comm: syz-executor382 Not tainted 5.5.0-rc2-next-20191220-syzkaller #0 [ 77.466230][ T9590] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 77.466233][ T9590] Call Trace: [ 77.466244][ T9590] dump_stack+0x197/0x210 [ 77.466253][ T9590] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 77.466284][ T9590] print_address_description.constprop.0.cold+0xd4/0x30b [ 77.466292][ T9590] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 77.466300][ T9590] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 77.466309][ T9590] __kasan_report.cold+0x1b/0x41 [ 77.466319][ T9590] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 77.466329][ T9590] kasan_report+0x12/0x20 [ 77.466339][ T9590] __asan_report_load1_noabort+0x14/0x20 [ 77.466347][ T9590] n_tty_receive_buf_common+0x270f/0x2b70 [ 77.466355][ T9590] ? __kasan_check_read+0x11/0x20 [ 77.466374][ T9590] n_tty_receive_buf2+0x34/0x40 [ 77.466384][ T9590] tty_ldisc_receive_buf+0xad/0x1c0 [ 77.466392][ T9590] ? add_wait_queue+0x112/0x170 [ 77.466400][ T9590] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 77.466411][ T9590] paste_selection+0x1ff/0x460 [ 77.466423][ T9590] ? vcs_remove_sysfs+0x60/0x60 [ 77.466432][ T9590] ? lock_downgrade+0x920/0x920 [ 77.466442][ T9590] ? wake_up_q+0x140/0x140 [ 77.466456][ T9590] tioclinux+0x133/0x480 [ 77.466466][ T9590] vt_ioctl+0x1a41/0x26d0 [ 77.466476][ T9590] ? complete_change_console+0x3a0/0x3a0 [ 77.466489][ T9590] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 77.466503][ T9590] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 77.466513][ T9590] ? tty_jobctrl_ioctl+0x50/0xd40 [ 77.466522][ T9590] ? complete_change_console+0x3a0/0x3a0 [ 77.466530][ T9590] tty_ioctl+0xa37/0x14f0 [ 77.466539][ T9590] ? tty_vhangup+0x30/0x30 [ 77.466548][ T9590] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 77.466557][ T9590] ? do_vfs_ioctl+0x11b/0x1340 [ 77.466568][ T9590] ? ioctl_file_clone+0x180/0x180 [ 77.466576][ T9590] ? file_open_root+0x5f0/0x5f0 [ 77.466584][ T9590] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.466599][ T9590] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 77.466623][ T9590] ? tomoyo_file_ioctl+0x23/0x30 [ 77.466640][ T9590] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.466656][ T9590] ? security_file_ioctl+0x8d/0xc0 [ 77.466669][ T9590] ? tty_vhangup+0x30/0x30 [ 77.466686][ T9590] ksys_ioctl+0x123/0x180 [ 77.466706][ T9590] __x64_sys_ioctl+0x73/0xb0 [ 77.466722][ T9590] do_syscall_64+0xfa/0x790 [ 77.466733][ T9590] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.466741][ T9590] RIP: 0033:0x441329 [ 77.466750][ T9590] 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 [ 77.466754][ T9590] RSP: 002b:00007ffdf7d1f568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 77.466763][ T9590] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 77.466768][ T9590] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000004 [ 77.466772][ T9590] RBP: 0000000000012e4e R08: 000000000000000d R09: 00000000004002c8 [ 77.466777][ T9590] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 77.466782][ T9590] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 77.466793][ T9590] [ 77.466797][ T9590] Allocated by task 9588: [ 77.466804][ T9590] save_stack+0x23/0x90 [ 77.466812][ T9590] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 77.466818][ T9590] kasan_kmalloc+0x9/0x10 [ 77.466825][ T9590] __kmalloc+0x163/0x770 [ 77.466833][ T9590] set_selection_kernel+0x872/0x13b0 [ 77.466840][ T9590] set_selection_user+0x95/0xd9 [ 77.466847][ T9590] tioclinux+0x11c/0x480 [ 77.466853][ T9590] vt_ioctl+0x1a41/0x26d0 [ 77.466859][ T9590] tty_ioctl+0xa37/0x14f0 [ 77.466866][ T9590] ksys_ioctl+0x123/0x180 [ 77.466873][ T9590] __x64_sys_ioctl+0x73/0xb0 [ 77.466881][ T9590] do_syscall_64+0xfa/0x790 [ 77.466888][ T9590] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.466890][ T9590] [ 77.466893][ T9590] Freed by task 9591: [ 77.466900][ T9590] save_stack+0x23/0x90 [ 77.466907][ T9590] __kasan_slab_free+0x102/0x150 [ 77.466914][ T9590] kasan_slab_free+0xe/0x10 [ 77.466919][ T9590] kfree+0x10a/0x2c0 [ 77.466932][ T9590] set_selection_kernel+0x88f/0x13b0 [ 77.466940][ T9590] set_selection_user+0x95/0xd9 [ 77.466946][ T9590] tioclinux+0x11c/0x480 [ 77.466953][ T9590] vt_ioctl+0x1a41/0x26d0 [ 77.466959][ T9590] tty_ioctl+0xa37/0x14f0 [ 77.466966][ T9590] ksys_ioctl+0x123/0x180 [ 77.466972][ T9590] __x64_sys_ioctl+0x73/0xb0 [ 77.466980][ T9590] do_syscall_64+0xfa/0x790 [ 77.466987][ T9590] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.466989][ T9590] [ 77.466995][ T9590] The buggy address belongs to the object at ffff8880a243f800 [ 77.466995][ T9590] which belongs to the cache kmalloc-512 of size 512 [ 77.467003][ T9590] The buggy address is located 1 bytes inside of [ 77.467003][ T9590] 512-byte region [ffff8880a243f800, ffff8880a243fa00) [ 77.467005][ T9590] The buggy address belongs to the page: [ 77.467013][ T9590] page:ffffea0002890fc0 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 77.467024][ T9590] raw: 00fffe0000000200 ffffea0002879948 ffffea00028c5748 ffff8880aa400a80 [ 77.467033][ T9590] raw: 0000000000000000 ffff8880a243f000 0000000100000004 0000000000000000 [ 77.467037][ T9590] page dumped because: kasan: bad access detected [ 77.467039][ T9590] [ 77.467042][ T9590] Memory state around the buggy address: [ 77.467048][ T9590] ffff8880a243f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.467055][ T9590] ffff8880a243f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.467061][ T9590] >ffff8880a243f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 77.467064][ T9590] ^ [ 77.467070][ T9590] ffff8880a243f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 77.467076][ T9590] ffff8880a243f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 77.467079][ T9590] ================================================================== [ 77.467082][ T9590] Disabling lock debugging due to kernel taint [ 77.467121][ T9590] Kernel panic - not syncing: panic_on_warn set ... [ 77.467136][ T9590] CPU: 1 PID: 9590 Comm: syz-executor382 Tainted: G B 5.5.0-rc2-next-20191220-syzkaller #0 [ 77.467141][ T9590] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 77.467144][ T9590] Call Trace: [ 77.467152][ T9590] dump_stack+0x197/0x210 [ 77.467163][ T9590] panic+0x2e3/0x75c [ 77.467170][ T9590] ? add_taint.cold+0x16/0x16 [ 77.467177][ T9590] ? retint_kernel+0x2b/0x2b [ 77.467189][ T9590] ? trace_hardirqs_on+0x5e/0x240 [ 77.467197][ T9590] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 77.467204][ T9590] end_report+0x47/0x4f [ 77.467212][ T9590] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 77.467219][ T9590] __kasan_report.cold+0xe/0x41 [ 77.467228][ T9590] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 77.467236][ T9590] kasan_report+0x12/0x20 [ 77.467244][ T9590] __asan_report_load1_noabort+0x14/0x20 [ 77.467251][ T9590] n_tty_receive_buf_common+0x270f/0x2b70 [ 77.467263][ T9590] ? __kasan_check_read+0x11/0x20 [ 77.467276][ T9590] n_tty_receive_buf2+0x34/0x40 [ 77.467284][ T9590] tty_ldisc_receive_buf+0xad/0x1c0 [ 77.467290][ T9590] ? add_wait_queue+0x112/0x170 [ 77.467297][ T9590] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 77.467306][ T9590] paste_selection+0x1ff/0x460 [ 77.467315][ T9590] ? vcs_remove_sysfs+0x60/0x60 [ 77.467322][ T9590] ? lock_downgrade+0x920/0x920 [ 77.467331][ T9590] ? wake_up_q+0x140/0x140 [ 77.467340][ T9590] tioclinux+0x133/0x480 [ 77.467348][ T9590] vt_ioctl+0x1a41/0x26d0 [ 77.467357][ T9590] ? complete_change_console+0x3a0/0x3a0 [ 77.467367][ T9590] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 77.467377][ T9590] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 77.467385][ T9590] ? tty_jobctrl_ioctl+0x50/0xd40 [ 77.467393][ T9590] ? complete_change_console+0x3a0/0x3a0 [ 77.467400][ T9590] tty_ioctl+0xa37/0x14f0 [ 77.467407][ T9590] ? tty_vhangup+0x30/0x30 [ 77.467415][ T9590] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 77.467422][ T9590] ? do_vfs_ioctl+0x11b/0x1340 [ 77.467430][ T9590] ? ioctl_file_clone+0x180/0x180 [ 77.467437][ T9590] ? file_open_root+0x5f0/0x5f0 [ 77.467445][ T9590] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.467455][ T9590] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 77.467464][ T9590] ? tomoyo_file_ioctl+0x23/0x30 [ 77.467473][ T9590] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 77.467480][ T9590] ? security_file_ioctl+0x8d/0xc0 [ 77.467486][ T9590] ? tty_vhangup+0x30/0x30 [ 77.467494][ T9590] ksys_ioctl+0x123/0x180 [ 77.467502][ T9590] __x64_sys_ioctl+0x73/0xb0 [ 77.467511][ T9590] do_syscall_64+0xfa/0x790 [ 77.467519][ T9590] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 77.467524][ T9590] RIP: 0033:0x441329 [ 77.467531][ T9590] 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 [ 77.467535][ T9590] RSP: 002b:00007ffdf7d1f568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 77.467542][ T9590] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 77.467546][ T9590] RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000004 [ 77.467550][ T9590] RBP: 0000000000012e4e R08: 000000000000000d R09: 00000000004002c8 [ 77.467554][ T9590] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 77.467558][ T9590] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 77.468771][ T9590] Kernel Offset: disabled [ 78.409048][ T9590] Rebooting in 86400 seconds..