[ 72.011277][ T27] audit: type=1800 audit(1577377040.212:25): pid=9048 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 72.030963][ T27] audit: type=1800 audit(1577377040.212:26): pid=9048 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 72.057749][ T27] audit: type=1800 audit(1577377040.222:27): pid=9048 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. [ 72.666583][ T9116] sshd (9116) used greatest stack depth: 22776 bytes left [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.1.32' (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 syzkaller login: [ 498.243798][ T9238] ================================================================== [ 498.252120][ T9238] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 498.260727][ T9238] Read of size 1 at addr ffff8880a77c2c01 by task syz-executor890/9238 [ 498.260732][ T9238] [ 498.260747][ T9238] CPU: 1 PID: 9238 Comm: syz-executor890 Not tainted 5.5.0-rc2-next-20191220-syzkaller #0 [ 498.260754][ T9238] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 498.260804][ T9238] Call Trace: [ 498.260850][ T9238] dump_stack+0x197/0x210 [ 498.260868][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.260933][ T9238] print_address_description.constprop.0.cold+0xd4/0x30b [ 498.260948][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.260962][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.260977][ T9238] __kasan_report.cold+0x1b/0x41 [ 498.260993][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.261011][ T9238] kasan_report+0x12/0x20 [ 498.261026][ T9238] __asan_report_load1_noabort+0x14/0x20 [ 498.261046][ T9238] n_tty_receive_buf_common+0x270f/0x2b70 [ 498.350339][ T9238] ? __kasan_check_read+0x11/0x20 [ 498.350374][ T9238] n_tty_receive_buf2+0x34/0x40 [ 498.360226][ T9238] tty_ldisc_receive_buf+0xad/0x1c0 [ 498.360298][ T9238] ? add_wait_queue+0x112/0x170 [ 498.360312][ T9238] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 498.360338][ T9238] paste_selection+0x1ff/0x460 [ 498.360360][ T9238] ? vcs_remove_sysfs+0x60/0x60 [ 498.385877][ T9238] ? lock_downgrade+0x920/0x920 [ 498.385923][ T9238] ? wake_up_q+0x140/0x140 [ 498.385952][ T9238] tioclinux+0x133/0x480 [ 498.385971][ T9238] vt_ioctl+0x1a41/0x26d0 [ 498.385991][ T9238] ? complete_change_console+0x3a0/0x3a0 [ 498.386057][ T9238] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 498.386118][ T9238] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 498.386137][ T9238] ? tty_jobctrl_ioctl+0x50/0xd40 [ 498.386153][ T9238] ? complete_change_console+0x3a0/0x3a0 [ 498.386168][ T9238] tty_ioctl+0xa37/0x14f0 [ 498.386183][ T9238] ? tty_vhangup+0x30/0x30 [ 498.386198][ T9238] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 498.386248][ T9238] ? do_vfs_ioctl+0x11b/0x1340 [ 498.386275][ T9238] ? ioctl_file_clone+0x180/0x180 [ 498.457392][ T9238] ? __kasan_check_write+0x14/0x20 [ 498.457409][ T9238] ? up_read+0x1cd/0x810 [ 498.457433][ T9238] ? tomoyo_file_ioctl+0x23/0x30 [ 498.457450][ T9238] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 498.457536][ T9238] ? security_file_ioctl+0x8d/0xc0 [ 498.457555][ T9238] ? tty_vhangup+0x30/0x30 [ 498.487585][ T9238] ksys_ioctl+0x123/0x180 [ 498.487603][ T9238] __x64_sys_ioctl+0x73/0xb0 [ 498.487682][ T9238] do_syscall_64+0xfa/0x790 [ 498.487730][ T9238] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 498.487742][ T9238] RIP: 0033:0x441329 [ 498.487758][ T9238] 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 [ 498.487766][ T9238] RSP: 002b:00007ffc485ca238 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 498.487780][ T9238] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 498.487789][ T9238] RDX: 00000000200001c0 RSI: 000000000000541c RDI: 0000000000000003 [ 498.487798][ T9238] RBP: 00000000000799cf R08: 000000000000000d R09: 00000000004002c8 [ 498.487806][ T9238] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 498.487815][ T9238] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 498.487837][ T9238] [ 498.487878][ T9238] Allocated by task 9235: [ 498.487896][ T9238] save_stack+0x23/0x90 [ 498.589805][ T9238] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 498.589816][ T9238] kasan_kmalloc+0x9/0x10 [ 498.589825][ T9238] __kmalloc+0x163/0x770 [ 498.589840][ T9238] set_selection_kernel+0x872/0x13b0 [ 498.589852][ T9238] set_selection_user+0x95/0xd9 [ 498.589878][ T9238] tioclinux+0x11c/0x480 [ 498.589890][ T9238] vt_ioctl+0x1a41/0x26d0 [ 498.589901][ T9238] tty_ioctl+0xa37/0x14f0 [ 498.589914][ T9238] ksys_ioctl+0x123/0x180 [ 498.589925][ T9238] __x64_sys_ioctl+0x73/0xb0 [ 498.589938][ T9238] do_syscall_64+0xfa/0x790 [ 498.589958][ T9238] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 498.646305][ T9238] [ 498.646313][ T9238] Freed by task 9237: [ 498.646331][ T9238] save_stack+0x23/0x90 [ 498.646345][ T9238] __kasan_slab_free+0x102/0x150 [ 498.646357][ T9238] kasan_slab_free+0xe/0x10 [ 498.646368][ T9238] kfree+0x10a/0x2c0 [ 498.646385][ T9238] set_selection_kernel+0x88f/0x13b0 [ 498.646399][ T9238] set_selection_user+0x95/0xd9 [ 498.646412][ T9238] tioclinux+0x11c/0x480 [ 498.646425][ T9238] vt_ioctl+0x1a41/0x26d0 [ 498.646436][ T9238] tty_ioctl+0xa37/0x14f0 [ 498.646447][ T9238] ksys_ioctl+0x123/0x180 [ 498.646457][ T9238] __x64_sys_ioctl+0x73/0xb0 [ 498.646471][ T9238] do_syscall_64+0xfa/0x790 [ 498.646484][ T9238] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 498.646488][ T9238] [ 498.646498][ T9238] The buggy address belongs to the object at ffff8880a77c2c00 [ 498.646498][ T9238] which belongs to the cache kmalloc-512 of size 512 [ 498.646510][ T9238] The buggy address is located 1 bytes inside of [ 498.646510][ T9238] 512-byte region [ffff8880a77c2c00, ffff8880a77c2e00) [ 498.646515][ T9238] The buggy address belongs to the page: [ 498.646529][ T9238] page:ffffea00029df080 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 498.646547][ T9238] raw: 00fffe0000000200 ffffea0002608fc8 ffffea0002816e88 ffff8880aa400a80 [ 498.646568][ T9238] raw: 0000000000000000 ffff8880a77c2000 0000000100000004 0000000000000000 [ 498.773687][ T9238] page dumped because: kasan: bad access detected [ 498.773692][ T9238] [ 498.773697][ T9238] Memory state around the buggy address: [ 498.773709][ T9238] ffff8880a77c2b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 498.773718][ T9238] ffff8880a77c2b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 498.773727][ T9238] >ffff8880a77c2c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 498.773732][ T9238] ^ [ 498.773743][ T9238] ffff8880a77c2c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 498.773754][ T9238] ffff8880a77c2d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 498.773759][ T9238] ================================================================== [ 498.773764][ T9238] Disabling lock debugging due to kernel taint [ 498.775054][ T9238] Kernel panic - not syncing: panic_on_warn set ... [ 498.775072][ T9238] CPU: 1 PID: 9238 Comm: syz-executor890 Tainted: G B 5.5.0-rc2-next-20191220-syzkaller #0 [ 498.775084][ T9238] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 498.775093][ T9238] Call Trace: [ 498.775119][ T9238] dump_stack+0x197/0x210 [ 498.775205][ T9238] panic+0x2e3/0x75c [ 498.775222][ T9238] ? add_taint.cold+0x16/0x16 [ 498.775242][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.775259][ T9238] ? preempt_schedule+0x4b/0x60 [ 498.775278][ T9238] ? ___preempt_schedule+0x16/0x18 [ 498.775339][ T9238] ? trace_hardirqs_on+0x5e/0x240 [ 498.775356][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.775373][ T9238] end_report+0x47/0x4f [ 498.775388][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.775404][ T9238] __kasan_report.cold+0xe/0x41 [ 498.775420][ T9238] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 498.775435][ T9238] kasan_report+0x12/0x20 [ 498.775452][ T9238] __asan_report_load1_noabort+0x14/0x20 [ 498.775468][ T9238] n_tty_receive_buf_common+0x270f/0x2b70 [ 498.775483][ T9238] ? __kasan_check_read+0x11/0x20 [ 498.775508][ T9238] n_tty_receive_buf2+0x34/0x40 [ 498.775527][ T9238] tty_ldisc_receive_buf+0xad/0x1c0 [ 498.775537][ T9238] ? add_wait_queue+0x112/0x170 [ 498.775550][ T9238] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 498.775566][ T9238] paste_selection+0x1ff/0x460 [ 498.775582][ T9238] ? vcs_remove_sysfs+0x60/0x60 [ 498.775595][ T9238] ? lock_downgrade+0x920/0x920 [ 498.775611][ T9238] ? wake_up_q+0x140/0x140 [ 498.775628][ T9238] tioclinux+0x133/0x480 [ 498.775642][ T9238] vt_ioctl+0x1a41/0x26d0 [ 498.775661][ T9238] ? complete_change_console+0x3a0/0x3a0 [ 498.775681][ T9238] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 498.775700][ T9238] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 498.775717][ T9238] ? tty_jobctrl_ioctl+0x50/0xd40 [ 498.775733][ T9238] ? complete_change_console+0x3a0/0x3a0 [ 498.775748][ T9238] tty_ioctl+0xa37/0x14f0 [ 498.775762][ T9238] ? tty_vhangup+0x30/0x30 [ 498.775779][ T9238] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 498.775796][ T9238] ? do_vfs_ioctl+0x11b/0x1340 [ 498.775818][ T9238] ? ioctl_file_clone+0x180/0x180 [ 498.775834][ T9238] ? __kasan_check_write+0x14/0x20 [ 498.775850][ T9238] ? up_read+0x1cd/0x810 [ 498.775868][ T9238] ? tomoyo_file_ioctl+0x23/0x30 [ 498.775884][ T9238] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 498.775901][ T9238] ? security_file_ioctl+0x8d/0xc0 [ 498.775915][ T9238] ? tty_vhangup+0x30/0x30 [ 498.775931][ T9238] ksys_ioctl+0x123/0x180 [ 498.775947][ T9238] __x64_sys_ioctl+0x73/0xb0 [ 498.775964][ T9238] do_syscall_64+0xfa/0x790 [ 498.775980][ T9238] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 498.775993][ T9238] RIP: 0033:0x441329 [ 498.776009][ T9238] 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 [ 498.776020][ T9238] RSP: 002b:00007ffc485ca238 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 498.776042][ T9238] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 498.776054][ T9238] RDX: 00000000200001c0 RSI: 000000000000541c RDI: 0000000000000003 [ 498.776065][ T9238] RBP: 00000000000799cf R08: 000000000000000d R09: 00000000004002c8 [ 498.776077][ T9238] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 498.776088][ T9238] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 498.777472][ T9238] Kernel Offset: disabled [ 499.190354][ T9238] Rebooting in 86400 seconds..