[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 78.104138][ T27] audit: type=1800 audit(1581791558.199:25): pid=9727 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 78.124107][ T27] audit: type=1800 audit(1581791558.199:26): pid=9727 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 78.145042][ T27] audit: type=1800 audit(1581791558.199:27): pid=9727 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.15.200' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 471.694049][T10216] ================================================================== [ 471.694231][T10216] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 471.694245][T10216] Read of size 1 at addr ffff8880a1250401 by task syz-executor284/10216 [ 471.694249][T10216] [ 471.694269][T10216] CPU: 0 PID: 10216 Comm: syz-executor284 Not tainted 5.6.0-rc1-syzkaller #0 [ 471.730417][T10216] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 471.730423][T10216] Call Trace: [ 471.730584][T10216] dump_stack+0x197/0x210 [ 471.748112][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 471.748219][T10216] print_address_description.constprop.0.cold+0xd4/0x30b [ 471.748239][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 471.748254][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 471.773080][T10216] __kasan_report.cold+0x1b/0x32 [ 471.773105][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 471.773125][T10216] kasan_report+0x12/0x20 [ 471.773142][T10216] __asan_report_load1_noabort+0x14/0x20 [ 471.773158][T10216] n_tty_receive_buf_common+0x270f/0x2b70 [ 471.773173][T10216] ? __kasan_check_read+0x11/0x20 [ 471.773228][T10216] n_tty_receive_buf2+0x34/0x40 [ 471.773250][T10216] tty_ldisc_receive_buf+0xad/0x1c0 [ 471.773322][T10216] ? add_wait_queue+0x112/0x170 [ 471.773338][T10216] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 471.773369][T10216] paste_selection+0x1ff/0x460 [ 471.773396][T10216] ? vcs_remove_sysfs+0x60/0x60 [ 471.773444][T10216] ? lock_downgrade+0x920/0x920 [ 471.840135][T10216] ? wake_up_q+0x140/0x140 [ 471.840172][T10216] tioclinux+0x133/0x480 [ 471.848831][T10216] vt_ioctl+0x1a41/0x26d0 [ 471.848855][T10216] ? complete_change_console+0x3a0/0x3a0 [ 471.848955][T10216] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 471.849038][T10216] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 471.849059][T10216] ? tty_jobctrl_ioctl+0x50/0xd40 [ 471.849074][T10216] ? complete_change_console+0x3a0/0x3a0 [ 471.849091][T10216] tty_ioctl+0xa37/0x14f0 [ 471.849111][T10216] ? tty_vhangup+0x30/0x30 [ 471.849126][T10216] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 471.849161][T10216] ? do_vfs_ioctl+0x568/0x13b0 [ 471.849186][T10216] ? ioctl_file_clone+0x180/0x180 [ 471.849239][T10216] ? file_open_root+0x430/0x430 [ 471.849255][T10216] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 471.849335][T10216] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 471.849376][T10216] ? tomoyo_file_ioctl+0x23/0x30 [ 471.849393][T10216] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 471.849459][T10216] ? security_file_ioctl+0x8d/0xc0 [ 471.849478][T10216] ? tty_vhangup+0x30/0x30 [ 471.944523][T10216] ksys_ioctl+0x123/0x180 [ 471.944547][T10216] __x64_sys_ioctl+0x73/0xb0 [ 471.953541][T10216] do_syscall_64+0xfa/0x790 [ 471.953597][T10216] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 471.964074][T10216] RIP: 0033:0x441329 [ 471.964089][T10216] 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 [ 471.964096][T10216] RSP: 002b:00007ffda03e5da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 471.964109][T10216] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 471.964118][T10216] RDX: 0000000020000040 RSI: 000000000000541c RDI: 0000000000000004 [ 471.964126][T10216] RBP: 000000000007321d R08: 000000000000000d R09: 00000000004002c8 [ 471.964133][T10216] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 471.964141][T10216] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 471.964174][T10216] [ 471.964182][T10216] Allocated by task 10218: [ 471.964198][T10216] save_stack+0x23/0x90 [ 471.964346][T10216] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 472.052714][T10216] kasan_kmalloc+0x9/0x10 [ 472.052726][T10216] __kmalloc+0x163/0x770 [ 472.052740][T10216] set_selection_kernel+0x872/0x13b0 [ 472.052752][T10216] set_selection_user+0x95/0xd9 [ 472.052764][T10216] tioclinux+0x11c/0x480 [ 472.052776][T10216] vt_ioctl+0x1a41/0x26d0 [ 472.052787][T10216] tty_ioctl+0xa37/0x14f0 [ 472.052802][T10216] ksys_ioctl+0x123/0x180 [ 472.052815][T10216] __x64_sys_ioctl+0x73/0xb0 [ 472.052829][T10216] do_syscall_64+0xfa/0x790 [ 472.052844][T10216] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 472.052849][T10216] [ 472.052856][T10216] Freed by task 10221: [ 472.052869][T10216] save_stack+0x23/0x90 [ 472.052883][T10216] __kasan_slab_free+0x102/0x150 [ 472.052896][T10216] kasan_slab_free+0xe/0x10 [ 472.052908][T10216] kfree+0x10a/0x2c0 [ 472.052922][T10216] set_selection_kernel+0x88f/0x13b0 [ 472.052936][T10216] set_selection_user+0x95/0xd9 [ 472.052948][T10216] tioclinux+0x11c/0x480 [ 472.052961][T10216] vt_ioctl+0x1a41/0x26d0 [ 472.052971][T10216] tty_ioctl+0xa37/0x14f0 [ 472.052983][T10216] ksys_ioctl+0x123/0x180 [ 472.052996][T10216] __x64_sys_ioctl+0x73/0xb0 [ 472.053008][T10216] do_syscall_64+0xfa/0x790 [ 472.053021][T10216] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 472.053025][T10216] [ 472.053042][T10216] The buggy address belongs to the object at ffff8880a1250400 [ 472.053042][T10216] which belongs to the cache kmalloc-512 of size 512 [ 472.186216][T10216] The buggy address is located 1 bytes inside of [ 472.186216][T10216] 512-byte region [ffff8880a1250400, ffff8880a1250600) [ 472.186222][T10216] The buggy address belongs to the page: [ 472.186235][T10216] page:ffffea0002849400 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 472.186245][T10216] flags: 0xfffe0000000200(slab) [ 472.186263][T10216] raw: 00fffe0000000200 ffffea00024ff088 ffffea000268ed08 ffff8880aa400a80 [ 472.186278][T10216] raw: 0000000000000000 ffff8880a1250000 0000000100000004 0000000000000000 [ 472.186284][T10216] page dumped because: kasan: bad access detected [ 472.186288][T10216] [ 472.186292][T10216] Memory state around the buggy address: [ 472.186304][T10216] ffff8880a1250300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 472.186314][T10216] ffff8880a1250380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 472.186325][T10216] >ffff8880a1250400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 472.186330][T10216] ^ [ 472.186340][T10216] ffff8880a1250480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 472.186352][T10216] ffff8880a1250500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 472.186357][T10216] ================================================================== [ 472.186362][T10216] Disabling lock debugging due to kernel taint [ 472.187032][T10216] Kernel panic - not syncing: panic_on_warn set ... [ 472.187049][T10216] CPU: 0 PID: 10216 Comm: syz-executor284 Tainted: G B 5.6.0-rc1-syzkaller #0 [ 472.187057][T10216] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 472.187061][T10216] Call Trace: [ 472.187080][T10216] dump_stack+0x197/0x210 [ 472.187177][T10216] panic+0x2e3/0x75c [ 472.187194][T10216] ? add_taint.cold+0x16/0x16 [ 472.187219][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 472.187245][T10216] ? preempt_schedule+0x4b/0x60 [ 472.187263][T10216] ? ___preempt_schedule+0x16/0x18 [ 472.187327][T10216] ? trace_hardirqs_on+0x5e/0x240 [ 472.187345][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 472.187362][T10216] end_report+0x47/0x4f [ 472.187378][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 472.187393][T10216] __kasan_report.cold+0xe/0x32 [ 472.187410][T10216] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 472.187427][T10216] kasan_report+0x12/0x20 [ 472.187444][T10216] __asan_report_load1_noabort+0x14/0x20 [ 472.187467][T10216] n_tty_receive_buf_common+0x270f/0x2b70 [ 472.187479][T10216] ? __kasan_check_read+0x11/0x20 [ 472.187513][T10216] n_tty_receive_buf2+0x34/0x40 [ 472.187530][T10216] tty_ldisc_receive_buf+0xad/0x1c0 [ 472.187545][T10216] ? add_wait_queue+0x112/0x170 [ 472.187561][T10216] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 472.187578][T10216] paste_selection+0x1ff/0x460 [ 472.187595][T10216] ? vcs_remove_sysfs+0x60/0x60 [ 472.187611][T10216] ? lock_downgrade+0x920/0x920 [ 472.187628][T10216] ? wake_up_q+0x140/0x140 [ 472.187653][T10216] tioclinux+0x133/0x480 [ 472.187669][T10216] vt_ioctl+0x1a41/0x26d0 [ 472.187685][T10216] ? complete_change_console+0x3a0/0x3a0 [ 472.187703][T10216] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 472.187726][T10216] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 472.187744][T10216] ? tty_jobctrl_ioctl+0x50/0xd40 [ 472.187763][T10216] ? complete_change_console+0x3a0/0x3a0 [ 472.187779][T10216] tty_ioctl+0xa37/0x14f0 [ 472.187794][T10216] ? tty_vhangup+0x30/0x30 [ 472.187810][T10216] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 472.187827][T10216] ? do_vfs_ioctl+0x568/0x13b0 [ 472.187844][T10216] ? ioctl_file_clone+0x180/0x180 [ 472.187860][T10216] ? file_open_root+0x430/0x430 [ 472.187877][T10216] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 472.187896][T10216] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 472.187921][T10216] ? tomoyo_file_ioctl+0x23/0x30 [ 472.187938][T10216] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 472.187955][T10216] ? security_file_ioctl+0x8d/0xc0 [ 472.187969][T10216] ? tty_vhangup+0x30/0x30 [ 472.187986][T10216] ksys_ioctl+0x123/0x180 [ 472.188003][T10216] __x64_sys_ioctl+0x73/0xb0 [ 472.188019][T10216] do_syscall_64+0xfa/0x790 [ 472.188037][T10216] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 472.188050][T10216] RIP: 0033:0x441329 [ 472.188066][T10216] 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 [ 472.188077][T10216] RSP: 002b:00007ffda03e5da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 472.188098][T10216] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 472.188110][T10216] RDX: 0000000020000040 RSI: 000000000000541c RDI: 0000000000000004 [ 472.188121][T10216] RBP: 000000000007321d R08: 000000000000000d R09: 00000000004002c8 [ 472.188132][T10216] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 472.188143][T10216] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 472.189945][T10216] Kernel Offset: disabled [ 472.675648][T10216] Rebooting in 86400 seconds..