[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [ 35.903261] kauditd_printk_skb: 9 callbacks suppressed [ 35.903271] audit: type=1800 audit(1569141264.477:33): pid=7202 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 [ 35.929822] audit: type=1800 audit(1569141264.477:34): pid=7202 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 syzkaller login: [ 42.047303] audit: type=1400 audit(1569141270.617:35): avc: denied { map } for pid=7377 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.10.43' (ECDSA) to the list of known hosts. executing program [ 61.297466] audit: type=1400 audit(1569141289.867:36): avc: denied { map } for pid=7389 comm="syz-executor194" path="/root/syz-executor194295680" 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 [ 61.322876] FAULT_INJECTION: forcing a failure. [ 61.322876] name failslab, interval 1, probability 0, space 0, times 1 [ 61.335114] CPU: 1 PID: 7390 Comm: syz-executor194 Not tainted 4.19.75 #0 [ 61.342024] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.351358] Call Trace: [ 61.353936] dump_stack+0x172/0x1f0 [ 61.357562] should_fail.cold+0xa/0x1b [ 61.361433] ? fault_create_debugfs_attr+0x1e0/0x1e0 [ 61.366516] ? lock_downgrade+0x810/0x810 [ 61.370653] __should_failslab+0x121/0x190 [ 61.374876] should_failslab+0x9/0x14 [ 61.378671] kmem_cache_alloc_trace+0x2cc/0x760 [ 61.383322] ? kasan_check_read+0x11/0x20 [ 61.387455] cma_alloc_port+0x4d/0x190 [ 61.391336] rdma_bind_addr+0x165a/0x1f80 [ 61.395471] ? ucma_get_ctx+0x82/0x160 [ 61.399352] ? cma_ndev_work_handler+0x1b0/0x1b0 [ 61.404087] ? __lock_acquire+0x6ee/0x49c0 [ 61.408306] ? lock_downgrade+0x810/0x810 [ 61.412438] rdma_resolve_addr+0x438/0x2140 [ 61.416743] ? kasan_check_write+0x14/0x20 [ 61.420963] ? __mutex_unlock_slowpath+0xf8/0x6b0 [ 61.425871] ? lock_downgrade+0x810/0x810 [ 61.430007] ? __radix_tree_lookup+0x219/0x380 [ 61.434571] ? rdma_bind_addr+0x1f80/0x1f80 [ 61.438876] ucma_resolve_addr+0x1b7/0x270 [ 61.443095] ? ucma_resolve_route+0x160/0x160 [ 61.447567] ? mark_held_locks+0x100/0x100 [ 61.451810] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 61.457329] ? _copy_from_user+0xdd/0x150 [ 61.461463] ucma_write+0x2d7/0x3c0 [ 61.465072] ? ucma_resolve_route+0x160/0x160 [ 61.469549] ? ucma_open+0x290/0x290 [ 61.473250] __vfs_write+0x114/0x810 [ 61.476947] ? ucma_open+0x290/0x290 [ 61.480642] ? kernel_read+0x120/0x120 [ 61.484512] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 61.490032] ? __inode_security_revalidate+0xda/0x120 [ 61.495241] ? avc_policy_seqno+0xd/0x70 [ 61.499281] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 61.504317] ? selinux_file_permission+0x92/0x550 [ 61.509147] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 61.514670] ? security_file_permission+0x89/0x230 [ 61.519590] ? rw_verify_area+0x118/0x360 [ 61.523721] vfs_write+0x20c/0x560 [ 61.527244] ksys_write+0x14f/0x2d0 [ 61.530857] ? __ia32_sys_read+0xb0/0xb0 [ 61.534915] ? do_syscall_64+0x26/0x620 [ 61.538869] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.544211] ? do_syscall_64+0x26/0x620 [ 61.548165] __x64_sys_write+0x73/0xb0 [ 61.552034] do_syscall_64+0xfd/0x620 [ 61.555837] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.561009] RIP: 0033:0x4412d9 [ 61.564180] 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 [ 61.583080] RSP: 002b:00007ffe95e47098 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 61.590769] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412d9 [ 61.598019] RDX: 00000000000001f3 RSI: 0000000020000140 RDI: 0000000000000003 [ 61.605267] RBP: 00007ffe95e470b0 R08: 0000000000000001 R09: 0000000000000000 [ 61.612535] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff [ 61.619873] R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000 [ 61.630388] ================================================================== [ 61.637822] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 61.644818] Read of size 4 at addr ffff8880907ae7ac by task syz-executor194/7389 [ 61.652324] [ 61.653934] CPU: 0 PID: 7389 Comm: syz-executor194 Not tainted 4.19.75 #0 [ 61.660834] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.670169] Call Trace: [ 61.672736] dump_stack+0x172/0x1f0 [ 61.676345] ? wait_consider_task+0x1b51/0x3910 [ 61.680993] print_address_description.cold+0x7c/0x20d [ 61.686257] ? wait_consider_task+0x1b51/0x3910 [ 61.690906] kasan_report.cold+0x8c/0x2ba [ 61.695037] __asan_report_load4_noabort+0x14/0x20 [ 61.699944] wait_consider_task+0x1b51/0x3910 [ 61.704430] ? lockdep_hardirqs_on+0x415/0x5d0 [ 61.709017] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 61.714102] ? add_wait_queue+0x112/0x170 [ 61.718232] ? release_task+0x1630/0x1630 [ 61.722359] ? lock_acquire+0x16f/0x3f0 [ 61.726309] ? do_wait+0x3aa/0x9d0 [ 61.729831] ? kasan_check_write+0x14/0x20 [ 61.734053] do_wait+0x439/0x9d0 [ 61.737421] ? wait_consider_task+0x3910/0x3910 [ 61.742072] kernel_wait4+0x171/0x290 [ 61.745853] ? __ia32_sys_waitid+0x140/0x140 [ 61.750247] ? task_stopped_code+0x180/0x180 [ 61.754641] __do_sys_wait4+0x147/0x160 [ 61.758609] ? kernel_wait4+0x290/0x290 [ 61.762563] ? _copy_to_user+0xc9/0x120 [ 61.766520] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 61.772041] ? put_timespec64+0xda/0x140 [ 61.776092] ? nsecs_to_jiffies+0x30/0x30 [ 61.780225] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 61.784964] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 61.789701] ? do_syscall_64+0x26/0x620 [ 61.793656] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.799029] ? do_syscall_64+0x26/0x620 [ 61.802988] __x64_sys_wait4+0x97/0xf0 [ 61.806855] do_syscall_64+0xfd/0x620 [ 61.810634] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.815803] RIP: 0033:0x40126a [ 61.818976] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 6e 24 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 [ 61.837859] RSP: 002b:00007ffe95e47098 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 61.845549] RAX: ffffffffffffffda RBX: 0000000000001cde RCX: 000000000040126a [ 61.852801] RDX: 0000000040000001 RSI: 00007ffe95e470ac RDI: ffffffffffffffff [ 61.860068] RBP: 000000000000ef5b R08: 0000000000000000 R09: 00005555557f5880 [ 61.867334] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402220 [ 61.874583] R13: 00000000004022b0 R14: 0000000000000000 R15: 0000000000000000 [ 61.881843] [ 61.883452] Allocated by task 7389: [ 61.887061] save_stack+0x45/0xd0 [ 61.890493] kasan_kmalloc+0xce/0xf0 [ 61.894188] kasan_slab_alloc+0xf/0x20 [ 61.898054] kmem_cache_alloc_node+0x144/0x710 [ 61.902635] copy_process.part.0+0x1ce0/0x7a30 [ 61.907196] _do_fork+0x257/0xfd0 [ 61.910626] __x64_sys_clone+0xbf/0x150 [ 61.914592] do_syscall_64+0xfd/0x620 [ 61.918391] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.923553] [ 61.925158] Freed by task 0: [ 61.928157] save_stack+0x45/0xd0 [ 61.931590] __kasan_slab_free+0x102/0x150 [ 61.935802] kasan_slab_free+0xe/0x10 [ 61.939595] kmem_cache_free+0x86/0x260 [ 61.943562] free_task+0xdd/0x120 [ 61.946990] __put_task_struct+0x20f/0x4c0 [ 61.951201] finish_task_switch+0x52b/0x780 [ 61.955501] __schedule+0x86e/0x1dc0 [ 61.959191] schedule_idle+0x58/0x80 [ 61.962881] do_idle+0x192/0x560 [ 61.966221] cpu_startup_entry+0xc8/0xe0 [ 61.970258] start_secondary+0x3e8/0x5b0 [ 61.974293] secondary_startup_64+0xa4/0xb0 [ 61.978584] [ 61.980191] The buggy address belongs to the object at ffff8880907ae340 [ 61.980191] which belongs to the cache task_struct of size 6080 [ 61.992915] The buggy address is located 1132 bytes inside of [ 61.992915] 6080-byte region [ffff8880907ae340, ffff8880907afb00) [ 62.004941] The buggy address belongs to the page: [ 62.009849] page:ffffea000241eb80 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 62.019796] flags: 0x1fffc0000008100(slab|head) [ 62.024443] raw: 01fffc0000008100 ffffea000241e988 ffffea0002489d88 ffff88812c26d800 [ 62.032305] raw: 0000000000000000 ffff8880907ae340 0000000100000001 0000000000000000 [ 62.040161] page dumped because: kasan: bad access detected [ 62.045841] [ 62.047443] Memory state around the buggy address: [ 62.052351] ffff8880907ae680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.059686] ffff8880907ae700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.067023] >ffff8880907ae780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.074359] ^ [ 62.079004] ffff8880907ae800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.086340] ffff8880907ae880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.093673] ================================================================== [ 62.101006] Disabling lock debugging due to kernel taint [ 62.106545] Kernel panic - not syncing: panic_on_warn set ... [ 62.106545] [ 62.114339] CPU: 0 PID: 7389 Comm: syz-executor194 Tainted: G B 4.19.75 #0 [ 62.122635] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.131963] Call Trace: [ 62.134535] dump_stack+0x172/0x1f0 [ 62.138144] ? wait_consider_task+0x1b51/0x3910 [ 62.142800] panic+0x263/0x507 [ 62.145988] ? __warn_printk+0xf3/0xf3 [ 62.149869] ? retint_kernel+0x2d/0x2d [ 62.153740] ? trace_hardirqs_on+0x5e/0x220 [ 62.158043] ? wait_consider_task+0x1b51/0x3910 [ 62.162691] kasan_end_report+0x47/0x4f [ 62.166654] kasan_report.cold+0xa9/0x2ba [ 62.170784] __asan_report_load4_noabort+0x14/0x20 [ 62.175691] wait_consider_task+0x1b51/0x3910 [ 62.180164] ? lockdep_hardirqs_on+0x415/0x5d0 [ 62.184754] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 62.189953] ? add_wait_queue+0x112/0x170 [ 62.194079] ? release_task+0x1630/0x1630 [ 62.198227] ? lock_acquire+0x16f/0x3f0 [ 62.202178] ? do_wait+0x3aa/0x9d0 [ 62.205712] ? kasan_check_write+0x14/0x20 [ 62.209926] do_wait+0x439/0x9d0 [ 62.213275] ? wait_consider_task+0x3910/0x3910 [ 62.217924] kernel_wait4+0x171/0x290 [ 62.221706] ? __ia32_sys_waitid+0x140/0x140 [ 62.226093] ? task_stopped_code+0x180/0x180 [ 62.230486] __do_sys_wait4+0x147/0x160 [ 62.234436] ? kernel_wait4+0x290/0x290 [ 62.238441] ? _copy_to_user+0xc9/0x120 [ 62.242397] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 62.247911] ? put_timespec64+0xda/0x140 [ 62.251950] ? nsecs_to_jiffies+0x30/0x30 [ 62.256215] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.260958] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.265692] ? do_syscall_64+0x26/0x620 [ 62.269658] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.275000] ? do_syscall_64+0x26/0x620 [ 62.279078] __x64_sys_wait4+0x97/0xf0 [ 62.282948] do_syscall_64+0xfd/0x620 [ 62.286726] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.291914] RIP: 0033:0x40126a [ 62.295089] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 6e 24 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 [ 62.313966] RSP: 002b:00007ffe95e47098 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 62.321649] RAX: ffffffffffffffda RBX: 0000000000001cde RCX: 000000000040126a [ 62.328898] RDX: 0000000040000001 RSI: 00007ffe95e470ac RDI: ffffffffffffffff [ 62.336147] RBP: 000000000000ef5b R08: 0000000000000000 R09: 00005555557f5880 [ 62.343394] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402220 [ 62.350641] R13: 00000000004022b0 R14: 0000000000000000 R15: 0000000000000000 [ 62.359176] Kernel Offset: disabled [ 62.362793] Rebooting in 86400 seconds..