[ 73.699072][ T27] audit: type=1400 audit(1575907600.675:37): avc: denied { watch } for pid=9675 comm="restorecond" path="/root/.ssh" dev="sda1" ino=16179 scontext=system_u:system_r:kernel_t:s0 tcontext=unconfined_u:object_r:ssh_home_t:s0 tclass=dir permissive=1 [ 73.739588][ T27] audit: type=1400 audit(1575907600.705:38): avc: denied { watch } for pid=9675 comm="restorecond" path="/etc/selinux/restorecond.conf" dev="sda1" ino=2232 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 74.043082][ T27] audit: type=1800 audit(1575907601.015:39): pid=9588 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 74.065072][ T27] audit: type=1800 audit(1575907601.025:40): pid=9588 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 77.224264][ T27] audit: type=1400 audit(1575907604.195:41): avc: denied { map } for pid=9770 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.236' (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 [ 83.781093][ T27] audit: type=1400 audit(1575907610.755:42): avc: denied { map } for pid=9782 comm="syz-executor508" path="/root/syz-executor508029848" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 84.124125][ T9847] ================================================================== [ 84.132680][ T9847] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 84.132699][ T9847] Read of size 1 at addr ffff88809c8d0181 by task syz-executor508/9847 [ 84.149404][ T9847] [ 84.151727][ T9847] CPU: 0 PID: 9847 Comm: syz-executor508 Not tainted 5.5.0-rc1-syzkaller #0 [ 84.160376][ T9847] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 84.170433][ T9847] Call Trace: [ 84.173897][ T9847] dump_stack+0x197/0x210 [ 84.178228][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.184118][ T9847] print_address_description.constprop.0.cold+0xd4/0x30b [ 84.191229][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.197202][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.203096][ T9847] __kasan_report.cold+0x1b/0x41 [ 84.208027][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.213924][ T9847] kasan_report+0x12/0x20 [ 84.218255][ T9847] __asan_report_load1_noabort+0x14/0x20 [ 84.223891][ T9847] n_tty_receive_buf_common+0x270f/0x2b70 [ 84.229607][ T9847] ? __kasan_check_read+0x11/0x20 [ 84.234634][ T9847] n_tty_receive_buf2+0x34/0x40 [ 84.239486][ T9847] tty_ldisc_receive_buf+0xad/0x1c0 [ 84.244677][ T9847] ? add_wait_queue+0x112/0x170 [ 84.249520][ T9847] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 84.255404][ T9847] paste_selection+0x1ff/0x460 [ 84.260174][ T9847] ? vcs_remove_sysfs+0x60/0x60 [ 84.265199][ T9847] ? lock_downgrade+0x920/0x920 [ 84.270053][ T9847] ? wake_up_q+0x140/0x140 [ 84.274489][ T9847] tioclinux+0x133/0x480 [ 84.278731][ T9847] vt_ioctl+0x1a41/0x26d0 [ 84.283065][ T9847] ? complete_change_console+0x3a0/0x3a0 [ 84.288697][ T9847] ? lock_downgrade+0x920/0x920 [ 84.293594][ T9847] ? rwlock_bug.part.0+0x90/0x90 [ 84.298592][ T9847] ? tomoyo_path_number_perm+0x214/0x520 [ 84.304231][ T9847] ? find_held_lock+0x35/0x130 [ 84.309091][ T9847] ? tomoyo_path_number_perm+0x214/0x520 [ 84.314749][ T9847] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 84.320737][ T9847] ? tty_jobctrl_ioctl+0x50/0xd40 [ 84.325814][ T9847] ? complete_change_console+0x3a0/0x3a0 [ 84.331449][ T9847] tty_ioctl+0xa37/0x14f0 [ 84.335770][ T9847] ? tty_vhangup+0x30/0x30 [ 84.340173][ T9847] ? tomoyo_path_number_perm+0x454/0x520 [ 84.346080][ T9847] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 84.352546][ T9847] ? tomoyo_path_number_perm+0x25e/0x520 [ 84.358184][ T9847] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 84.364024][ T9847] ? ___might_sleep+0x163/0x2c0 [ 84.368975][ T9847] ? tty_vhangup+0x30/0x30 [ 84.373385][ T9847] do_vfs_ioctl+0x977/0x14e0 [ 84.377965][ T9847] ? compat_ioctl_preallocate+0x220/0x220 [ 84.383782][ T9847] ? selinux_file_mprotect+0x620/0x620 [ 84.389251][ T9847] ? debug_smp_processor_id+0x33/0x18a [ 84.394706][ T9847] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 84.400847][ T9847] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 84.406397][ T9847] ? tomoyo_file_ioctl+0x23/0x30 [ 84.411328][ T9847] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 84.417555][ T9847] ? security_file_ioctl+0x8d/0xc0 [ 84.422673][ T9847] ksys_ioctl+0xab/0xd0 [ 84.426830][ T9847] __x64_sys_ioctl+0x73/0xb0 [ 84.431412][ T9847] do_syscall_64+0xfa/0x790 [ 84.435994][ T9847] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 84.441885][ T9847] RIP: 0033:0x441309 [ 84.445763][ T9847] 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 [ 84.465504][ T9847] RSP: 002b:00007ffc86bea878 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 84.474093][ T9847] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441309 [ 84.482078][ T9847] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 84.490112][ T9847] RBP: 000000000001483a R08: 000000000000000d R09: 00000000004002c8 [ 84.498075][ T9847] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402080 [ 84.506039][ T9847] R13: 0000000000402110 R14: 0000000000000000 R15: 0000000000000000 [ 84.514006][ T9847] [ 84.516523][ T9847] Allocated by task 9848: [ 84.520847][ T9847] save_stack+0x23/0x90 [ 84.524994][ T9847] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 84.530606][ T9847] kasan_kmalloc+0x9/0x10 [ 84.534920][ T9847] __kmalloc+0x163/0x770 [ 84.539236][ T9847] set_selection_kernel+0x872/0x13b0 [ 84.544505][ T9847] set_selection_user+0x95/0xd9 [ 84.549485][ T9847] tioclinux+0x11c/0x480 [ 84.553719][ T9847] vt_ioctl+0x1a41/0x26d0 [ 84.558053][ T9847] tty_ioctl+0xa37/0x14f0 [ 84.562377][ T9847] do_vfs_ioctl+0x977/0x14e0 [ 84.567056][ T9847] ksys_ioctl+0xab/0xd0 [ 84.571197][ T9847] __x64_sys_ioctl+0x73/0xb0 [ 84.575808][ T9847] do_syscall_64+0xfa/0x790 [ 84.580519][ T9847] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 84.586395][ T9847] [ 84.588708][ T9847] Freed by task 9846: [ 84.592684][ T9847] save_stack+0x23/0x90 [ 84.596839][ T9847] __kasan_slab_free+0x102/0x150 [ 84.601762][ T9847] kasan_slab_free+0xe/0x10 [ 84.606246][ T9847] kfree+0x10a/0x2c0 [ 84.610138][ T9847] set_selection_kernel+0x88f/0x13b0 [ 84.615420][ T9847] set_selection_user+0x95/0xd9 [ 84.620255][ T9847] tioclinux+0x11c/0x480 [ 84.624569][ T9847] vt_ioctl+0x1a41/0x26d0 [ 84.628983][ T9847] tty_ioctl+0xa37/0x14f0 [ 84.633302][ T9847] do_vfs_ioctl+0x977/0x14e0 [ 84.638236][ T9847] ksys_ioctl+0xab/0xd0 [ 84.642379][ T9847] __x64_sys_ioctl+0x73/0xb0 [ 84.646955][ T9847] do_syscall_64+0xfa/0x790 [ 84.651445][ T9847] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 84.657354][ T9847] [ 84.659692][ T9847] The buggy address belongs to the object at ffff88809c8d0180 [ 84.659692][ T9847] which belongs to the cache kmalloc-64 of size 64 [ 84.673575][ T9847] The buggy address is located 1 bytes inside of [ 84.673575][ T9847] 64-byte region [ffff88809c8d0180, ffff88809c8d01c0) [ 84.686602][ T9847] The buggy address belongs to the page: [ 84.692238][ T9847] page:ffffea0002723400 refcount:1 mapcount:0 mapping:ffff8880aa400380 index:0x0 [ 84.701363][ T9847] raw: 00fffe0000000200 ffffea00027c1b88 ffffea00027c2248 ffff8880aa400380 [ 84.709949][ T9847] raw: 0000000000000000 ffff88809c8d0000 0000000100000020 0000000000000000 [ 84.718551][ T9847] page dumped because: kasan: bad access detected [ 84.725046][ T9847] [ 84.727551][ T9847] Memory state around the buggy address: [ 84.733238][ T9847] ffff88809c8d0080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 84.741725][ T9847] ffff88809c8d0100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 84.749896][ T9847] >ffff88809c8d0180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 84.757940][ T9847] ^ [ 84.761993][ T9847] ffff88809c8d0200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc executing program [ 84.770074][ T9847] ffff88809c8d0280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 84.780748][ T9847] ================================================================== [ 84.788804][ T9847] Disabling lock debugging due to kernel taint [ 84.798987][ T9847] Kernel panic - not syncing: panic_on_warn set ... [ 84.799012][ T9847] CPU: 0 PID: 9847 Comm: syz-executor508 Tainted: G B 5.5.0-rc1-syzkaller #0 [ 84.816084][ T9847] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 84.816089][ T9847] Call Trace: [ 84.816114][ T9847] dump_stack+0x197/0x210 [ 84.816131][ T9847] panic+0x2e3/0x75c [ 84.816143][ T9847] ? add_taint.cold+0x16/0x16 [ 84.816161][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.816177][ T9847] ? preempt_schedule+0x4b/0x60 [ 84.816193][ T9847] ? ___preempt_schedule+0x16/0x18 [ 84.816207][ T9847] ? trace_hardirqs_on+0x5e/0x240 [ 84.816228][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.869057][ T9847] end_report+0x47/0x4f [ 84.869075][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.869087][ T9847] __kasan_report.cold+0xe/0x41 [ 84.869101][ T9847] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 84.869113][ T9847] kasan_report+0x12/0x20 [ 84.869126][ T9847] __asan_report_load1_noabort+0x14/0x20 [ 84.869139][ T9847] n_tty_receive_buf_common+0x270f/0x2b70 [ 84.869150][ T9847] ? __kasan_check_read+0x11/0x20 [ 84.869170][ T9847] n_tty_receive_buf2+0x34/0x40 [ 84.869190][ T9847] tty_ldisc_receive_buf+0xad/0x1c0 [ 84.920493][ T9847] ? add_wait_queue+0x112/0x170 [ 84.920508][ T9847] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 84.920521][ T9847] paste_selection+0x1ff/0x460 [ 84.920534][ T9847] ? vcs_remove_sysfs+0x60/0x60 [ 84.920547][ T9847] ? lock_downgrade+0x920/0x920 [ 84.920562][ T9847] ? wake_up_q+0x140/0x140 [ 84.920582][ T9847] tioclinux+0x133/0x480 [ 84.920598][ T9847] vt_ioctl+0x1a41/0x26d0 [ 84.920615][ T9847] ? complete_change_console+0x3a0/0x3a0 [ 84.920626][ T9847] ? lock_downgrade+0x920/0x920 [ 84.920643][ T9847] ? rwlock_bug.part.0+0x90/0x90 [ 84.920657][ T9847] ? tomoyo_path_number_perm+0x214/0x520 [ 84.920668][ T9847] ? find_held_lock+0x35/0x130 [ 84.920681][ T9847] ? tomoyo_path_number_perm+0x214/0x520 [ 84.920694][ T9847] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 84.920706][ T9847] ? tty_jobctrl_ioctl+0x50/0xd40 [ 84.920717][ T9847] ? complete_change_console+0x3a0/0x3a0 [ 84.920729][ T9847] tty_ioctl+0xa37/0x14f0 [ 84.920741][ T9847] ? tty_vhangup+0x30/0x30 [ 84.920752][ T9847] ? tomoyo_path_number_perm+0x454/0x520 [ 84.920766][ T9847] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 84.920778][ T9847] ? tomoyo_path_number_perm+0x25e/0x520 [ 84.920791][ T9847] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 84.920807][ T9847] ? ___might_sleep+0x163/0x2c0 [ 84.920819][ T9847] ? tty_vhangup+0x30/0x30 [ 84.920838][ T9847] do_vfs_ioctl+0x977/0x14e0 [ 85.056865][ T9847] ? compat_ioctl_preallocate+0x220/0x220 [ 85.056881][ T9847] ? selinux_file_mprotect+0x620/0x620 [ 85.056895][ T9847] ? debug_smp_processor_id+0x33/0x18a [ 85.056912][ T9847] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 85.056927][ T9847] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 85.056944][ T9847] ? tomoyo_file_ioctl+0x23/0x30 [ 85.056961][ T9847] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 85.056973][ T9847] ? security_file_ioctl+0x8d/0xc0 [ 85.056985][ T9847] ksys_ioctl+0xab/0xd0 [ 85.056998][ T9847] __x64_sys_ioctl+0x73/0xb0 [ 85.057015][ T9847] do_syscall_64+0xfa/0x790 [ 85.057032][ T9847] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 85.057049][ T9847] RIP: 0033:0x441309 [ 85.124977][ T9847] 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 [ 85.124984][ T9847] RSP: 002b:00007ffc86bea878 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 85.124995][ T9847] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441309 [ 85.125000][ T9847] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 85.125006][ T9847] RBP: 000000000001483a R08: 000000000000000d R09: 00000000004002c8 [ 85.125012][ T9847] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402080 [ 85.125018][ T9847] R13: 0000000000402110 R14: 0000000000000000 R15: 0000000000000000 [ 85.126778][ T9847] Kernel Offset: disabled [ 85.199107][ T9847] Rebooting in 86400 seconds..