Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok [ 43.020310] audit: type=1800 audit(1576210917.658:33): pid=7596 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=2465 res=0 8[?25h[?0c. [[ 43.042192] audit: type=1800 audit(1576210917.668:34): pid=7596 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=2456 res=0 ....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 46.119902] audit: type=1400 audit(1576210920.758:35): avc: denied { map } for pid=7770 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.195' (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 [ 489.926928] audit: type=1400 audit(1576211364.568:36): avc: denied { map } for pid=7782 comm="syz-executor367" path="/root/syz-executor367909209" dev="sda1" ino=1426 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 492.092863] ================================================================== [ 492.092969] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.092983] Read of size 1 at addr ffff88808ada5380 by task syz-executor367/8152 [ 492.092991] [ 492.093004] CPU: 0 PID: 8152 Comm: syz-executor367 Not tainted 4.19.88-syzkaller #0 [ 492.125294] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 492.125300] Call Trace: [ 492.125403] dump_stack+0x197/0x210 [ 492.125422] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.146218] print_address_description.cold+0x7c/0x20d [ 492.146233] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.146246] kasan_report.cold+0x8c/0x2ba [ 492.146264] __asan_report_load1_noabort+0x14/0x20 [ 492.146277] n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.146309] n_tty_receive_buf2+0x34/0x40 [ 492.146367] tty_ldisc_receive_buf+0xad/0x1c0 [ 492.146385] ? add_wait_queue+0x112/0x170 [ 492.183568] ? n_tty_receive_buf_common+0x28e0/0x28e0 [ 492.183612] paste_selection+0x1ff/0x443 [ 492.192841] ? set_selection+0x1370/0x1370 [ 492.192860] ? lock_downgrade+0x880/0x880 [ 492.201217] ? wake_up_q+0x100/0x100 [ 492.201238] tioclinux+0x133/0x470 [ 492.201254] vt_ioctl+0x19ab/0x2530 [ 492.201270] ? complete_change_console+0x3a0/0x3a0 [ 492.201286] ? avc_has_extended_perms+0xa78/0x10f0 [ 492.201302] ? lock_downgrade+0x880/0x880 [ 492.201319] ? avc_ss_reset+0x190/0x190 [ 492.201332] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 492.201348] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 492.201360] ? complete_change_console+0x3a0/0x3a0 [ 492.244553] tty_ioctl+0x7f3/0x1510 [ 492.244568] ? tty_vhangup+0x30/0x30 [ 492.244581] ? thp_get_unmapped_area+0x1f0/0x1f0 [ 492.244603] ? __handle_mm_fault+0x7d1/0x3f80 [ 492.244625] ? __might_sleep+0x95/0x190 [ 492.244637] ? tty_vhangup+0x30/0x30 [ 492.244653] do_vfs_ioctl+0xd5f/0x1380 [ 492.244666] ? selinux_file_ioctl+0x46f/0x5e0 [ 492.244679] ? selinux_file_ioctl+0x125/0x5e0 [ 492.244692] ? ioctl_preallocate+0x210/0x210 [ 492.244705] ? selinux_file_mprotect+0x620/0x620 [ 492.244721] ? gup_pgd_range+0x21ec/0x3910 [ 492.244736] ? __sanitizer_cov_trace_cmp1+0xb/0x20 [ 492.244752] ? up_read+0x1a/0x110 [ 492.244764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 492.244782] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 492.314787] ? security_file_ioctl+0x8d/0xc0 [ 492.314805] ksys_ioctl+0xab/0xd0 [ 492.314822] __x64_sys_ioctl+0x73/0xb0 [ 492.314840] do_syscall_64+0xfd/0x620 [ 492.314916] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 492.314935] RIP: 0033:0x441329 [ 492.338860] 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 [ 492.338868] RSP: 002b:00007ffe22816ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 492.338879] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 492.338886] RDX: 0000000020000140 RSI: 000000000000541c RDI: 0000000000000003 [ 492.338893] RBP: 00000000000781d6 R08: 000000000000000d R09: 00000000004002c8 [ 492.338901] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 492.338908] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 492.338927] [ 492.338934] Allocated by task 8150: [ 492.338951] save_stack+0x45/0xd0 [ 492.338962] kasan_kmalloc+0xce/0xf0 [ 492.338971] __kmalloc+0x15d/0x750 [ 492.338983] set_selection+0x7e4/0x1370 [ 492.338998] tioclinux+0x11c/0x470 [ 492.425522] vt_ioctl+0x19ab/0x2530 [ 492.425532] tty_ioctl+0x7f3/0x1510 [ 492.425543] do_vfs_ioctl+0xd5f/0x1380 [ 492.425552] ksys_ioctl+0xab/0xd0 [ 492.425562] __x64_sys_ioctl+0x73/0xb0 [ 492.425575] do_syscall_64+0xfd/0x620 [ 492.425588] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 492.425592] [ 492.425598] Freed by task 8151: [ 492.425610] save_stack+0x45/0xd0 [ 492.425620] __kasan_slab_free+0x102/0x150 [ 492.425632] kasan_slab_free+0xe/0x10 [ 492.425640] kfree+0xcf/0x220 [ 492.425652] set_selection+0x801/0x1370 [ 492.425662] tioclinux+0x11c/0x470 [ 492.425672] vt_ioctl+0x19ab/0x2530 [ 492.425681] tty_ioctl+0x7f3/0x1510 [ 492.425691] do_vfs_ioctl+0xd5f/0x1380 [ 492.425701] ksys_ioctl+0xab/0xd0 [ 492.425711] __x64_sys_ioctl+0x73/0xb0 [ 492.425722] do_syscall_64+0xfd/0x620 [ 492.425733] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 492.425736] [ 492.425750] The buggy address belongs to the object at ffff88808ada5380 [ 492.425750] which belongs to the cache kmalloc-32 of size 32 [ 492.521465] The buggy address is located 0 bytes inside of [ 492.521465] 32-byte region [ffff88808ada5380, ffff88808ada53a0) [ 492.521469] The buggy address belongs to the page: [ 492.521481] page:ffffea00022b6940 count:1 mapcount:0 mapping:ffff88812c31c1c0 index:0xffff88808ada5fc1 [ 492.521490] flags: 0xfffe0000000100(slab) [ 492.521505] raw: 00fffe0000000100 ffffea0002844dc8 ffffea0002a05d08 ffff88812c31c1c0 [ 492.521519] raw: ffff88808ada5fc1 ffff88808ada5000 0000000100000025 0000000000000000 [ 492.521524] page dumped because: kasan: bad access detected [ 492.521528] [ 492.521531] Memory state around the buggy address: [ 492.521541] ffff88808ada5280: 00 00 01 fc fc fc fc fc 00 00 01 fc fc fc fc fc [ 492.521551] ffff88808ada5300: 00 01 fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 492.521560] >ffff88808ada5380: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 492.521565] ^ [ 492.521574] ffff88808ada5400: fb fb fb fb fc fc fc fc 00 04 fc fc fc fc fc fc [ 492.521583] ffff88808ada5480: 00 00 01 fc fc fc fc fc 00 00 01 fc fc fc fc fc [ 492.521587] ================================================================== [ 492.521592] Disabling lock debugging due to kernel taint [ 492.526038] Kernel panic - not syncing: panic_on_warn set ... [ 492.526038] [ 492.639956] CPU: 0 PID: 8152 Comm: syz-executor367 Tainted: G B 4.19.88-syzkaller #0 [ 492.639962] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 492.639965] Call Trace: [ 492.639988] dump_stack+0x197/0x210 [ 492.640004] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.640014] panic+0x26a/0x50e [ 492.640025] ? __warn_printk+0xf3/0xf3 [ 492.640038] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.640083] ? preempt_schedule+0x4b/0x60 [ 492.640099] ? ___preempt_schedule+0x16/0x18 [ 492.640113] ? trace_hardirqs_on+0x5e/0x220 [ 492.640126] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.640145] kasan_end_report+0x47/0x4f [ 492.704253] kasan_report.cold+0xa9/0x2ba [ 492.704267] __asan_report_load1_noabort+0x14/0x20 [ 492.704279] n_tty_receive_buf_common+0x24b0/0x28e0 [ 492.704301] n_tty_receive_buf2+0x34/0x40 [ 492.704314] tty_ldisc_receive_buf+0xad/0x1c0 [ 492.704328] ? add_wait_queue+0x112/0x170 [ 492.704338] ? n_tty_receive_buf_common+0x28e0/0x28e0 [ 492.704352] paste_selection+0x1ff/0x443 [ 492.704366] ? set_selection+0x1370/0x1370 [ 492.704381] ? lock_downgrade+0x880/0x880 [ 492.704391] ? wake_up_q+0x100/0x100 [ 492.704408] tioclinux+0x133/0x470 [ 492.704420] vt_ioctl+0x19ab/0x2530 [ 492.704433] ? complete_change_console+0x3a0/0x3a0 [ 492.704446] ? avc_has_extended_perms+0xa78/0x10f0 [ 492.704459] ? lock_downgrade+0x880/0x880 [ 492.704475] ? avc_ss_reset+0x190/0x190 [ 492.777647] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 492.777662] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 492.777675] ? complete_change_console+0x3a0/0x3a0 [ 492.777686] tty_ioctl+0x7f3/0x1510 [ 492.777699] ? tty_vhangup+0x30/0x30 [ 492.777711] ? thp_get_unmapped_area+0x1f0/0x1f0 [ 492.777728] ? __handle_mm_fault+0x7d1/0x3f80 [ 492.777746] ? __might_sleep+0x95/0x190 [ 492.777756] ? tty_vhangup+0x30/0x30 [ 492.777768] do_vfs_ioctl+0xd5f/0x1380 [ 492.777784] ? selinux_file_ioctl+0x46f/0x5e0 [ 492.824675] ? selinux_file_ioctl+0x125/0x5e0 [ 492.824688] ? ioctl_preallocate+0x210/0x210 [ 492.824698] ? selinux_file_mprotect+0x620/0x620 [ 492.824712] ? gup_pgd_range+0x21ec/0x3910 [ 492.824726] ? __sanitizer_cov_trace_cmp1+0xb/0x20 [ 492.824740] ? up_read+0x1a/0x110 [ 492.824751] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 492.824765] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 492.824778] ? security_file_ioctl+0x8d/0xc0 [ 492.824791] ksys_ioctl+0xab/0xd0 [ 492.824807] __x64_sys_ioctl+0x73/0xb0 [ 492.824822] do_syscall_64+0xfd/0x620 [ 492.824839] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 492.824849] RIP: 0033:0x441329 [ 492.824862] 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 [ 492.824869] RSP: 002b:00007ffe22816ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 492.824881] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 492.824887] RDX: 0000000020000140 RSI: 000000000000541c RDI: 0000000000000003 [ 492.824898] RBP: 00000000000781d6 R08: 000000000000000d R09: 00000000004002c8 [ 492.934247] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 492.934254] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 492.935827] Kernel Offset: disabled [ 492.953949] Rebooting in 86400 seconds..