Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 39.201001] audit: type=1800 audit(1569076684.459:33): pid=7410 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 [ 39.225984] audit: type=1800 audit(1569076684.459:34): pid=7410 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 [ 40.341360] audit: type=1400 audit(1569076685.599:35): avc: denied { map } for pid=7582 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.18' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 51.452298] audit: type=1400 audit(1569076696.709:36): avc: denied { map } for pid=7595 comm="syz-executor395" path="/root/syz-executor395690822" 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 [ 51.485891] ================================================================== [ 51.493878] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 51.500896] Read of size 4 at addr ffff888092d226ec by task syz-executor395/7595 [ 51.508537] [ 51.510168] CPU: 1 PID: 7595 Comm: syz-executor395 Not tainted 4.19.75 #0 [ 51.518260] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.528195] Call Trace: [ 51.530916] dump_stack+0x172/0x1f0 [ 51.534690] ? wait_consider_task+0x1b51/0x3910 [ 51.540083] print_address_description.cold+0x7c/0x20d [ 51.545379] ? wait_consider_task+0x1b51/0x3910 [ 51.550150] kasan_report.cold+0x8c/0x2ba [ 51.554610] __asan_report_load4_noabort+0x14/0x20 [ 51.560127] wait_consider_task+0x1b51/0x3910 [ 51.564828] ? lockdep_hardirqs_on+0x415/0x5d0 [ 51.569600] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 51.574806] ? add_wait_queue+0x112/0x170 [ 51.579376] ? release_task+0x1630/0x1630 [ 51.583677] ? lock_acquire+0x16f/0x3f0 [ 51.588128] ? do_wait+0x3aa/0x9d0 [ 51.591673] ? kasan_check_write+0x14/0x20 [ 51.595913] do_wait+0x439/0x9d0 [ 51.599489] ? wait_consider_task+0x3910/0x3910 [ 51.604200] kernel_wait4+0x171/0x290 [ 51.608181] ? __ia32_sys_waitid+0x140/0x140 [ 51.612979] ? task_stopped_code+0x180/0x180 [ 51.617411] __do_sys_wait4+0x147/0x160 [ 51.621385] ? kernel_wait4+0x290/0x290 [ 51.625357] ? _copy_to_user+0xc9/0x120 [ 51.629337] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 51.634869] ? put_timespec64+0xda/0x140 [ 51.638935] ? nsecs_to_jiffies+0x30/0x30 [ 51.644042] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.649003] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.654188] ? do_syscall_64+0x26/0x620 [ 51.658319] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.663749] ? do_syscall_64+0x26/0x620 [ 51.667727] __x64_sys_wait4+0x97/0xf0 [ 51.671614] do_syscall_64+0xfd/0x620 [ 51.675834] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.681020] RIP: 0033:0x40119a [ 51.684388] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 5e 15 2d 00 85 c0 75 36 45 31 d2 48 63 d2 48 63 ff b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 d0 ff ff ff f7 [ 51.704612] RSP: 002b:00007ffe76e97468 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 51.713786] RAX: ffffffffffffffda RBX: 0000000000001dac RCX: 000000000040119a [ 51.723060] RDX: 0000000040000001 RSI: 00007ffe76e97474 RDI: ffffffffffffffff [ 51.730855] RBP: 000000000000c8ec R08: 0000000000000000 R09: 0000555555ee3880 [ 51.738411] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402150 [ 51.745692] R13: 00000000004021e0 R14: 0000000000000000 R15: 0000000000000000 [ 51.753065] [ 51.757574] Allocated by task 7595: [ 51.761203] save_stack+0x45/0xd0 [ 51.764790] kasan_kmalloc+0xce/0xf0 [ 51.768531] kasan_slab_alloc+0xf/0x20 [ 51.772417] kmem_cache_alloc_node+0x144/0x710 [ 51.777002] copy_process.part.0+0x1ce0/0x7a30 [ 51.783055] _do_fork+0x257/0xfd0 [ 51.786504] __x64_sys_clone+0xbf/0x150 [ 51.790685] do_syscall_64+0xfd/0x620 [ 51.794570] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.799752] [ 51.801417] Freed by task 0: [ 51.804494] save_stack+0x45/0xd0 [ 51.807952] __kasan_slab_free+0x102/0x150 [ 51.812183] kasan_slab_free+0xe/0x10 [ 51.816004] kmem_cache_free+0x86/0x260 [ 51.820054] free_task+0xdd/0x120 [ 51.823877] __put_task_struct+0x20f/0x4c0 [ 51.828112] finish_task_switch+0x52b/0x780 [ 51.832588] __schedule+0x86e/0x1dc0 [ 51.836346] schedule_idle+0x58/0x80 [ 51.840057] do_idle+0x192/0x560 [ 51.843418] cpu_startup_entry+0xc8/0xe0 [ 51.847612] start_secondary+0x3e8/0x5b0 [ 51.851936] secondary_startup_64+0xa4/0xb0 [ 51.856489] [ 51.858120] The buggy address belongs to the object at ffff888092d22280 [ 51.858120] which belongs to the cache task_struct of size 6080 [ 51.872410] The buggy address is located 1132 bytes inside of [ 51.872410] 6080-byte region [ffff888092d22280, ffff888092d23a40) [ 51.890081] The buggy address belongs to the page: [ 51.895553] page:ffffea00024b4880 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 51.906719] flags: 0x1fffc0000008100(slab|head) [ 51.911387] raw: 01fffc0000008100 ffffea00023b6e88 ffffea000236bc88 ffff88812c26d800 [ 51.919318] raw: 0000000000000000 ffff888092d22280 0000000100000001 0000000000000000 [ 51.927354] page dumped because: kasan: bad access detected [ 51.933418] [ 51.935332] Memory state around the buggy address: [ 51.940408] ffff888092d22580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.947776] ffff888092d22600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.955643] >ffff888092d22680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.963636] ^ [ 51.970793] ffff888092d22700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.978865] ffff888092d22780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.986625] ================================================================== [ 51.994249] Disabling lock debugging due to kernel taint [ 51.999844] Kernel panic - not syncing: panic_on_warn set ... [ 51.999844] [ 52.007796] CPU: 1 PID: 7595 Comm: syz-executor395 Tainted: G B 4.19.75 #0 [ 52.016250] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.025777] Call Trace: [ 52.028827] dump_stack+0x172/0x1f0 [ 52.033031] ? wait_consider_task+0x1b51/0x3910 [ 52.040317] panic+0x263/0x507 [ 52.043666] ? __warn_printk+0xf3/0xf3 [ 52.047737] ? retint_kernel+0x2d/0x2d [ 52.051920] ? trace_hardirqs_on+0x5e/0x220 [ 52.056260] ? wait_consider_task+0x1b51/0x3910 [ 52.061403] kasan_end_report+0x47/0x4f [ 52.065750] kasan_report.cold+0xa9/0x2ba [ 52.070240] __asan_report_load4_noabort+0x14/0x20 [ 52.075222] wait_consider_task+0x1b51/0x3910 [ 52.079726] ? lockdep_hardirqs_on+0x415/0x5d0 [ 52.084309] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 52.089411] ? add_wait_queue+0x112/0x170 [ 52.093592] ? release_task+0x1630/0x1630 [ 52.097783] ? lock_acquire+0x16f/0x3f0 [ 52.101850] ? do_wait+0x3aa/0x9d0 [ 52.105553] ? kasan_check_write+0x14/0x20 [ 52.109798] do_wait+0x439/0x9d0 [ 52.113775] ? wait_consider_task+0x3910/0x3910 [ 52.118486] kernel_wait4+0x171/0x290 [ 52.122458] ? __ia32_sys_waitid+0x140/0x140 [ 52.126885] ? task_stopped_code+0x180/0x180 [ 52.131718] __do_sys_wait4+0x147/0x160 [ 52.136096] ? kernel_wait4+0x290/0x290 [ 52.140524] ? _copy_to_user+0xc9/0x120 [ 52.145015] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 52.151487] ? put_timespec64+0xda/0x140 [ 52.155719] ? nsecs_to_jiffies+0x30/0x30 [ 52.160017] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.164947] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.169792] ? do_syscall_64+0x26/0x620 [ 52.173965] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.179430] ? do_syscall_64+0x26/0x620 [ 52.183456] __x64_sys_wait4+0x97/0xf0 [ 52.187343] do_syscall_64+0xfd/0x620 [ 52.191666] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.196904] RIP: 0033:0x40119a [ 52.200092] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 5e 15 2d 00 85 c0 75 36 45 31 d2 48 63 d2 48 63 ff b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 d0 ff ff ff f7 [ 52.219713] RSP: 002b:00007ffe76e97468 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 52.228042] RAX: ffffffffffffffda RBX: 0000000000001dac RCX: 000000000040119a [ 52.235662] RDX: 0000000040000001 RSI: 00007ffe76e97474 RDI: ffffffffffffffff [ 52.243187] RBP: 000000000000c8ec R08: 0000000000000000 R09: 0000555555ee3880 [ 52.251153] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402150 [ 52.258661] R13: 00000000004021e0 R14: 0000000000000000 R15: 0000000000000000 [ 52.267875] Kernel Offset: disabled [ 52.272733] Rebooting in 86400 seconds..