[ 74.752510][ T27] audit: type=1400 audit(1576236248.913:37): avc: denied { watch } for pid=9580 comm="restorecond" path="/root/.ssh" dev="sda1" ino=16180 scontext=system_u:system_r:kernel_t:s0 tcontext=unconfined_u:object_r:ssh_home_t:s0 tclass=dir permissive=1 [ 74.796929][ T27] audit: type=1400 audit(1576236248.913:38): avc: denied { watch } for pid=9580 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. [ 75.033614][ T27] audit: type=1800 audit(1576236249.193:39): pid=9493 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 [ 75.056103][ T27] audit: type=1800 audit(1576236249.203:40): pid=9493 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.368041][ T27] audit: type=1400 audit(1576236251.533:41): avc: denied { map } for pid=9672 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.107' (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 [ 90.091057][ T27] audit: type=1400 audit(1576236264.253:42): avc: denied { map } for pid=9684 comm="syz-executor949" path="/root/syz-executor949570584" 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 [ 90.292881][ T9726] ================================================================== [ 90.292940][ T9726] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 90.292951][ T9726] Read of size 1 at addr ffff8880a71dcc01 by task syz-executor949/9726 [ 90.292955][ T9726] [ 90.292970][ T9726] CPU: 0 PID: 9726 Comm: syz-executor949 Not tainted 5.5.0-rc1-syzkaller #0 [ 90.292978][ T9726] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 90.292982][ T9726] Call Trace: [ 90.293000][ T9726] dump_stack+0x197/0x210 [ 90.293015][ T9726] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.293034][ T9726] print_address_description.constprop.0.cold+0xd4/0x30b [ 90.293047][ T9726] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.293061][ T9726] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.293073][ T9726] __kasan_report.cold+0x1b/0x41 [ 90.293090][ T9726] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.293104][ T9726] kasan_report+0x12/0x20 [ 90.293118][ T9726] __asan_report_load1_noabort+0x14/0x20 [ 90.293132][ T9726] n_tty_receive_buf_common+0x270f/0x2b70 [ 90.293144][ T9726] ? __kasan_check_read+0x11/0x20 [ 90.293177][ T9726] n_tty_receive_buf2+0x34/0x40 [ 90.293193][ T9726] tty_ldisc_receive_buf+0xad/0x1c0 [ 90.293206][ T9726] ? add_wait_queue+0x112/0x170 [ 90.293218][ T9726] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 90.293234][ T9726] paste_selection+0x1ff/0x460 [ 90.293252][ T9726] ? vcs_remove_sysfs+0x60/0x60 [ 90.293265][ T9726] ? lock_downgrade+0x920/0x920 [ 90.293282][ T9726] ? wake_up_q+0x140/0x140 [ 90.293306][ T9726] tioclinux+0x133/0x480 [ 90.293323][ T9726] vt_ioctl+0x1a41/0x26d0 [ 90.293341][ T9726] ? complete_change_console+0x3a0/0x3a0 [ 90.293354][ T9726] ? lock_downgrade+0x920/0x920 [ 90.293369][ T9726] ? rwlock_bug.part.0+0x90/0x90 [ 90.293384][ T9726] ? tomoyo_path_number_perm+0x214/0x520 [ 90.293397][ T9726] ? find_held_lock+0x35/0x130 [ 90.293410][ T9726] ? tomoyo_path_number_perm+0x214/0x520 [ 90.293426][ T9726] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 90.293441][ T9726] ? tty_jobctrl_ioctl+0x50/0xd40 [ 90.293454][ T9726] ? complete_change_console+0x3a0/0x3a0 [ 90.293467][ T9726] tty_ioctl+0xa37/0x14f0 [ 90.293483][ T9726] ? tty_vhangup+0x30/0x30 [ 90.293494][ T9726] ? tomoyo_path_number_perm+0x454/0x520 [ 90.293511][ T9726] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 90.293524][ T9726] ? tomoyo_path_number_perm+0x25e/0x520 [ 90.293540][ T9726] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 90.293560][ T9726] ? ___might_sleep+0x163/0x2c0 [ 90.293583][ T9726] ? tty_vhangup+0x30/0x30 [ 90.293599][ T9726] do_vfs_ioctl+0x977/0x14e0 [ 90.293616][ T9726] ? compat_ioctl_preallocate+0x220/0x220 [ 90.293628][ T9726] ? selinux_file_mprotect+0x620/0x620 [ 90.293644][ T9726] ? __kasan_check_write+0x14/0x20 [ 90.293670][ T9726] ? tomoyo_file_ioctl+0x23/0x30 [ 90.293684][ T9726] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 90.293696][ T9726] ? security_file_ioctl+0x8d/0xc0 [ 90.293711][ T9726] ksys_ioctl+0xab/0xd0 [ 90.293727][ T9726] __x64_sys_ioctl+0x73/0xb0 [ 90.293743][ T9726] do_syscall_64+0xfa/0x790 [ 90.293756][ T9726] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.293763][ T9726] RIP: 0033:0x441339 [ 90.293772][ T9726] 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 [ 90.293777][ T9726] RSP: 002b:00007ffc44b771b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 90.293785][ T9726] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 90.293790][ T9726] RDX: 00000000200000c0 RSI: 000000000000541c RDI: 0000000000000003 [ 90.293795][ T9726] RBP: 0000000000016045 R08: 000000000000000d R09: 00000000004002c8 [ 90.293800][ T9726] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 90.293804][ T9726] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 90.293815][ T9726] [ 90.293819][ T9726] Allocated by task 9722: [ 90.293826][ T9726] save_stack+0x23/0x90 [ 90.293833][ T9726] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 90.293843][ T9726] kasan_kmalloc+0x9/0x10 [ 90.293849][ T9726] __kmalloc+0x163/0x770 [ 90.293856][ T9726] set_selection_kernel+0x872/0x13b0 [ 90.293862][ T9726] set_selection_user+0x95/0xd9 [ 90.293869][ T9726] tioclinux+0x11c/0x480 [ 90.293876][ T9726] vt_ioctl+0x1a41/0x26d0 [ 90.293882][ T9726] tty_ioctl+0xa37/0x14f0 [ 90.293888][ T9726] do_vfs_ioctl+0x977/0x14e0 [ 90.293894][ T9726] ksys_ioctl+0xab/0xd0 [ 90.293900][ T9726] __x64_sys_ioctl+0x73/0xb0 [ 90.293907][ T9726] do_syscall_64+0xfa/0x790 [ 90.293914][ T9726] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.293916][ T9726] [ 90.293920][ T9726] Freed by task 9725: [ 90.293927][ T9726] save_stack+0x23/0x90 [ 90.293935][ T9726] __kasan_slab_free+0x102/0x150 [ 90.293941][ T9726] kasan_slab_free+0xe/0x10 [ 90.293947][ T9726] kfree+0x10a/0x2c0 [ 90.293953][ T9726] set_selection_kernel+0x88f/0x13b0 [ 90.293959][ T9726] set_selection_user+0x95/0xd9 [ 90.293966][ T9726] tioclinux+0x11c/0x480 [ 90.293973][ T9726] vt_ioctl+0x1a41/0x26d0 [ 90.293979][ T9726] tty_ioctl+0xa37/0x14f0 [ 90.293985][ T9726] do_vfs_ioctl+0x977/0x14e0 [ 90.293991][ T9726] ksys_ioctl+0xab/0xd0 [ 90.293997][ T9726] __x64_sys_ioctl+0x73/0xb0 [ 90.294006][ T9726] do_syscall_64+0xfa/0x790 [ 90.294013][ T9726] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.294016][ T9726] [ 90.294022][ T9726] The buggy address belongs to the object at ffff8880a71dcc00 [ 90.294022][ T9726] which belongs to the cache kmalloc-512 of size 512 [ 90.294028][ T9726] The buggy address is located 1 bytes inside of [ 90.294028][ T9726] 512-byte region [ffff8880a71dcc00, ffff8880a71dce00) [ 90.294031][ T9726] The buggy address belongs to the page: [ 90.294040][ T9726] page:ffffea00029c7700 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 90.294053][ T9726] raw: 00fffe0000000200 ffffea00029f1b08 ffffea0002a1cec8 ffff8880aa400a80 [ 90.294067][ T9726] raw: 0000000000000000 ffff8880a71dc000 0000000100000004 0000000000000000 [ 90.294072][ T9726] page dumped because: kasan: bad access detected [ 90.294076][ T9726] [ 90.294080][ T9726] Memory state around the buggy address: [ 90.294091][ T9726] ffff8880a71dcb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 90.294102][ T9726] ffff8880a71dcb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 90.294113][ T9726] >ffff8880a71dcc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 90.294118][ T9726] ^ [ 90.294128][ T9726] ffff8880a71dcc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 90.294137][ T9726] ffff8880a71dcd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 90.294141][ T9726] ================================================================== [ 90.294144][ T9726] Disabling lock debugging due to kernel taint [ 90.294190][ T9726] Kernel panic - not syncing: panic_on_warn set ... [ 90.294203][ T9726] CPU: 0 PID: 9726 Comm: syz-executor949 Tainted: G B 5.5.0-rc1-syzkaller #0 [ 90.294210][ T9726] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 90.294213][ T9726] Call Trace: [ 90.294222][ T9726] dump_stack+0x197/0x210 [ 90.294233][ T9726] panic+0x2e3/0x75c [ 90.294240][ T9726] ? add_taint.cold+0x16/0x16 [ 90.294251][ T9726] ? trace_hardirqs_on+0x5e/0x240 [ 90.294258][ T9726] ? trace_hardirqs_on+0x5e/0x240 [ 90.294267][ T9726] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.294273][ T9726] end_report+0x47/0x4f [ 90.294280][ T9726] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.294287][ T9726] __kasan_report.cold+0xe/0x41 [ 90.294295][ T9726] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.294302][ T9726] kasan_report+0x12/0x20 [ 90.294310][ T9726] __asan_report_load1_noabort+0x14/0x20 [ 90.294318][ T9726] n_tty_receive_buf_common+0x270f/0x2b70 [ 90.294324][ T9726] ? __kasan_check_read+0x11/0x20 [ 90.294336][ T9726] n_tty_receive_buf2+0x34/0x40 [ 90.294344][ T9726] tty_ldisc_receive_buf+0xad/0x1c0 [ 90.294350][ T9726] ? add_wait_queue+0x112/0x170 [ 90.294358][ T9726] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 90.294364][ T9726] paste_selection+0x1ff/0x460 [ 90.294372][ T9726] ? vcs_remove_sysfs+0x60/0x60 [ 90.294379][ T9726] ? lock_downgrade+0x920/0x920 [ 90.294387][ T9726] ? wake_up_q+0x140/0x140 [ 90.294397][ T9726] tioclinux+0x133/0x480 [ 90.294405][ T9726] vt_ioctl+0x1a41/0x26d0 [ 90.294413][ T9726] ? complete_change_console+0x3a0/0x3a0 [ 90.294419][ T9726] ? lock_downgrade+0x920/0x920 [ 90.294426][ T9726] ? rwlock_bug.part.0+0x90/0x90 [ 90.294434][ T9726] ? tomoyo_path_number_perm+0x214/0x520 [ 90.294440][ T9726] ? find_held_lock+0x35/0x130 [ 90.294448][ T9726] ? tomoyo_path_number_perm+0x214/0x520 [ 90.294455][ T9726] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 90.294462][ T9726] ? tty_jobctrl_ioctl+0x50/0xd40 [ 90.294470][ T9726] ? complete_change_console+0x3a0/0x3a0 [ 90.294477][ T9726] tty_ioctl+0xa37/0x14f0 [ 90.294484][ T9726] ? tty_vhangup+0x30/0x30 [ 90.294491][ T9726] ? tomoyo_path_number_perm+0x454/0x520 [ 90.294499][ T9726] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 90.294506][ T9726] ? tomoyo_path_number_perm+0x25e/0x520 [ 90.294514][ T9726] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 90.294523][ T9726] ? ___might_sleep+0x163/0x2c0 [ 90.294531][ T9726] ? tty_vhangup+0x30/0x30 [ 90.294538][ T9726] do_vfs_ioctl+0x977/0x14e0 [ 90.294546][ T9726] ? compat_ioctl_preallocate+0x220/0x220 [ 90.294553][ T9726] ? selinux_file_mprotect+0x620/0x620 [ 90.294560][ T9726] ? __kasan_check_write+0x14/0x20 [ 90.294570][ T9726] ? tomoyo_file_ioctl+0x23/0x30 [ 90.294577][ T9726] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 90.294583][ T9726] ? security_file_ioctl+0x8d/0xc0 [ 90.294590][ T9726] ksys_ioctl+0xab/0xd0 [ 90.294598][ T9726] __x64_sys_ioctl+0x73/0xb0 [ 90.294615][ T9726] do_syscall_64+0xfa/0x790 [ 90.294628][ T9726] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.294636][ T9726] RIP: 0033:0x441339 [ 90.294647][ T9726] 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 [ 90.294653][ T9726] RSP: 002b:00007ffc44b771b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 90.294663][ T9726] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 90.294670][ T9726] RDX: 00000000200000c0 RSI: 000000000000541c RDI: 0000000000000003 [ 90.294677][ T9726] RBP: 0000000000016045 R08: 000000000000000d R09: 00000000004002c8 [ 90.294683][ T9726] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 90.294690][ T9726] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 90.296106][ T9726] Kernel Offset: disabled