[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [ 38.986717] audit: type=1800 audit(1569278973.084:33): pid=7401 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.011363] audit: type=1800 audit(1569278973.084:34): pid=7401 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.171' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 47.515347] kauditd_printk_skb: 1 callbacks suppressed [ 47.515363] audit: type=1400 audit(1569278981.614:36): avc: denied { map } for pid=7589 comm="syz-executor308" path="/root/syz-executor308154645" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 47.558447] FAULT_INJECTION: forcing a failure. [ 47.558447] name failslab, interval 1, probability 0, space 0, times 1 [ 47.570021] CPU: 1 PID: 7590 Comm: syz-executor308 Not tainted 4.19.75 #0 [ 47.576942] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.586282] Call Trace: [ 47.588865] dump_stack+0x172/0x1f0 [ 47.592481] should_fail.cold+0xa/0x1b [ 47.596356] ? fault_create_debugfs_attr+0x1e0/0x1e0 [ 47.601526] ? lock_downgrade+0x810/0x810 [ 47.605665] __should_failslab+0x121/0x190 [ 47.609908] should_failslab+0x9/0x14 [ 47.613696] kmem_cache_alloc_trace+0x2cc/0x760 [ 47.618526] ? kasan_check_read+0x11/0x20 [ 47.622686] cma_alloc_port+0x4d/0x190 [ 47.626572] rdma_bind_addr+0x165a/0x1f80 [ 47.630705] ? ucma_get_ctx+0x82/0x160 [ 47.634594] ? cma_ndev_work_handler+0x1b0/0x1b0 [ 47.639356] ? lock_downgrade+0x810/0x810 [ 47.643490] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.649016] rdma_resolve_addr+0x438/0x2140 [ 47.653339] ? kasan_check_write+0x14/0x20 [ 47.657560] ? __mutex_unlock_slowpath+0xf8/0x6b0 [ 47.662401] ? lock_downgrade+0x810/0x810 [ 47.666534] ? __radix_tree_lookup+0x219/0x380 [ 47.671102] ? rdma_bind_addr+0x1f80/0x1f80 [ 47.675418] ucma_resolve_ip+0x153/0x210 [ 47.679466] ? ucma_query+0x820/0x820 [ 47.683258] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.688792] ? _copy_from_user+0xdd/0x150 [ 47.692933] ucma_write+0x2d7/0x3c0 [ 47.696553] ? ucma_query+0x820/0x820 [ 47.700339] ? ucma_open+0x290/0x290 [ 47.704043] __vfs_write+0x114/0x810 [ 47.707743] ? ucma_open+0x290/0x290 [ 47.711442] ? kernel_read+0x120/0x120 [ 47.715321] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 47.720843] ? __inode_security_revalidate+0xda/0x120 [ 47.726027] ? avc_policy_seqno+0xd/0x70 [ 47.730076] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 47.735080] ? selinux_file_permission+0x92/0x550 [ 47.739919] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.745437] ? security_file_permission+0x89/0x230 [ 47.750363] ? rw_verify_area+0x118/0x360 [ 47.754494] vfs_write+0x20c/0x560 [ 47.758019] ksys_write+0x14f/0x2d0 [ 47.761629] ? __ia32_sys_read+0xb0/0xb0 [ 47.765679] ? do_syscall_64+0x26/0x620 [ 47.769639] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.774987] ? do_syscall_64+0x26/0x620 [ 47.778975] __x64_sys_write+0x73/0xb0 [ 47.782848] do_syscall_64+0xfd/0x620 [ 47.786640] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.791812] RIP: 0033:0x441349 [ 47.794986] Code: e8 5c ae 02 00 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 47.813871] RSP: 002b:00007ffcd21e2e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 47.821563] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441349 [ 47.828816] RDX: 0000000000000284 RSI: 0000000020000200 RDI: 0000000000000004 [ 47.836069] RBP: 00007ffcd21e2eb0 R08: 0000000000000001 R09: 0000000000000000 [ 47.843326] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff [ 47.850579] R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000 [ 47.860534] ================================================================== [ 47.867969] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 47.874982] Read of size 4 at addr ffff88808dd884ec by task syz-executor308/7589 [ 47.882504] [ 47.884117] CPU: 0 PID: 7589 Comm: syz-executor308 Not tainted 4.19.75 #0 [ 47.891019] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.900360] Call Trace: [ 47.902943] dump_stack+0x172/0x1f0 [ 47.906566] ? wait_consider_task+0x1b51/0x3910 [ 47.911221] print_address_description.cold+0x7c/0x20d [ 47.916491] ? wait_consider_task+0x1b51/0x3910 [ 47.921141] kasan_report.cold+0x8c/0x2ba [ 47.925278] __asan_report_load4_noabort+0x14/0x20 [ 47.930202] wait_consider_task+0x1b51/0x3910 [ 47.934681] ? lockdep_hardirqs_on+0x415/0x5d0 [ 47.939249] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 47.944331] ? add_wait_queue+0x112/0x170 [ 47.948463] ? release_task+0x1630/0x1630 [ 47.952588] ? lock_acquire+0x16f/0x3f0 [ 47.956541] ? do_wait+0x3aa/0x9d0 [ 47.960151] ? kasan_check_write+0x14/0x20 [ 47.964370] do_wait+0x439/0x9d0 [ 47.967720] ? wait_consider_task+0x3910/0x3910 [ 47.972376] kernel_wait4+0x171/0x290 [ 47.976163] ? __ia32_sys_waitid+0x140/0x140 [ 47.980568] ? task_stopped_code+0x180/0x180 [ 47.984965] __do_sys_wait4+0x147/0x160 [ 47.988924] ? kernel_wait4+0x290/0x290 [ 47.992893] ? _copy_to_user+0xc9/0x120 [ 47.996874] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 48.002431] ? put_timespec64+0xda/0x140 [ 48.006510] ? nsecs_to_jiffies+0x30/0x30 [ 48.010654] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.015413] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.020188] ? do_syscall_64+0x26/0x620 [ 48.024151] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.029502] ? do_syscall_64+0x26/0x620 [ 48.033489] __x64_sys_wait4+0x97/0xf0 [ 48.037367] do_syscall_64+0xfd/0x620 [ 48.041157] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.046419] RIP: 0033:0x4012da [ 48.049599] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 fe 23 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 [ 48.068592] RSP: 002b:00007ffcd21e2e98 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 48.076291] RAX: ffffffffffffffda RBX: 0000000000001da6 RCX: 00000000004012da [ 48.083557] RDX: 0000000040000001 RSI: 00007ffcd21e2eac RDI: ffffffffffffffff [ 48.090809] RBP: 000000000000b990 R08: 0000000000000000 R09: 0000555556cfa880 [ 48.098071] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402290 [ 48.105325] R13: 0000000000402320 R14: 0000000000000000 R15: 0000000000000000 [ 48.112587] [ 48.114204] Allocated by task 7589: [ 48.117818] save_stack+0x45/0xd0 [ 48.121253] kasan_kmalloc+0xce/0xf0 [ 48.124961] kasan_slab_alloc+0xf/0x20 [ 48.128831] kmem_cache_alloc_node+0x144/0x710 [ 48.133400] copy_process.part.0+0x1ce0/0x7a30 [ 48.137962] _do_fork+0x257/0xfd0 [ 48.141481] __x64_sys_clone+0xbf/0x150 [ 48.145450] do_syscall_64+0xfd/0x620 [ 48.149246] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.154412] [ 48.156018] Freed by task 0: [ 48.159023] save_stack+0x45/0xd0 [ 48.162470] __kasan_slab_free+0x102/0x150 [ 48.166688] kasan_slab_free+0xe/0x10 [ 48.170471] kmem_cache_free+0x86/0x260 [ 48.174429] free_task+0xdd/0x120 [ 48.177867] __put_task_struct+0x20f/0x4c0 [ 48.182097] finish_task_switch+0x52b/0x780 [ 48.186406] __schedule+0x86e/0x1dc0 [ 48.190113] schedule_idle+0x58/0x80 [ 48.193822] do_idle+0x192/0x560 [ 48.197169] cpu_startup_entry+0xc8/0xe0 [ 48.201210] start_secondary+0x3e8/0x5b0 [ 48.205264] secondary_startup_64+0xa4/0xb0 [ 48.209563] [ 48.211183] The buggy address belongs to the object at ffff88808dd88080 [ 48.211183] which belongs to the cache task_struct of size 6080 [ 48.223914] The buggy address is located 1132 bytes inside of [ 48.223914] 6080-byte region [ffff88808dd88080, ffff88808dd89840) [ 48.235943] The buggy address belongs to the page: [ 48.240924] page:ffffea0002376200 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 48.250903] flags: 0x1fffc0000008100(slab|head) [ 48.255562] raw: 01fffc0000008100 ffffea0001f9c288 ffffea00023c6d88 ffff88812c26d800 [ 48.263443] raw: 0000000000000000 ffff88808dd88080 0000000100000001 0000000000000000 [ 48.271310] page dumped because: kasan: bad access detected [ 48.277006] [ 48.278623] Memory state around the buggy address: [ 48.283535] ffff88808dd88380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.290874] ffff88808dd88400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.298245] >ffff88808dd88480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.305594] ^ [ 48.312330] ffff88808dd88500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.319670] ffff88808dd88580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.327006] ================================================================== [ 48.334344] Disabling lock debugging due to kernel taint [ 48.339878] Kernel panic - not syncing: panic_on_warn set ... [ 48.339878] [ 48.347250] CPU: 0 PID: 7589 Comm: syz-executor308 Tainted: G B 4.19.75 #0 [ 48.355557] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.364901] Call Trace: [ 48.367473] dump_stack+0x172/0x1f0 [ 48.371082] ? wait_consider_task+0x1b51/0x3910 [ 48.375751] panic+0x263/0x507 [ 48.378933] ? __warn_printk+0xf3/0xf3 [ 48.382850] ? retint_kernel+0x2d/0x2d [ 48.386738] ? trace_hardirqs_on+0x5e/0x220 [ 48.391050] ? wait_consider_task+0x1b51/0x3910 [ 48.395703] kasan_end_report+0x47/0x4f [ 48.399673] kasan_report.cold+0xa9/0x2ba [ 48.403993] __asan_report_load4_noabort+0x14/0x20 [ 48.408907] wait_consider_task+0x1b51/0x3910 [ 48.413384] ? lockdep_hardirqs_on+0x415/0x5d0 [ 48.417971] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 48.423054] ? add_wait_queue+0x112/0x170 [ 48.427185] ? release_task+0x1630/0x1630 [ 48.431320] ? lock_acquire+0x16f/0x3f0 [ 48.435287] ? do_wait+0x3aa/0x9d0 [ 48.438813] ? kasan_check_write+0x14/0x20 [ 48.443039] do_wait+0x439/0x9d0 [ 48.446393] ? wait_consider_task+0x3910/0x3910 [ 48.451060] kernel_wait4+0x171/0x290 [ 48.454867] ? __ia32_sys_waitid+0x140/0x140 [ 48.459268] ? task_stopped_code+0x180/0x180 [ 48.463668] __do_sys_wait4+0x147/0x160 [ 48.467630] ? kernel_wait4+0x290/0x290 [ 48.471603] ? _copy_to_user+0xc9/0x120 [ 48.475564] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 48.481082] ? put_timespec64+0xda/0x140 [ 48.485133] ? nsecs_to_jiffies+0x30/0x30 [ 48.489268] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.494005] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.498741] ? do_syscall_64+0x26/0x620 [ 48.502706] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.508062] ? do_syscall_64+0x26/0x620 [ 48.512031] __x64_sys_wait4+0x97/0xf0 [ 48.515909] do_syscall_64+0xfd/0x620 [ 48.519696] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.524883] RIP: 0033:0x4012da [ 48.528071] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 fe 23 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 [ 48.547057] RSP: 002b:00007ffcd21e2e98 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 48.554755] RAX: ffffffffffffffda RBX: 0000000000001da6 RCX: 00000000004012da [ 48.562026] RDX: 0000000040000001 RSI: 00007ffcd21e2eac RDI: ffffffffffffffff [ 48.569278] RBP: 000000000000b990 R08: 0000000000000000 R09: 0000555556cfa880 [ 48.576531] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402290 [ 48.583789] R13: 0000000000402320 R14: 0000000000000000 R15: 0000000000000000 [ 48.592577] Kernel Offset: disabled [ 48.596296] Rebooting in 86400 seconds..