[....] 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.497064] audit: type=1800 audit(1569201095.105:33): pid=7304 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 [ 38.518392] audit: type=1800 audit(1569201095.105:34): pid=7304 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: [ 40.014594] audit: type=1400 audit(1569201096.625:35): avc: denied { map } for pid=7477 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.115' (ECDSA) to the list of known hosts. executing program [ 46.543820] audit: type=1400 audit(1569201103.155:36): avc: denied { map } for pid=7490 comm="syz-executor100" path="/root/syz-executor100539499" 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 [ 46.567065] FAULT_INJECTION: forcing a failure. [ 46.567065] name failslab, interval 1, probability 0, space 0, times 1 [ 46.582559] CPU: 0 PID: 7491 Comm: syz-executor100 Not tainted 4.19.75 #0 [ 46.589695] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.599479] Call Trace: [ 46.602085] dump_stack+0x172/0x1f0 [ 46.605890] should_fail.cold+0xa/0x1b [ 46.609777] ? fault_create_debugfs_attr+0x1e0/0x1e0 [ 46.615420] ? lock_downgrade+0x810/0x810 [ 46.619723] __should_failslab+0x121/0x190 [ 46.624009] should_failslab+0x9/0x14 [ 46.627919] kmem_cache_alloc_trace+0x2cc/0x760 [ 46.632686] ? kasan_check_read+0x11/0x20 [ 46.637151] cma_alloc_port+0x4d/0x190 [ 46.641227] rdma_bind_addr+0x165a/0x1f80 [ 46.645419] ? ucma_get_ctx+0x82/0x160 [ 46.649312] ? cma_ndev_work_handler+0x1b0/0x1b0 [ 46.654339] ? lock_downgrade+0x810/0x810 [ 46.659002] rdma_resolve_addr+0x438/0x2140 [ 46.663311] ? kasan_check_write+0x14/0x20 [ 46.667534] ? __mutex_unlock_slowpath+0xf8/0x6b0 [ 46.672364] ? lock_downgrade+0x810/0x810 [ 46.676508] ? __radix_tree_lookup+0x219/0x380 [ 46.681077] ? rdma_bind_addr+0x1f80/0x1f80 [ 46.685388] ucma_resolve_ip+0x153/0x210 [ 46.689432] ? ucma_query+0x820/0x820 [ 46.693400] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.699113] ? _copy_from_user+0xdd/0x150 [ 46.703259] ucma_write+0x2d7/0x3c0 [ 46.706870] ? ucma_query+0x820/0x820 [ 46.710686] ? ucma_open+0x290/0x290 [ 46.714408] __vfs_write+0x114/0x810 [ 46.718117] ? ucma_open+0x290/0x290 [ 46.721824] ? kernel_read+0x120/0x120 [ 46.726654] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 46.732230] ? __inode_security_revalidate+0xda/0x120 [ 46.737447] ? avc_policy_seqno+0xd/0x70 [ 46.741519] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 46.746526] ? selinux_file_permission+0x92/0x550 [ 46.751558] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.757867] ? security_file_permission+0x89/0x230 [ 46.762805] ? rw_verify_area+0x118/0x360 [ 46.766954] vfs_write+0x20c/0x560 [ 46.770669] ksys_write+0x14f/0x2d0 [ 46.774506] ? __ia32_sys_read+0xb0/0xb0 [ 46.778585] ? do_syscall_64+0x26/0x620 [ 46.782572] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.787947] ? do_syscall_64+0x26/0x620 [ 46.791921] __x64_sys_write+0x73/0xb0 [ 46.795992] do_syscall_64+0xfd/0x620 [ 46.801022] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.807004] RIP: 0033:0x441349 [ 46.810193] 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 [ 46.829780] RSP: 002b:00007ffdd82361b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 46.837483] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441349 [ 46.844741] RDX: 0000000000000048 RSI: 0000000020000240 RDI: 0000000000000003 [ 46.851997] RBP: 00007ffdd82361d0 R08: 0000000000000001 R09: 0000000000000000 [ 46.859269] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff [ 46.866542] R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000 [ 46.877818] ================================================================== [ 46.885290] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 46.893338] Read of size 4 at addr ffff8880823b49ac by task syz-executor100/7490 [ 46.900869] [ 46.902503] CPU: 1 PID: 7490 Comm: syz-executor100 Not tainted 4.19.75 #0 [ 46.909511] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.918876] Call Trace: [ 46.921474] dump_stack+0x172/0x1f0 [ 46.925111] ? wait_consider_task+0x1b51/0x3910 [ 46.929768] print_address_description.cold+0x7c/0x20d [ 46.935035] ? wait_consider_task+0x1b51/0x3910 [ 46.939697] kasan_report.cold+0x8c/0x2ba [ 46.943836] __asan_report_load4_noabort+0x14/0x20 [ 46.948756] wait_consider_task+0x1b51/0x3910 [ 46.953244] ? lockdep_hardirqs_on+0x415/0x5d0 [ 46.957811] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 46.962897] ? add_wait_queue+0x112/0x170 [ 46.967999] ? release_task+0x1630/0x1630 [ 46.972159] ? lock_acquire+0x16f/0x3f0 [ 46.976134] ? do_wait+0x3aa/0x9d0 [ 46.979681] ? kasan_check_write+0x14/0x20 [ 46.983921] do_wait+0x439/0x9d0 [ 46.987282] ? wait_consider_task+0x3910/0x3910 [ 46.991944] kernel_wait4+0x171/0x290 [ 46.995733] ? __ia32_sys_waitid+0x140/0x140 [ 47.000217] ? task_stopped_code+0x180/0x180 [ 47.004632] __do_sys_wait4+0x147/0x160 [ 47.008593] ? kernel_wait4+0x290/0x290 [ 47.012551] ? _copy_to_user+0xc9/0x120 [ 47.016510] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.022118] ? put_timespec64+0xda/0x140 [ 47.026161] ? nsecs_to_jiffies+0x30/0x30 [ 47.030298] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.035050] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.039806] ? do_syscall_64+0x26/0x620 [ 47.043802] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.049171] ? do_syscall_64+0x26/0x620 [ 47.053151] __x64_sys_wait4+0x97/0xf0 [ 47.057053] do_syscall_64+0xfd/0x620 [ 47.060853] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.066087] RIP: 0033:0x4012da [ 47.069285] 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 [ 47.088200] RSP: 002b:00007ffdd82361b8 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 47.095911] RAX: ffffffffffffffda RBX: 0000000000001d43 RCX: 00000000004012da [ 47.105617] RDX: 0000000040000001 RSI: 00007ffdd82361cc RDI: ffffffffffffffff [ 47.112867] RBP: 000000000000b5a8 R08: 0000000000000000 R09: 00005555565c5880 [ 47.120120] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402290 [ 47.127381] R13: 0000000000402320 R14: 0000000000000000 R15: 0000000000000000 [ 47.135446] [ 47.137054] Allocated by task 7490: [ 47.140673] save_stack+0x45/0xd0 [ 47.144470] kasan_kmalloc+0xce/0xf0 [ 47.148170] kasan_slab_alloc+0xf/0x20 [ 47.152055] kmem_cache_alloc_node+0x144/0x710 [ 47.156653] copy_process.part.0+0x1ce0/0x7a30 [ 47.161279] _do_fork+0x257/0xfd0 [ 47.164733] __x64_sys_clone+0xbf/0x150 [ 47.168702] do_syscall_64+0xfd/0x620 [ 47.172492] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.177661] [ 47.179269] Freed by task 0: [ 47.182275] save_stack+0x45/0xd0 [ 47.185714] __kasan_slab_free+0x102/0x150 [ 47.189930] kasan_slab_free+0xe/0x10 [ 47.193733] kmem_cache_free+0x86/0x260 [ 47.197689] free_task+0xdd/0x120 [ 47.201301] __put_task_struct+0x20f/0x4c0 [ 47.205603] finish_task_switch+0x52b/0x780 [ 47.210121] __schedule+0x86e/0x1dc0 [ 47.213841] schedule_idle+0x58/0x80 [ 47.217540] do_idle+0x192/0x560 [ 47.220893] cpu_startup_entry+0xc8/0xe0 [ 47.224946] rest_init+0x219/0x222 [ 47.228482] start_kernel+0x88c/0x8c5 [ 47.232275] x86_64_start_reservations+0x29/0x2b [ 47.237012] x86_64_start_kernel+0x77/0x7b [ 47.241232] secondary_startup_64+0xa4/0xb0 [ 47.245549] [ 47.247171] The buggy address belongs to the object at ffff8880823b4540 [ 47.247171] which belongs to the cache task_struct of size 6080 [ 47.260093] The buggy address is located 1132 bytes inside of [ 47.260093] 6080-byte region [ffff8880823b4540, ffff8880823b5d00) [ 47.272125] The buggy address belongs to the page: [ 47.277150] page:ffffea000208ed00 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 47.287291] flags: 0x1fffc0000008100(slab|head) [ 47.291946] raw: 01fffc0000008100 ffffea0002747488 ffffea00027a7988 ffff88812c26d800 [ 47.299809] raw: 0000000000000000 ffff8880823b4540 0000000100000001 0000000000000000 [ 47.307670] page dumped because: kasan: bad access detected [ 47.313365] [ 47.314973] Memory state around the buggy address: [ 47.319882] ffff8880823b4880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.327224] ffff8880823b4900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.334583] >ffff8880823b4980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.341956] ^ [ 47.346633] ffff8880823b4a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.353983] ffff8880823b4a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.361323] ================================================================== [ 47.368672] Disabling lock debugging due to kernel taint [ 47.374404] Kernel panic - not syncing: panic_on_warn set ... [ 47.374404] [ 47.381783] CPU: 1 PID: 7490 Comm: syz-executor100 Tainted: G B 4.19.75 #0 [ 47.390077] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.399418] Call Trace: [ 47.401999] dump_stack+0x172/0x1f0 [ 47.405615] ? wait_consider_task+0x1b51/0x3910 [ 47.410287] panic+0x263/0x507 [ 47.413471] ? __warn_printk+0xf3/0xf3 [ 47.417375] ? retint_kernel+0x2d/0x2d [ 47.421285] ? trace_hardirqs_on+0x5e/0x220 [ 47.425598] ? wait_consider_task+0x1b51/0x3910 [ 47.430276] kasan_end_report+0x47/0x4f [ 47.434249] kasan_report.cold+0xa9/0x2ba [ 47.438384] __asan_report_load4_noabort+0x14/0x20 [ 47.443296] wait_consider_task+0x1b51/0x3910 [ 47.448727] ? lockdep_hardirqs_on+0x415/0x5d0 [ 47.453296] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 47.458388] ? add_wait_queue+0x112/0x170 [ 47.462529] ? release_task+0x1630/0x1630 [ 47.466748] ? lock_acquire+0x16f/0x3f0 [ 47.470716] ? do_wait+0x3aa/0x9d0 [ 47.474354] ? kasan_check_write+0x14/0x20 [ 47.478592] do_wait+0x439/0x9d0 [ 47.481959] ? wait_consider_task+0x3910/0x3910 [ 47.486951] kernel_wait4+0x171/0x290 [ 47.490772] ? __ia32_sys_waitid+0x140/0x140 [ 47.495186] ? task_stopped_code+0x180/0x180 [ 47.499721] __do_sys_wait4+0x147/0x160 [ 47.503799] ? kernel_wait4+0x290/0x290 [ 47.507775] ? _copy_to_user+0xc9/0x120 [ 47.511739] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.517318] ? put_timespec64+0xda/0x140 [ 47.521377] ? nsecs_to_jiffies+0x30/0x30 [ 47.525535] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.530811] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.535563] ? do_syscall_64+0x26/0x620 [ 47.540345] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.545802] ? do_syscall_64+0x26/0x620 [ 47.549889] __x64_sys_wait4+0x97/0xf0 [ 47.553767] do_syscall_64+0xfd/0x620 [ 47.557557] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.562741] RIP: 0033:0x4012da [ 47.565918] 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 [ 47.584813] RSP: 002b:00007ffdd82361b8 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 47.592786] RAX: ffffffffffffffda RBX: 0000000000001d43 RCX: 00000000004012da [ 47.600059] RDX: 0000000040000001 RSI: 00007ffdd82361cc RDI: ffffffffffffffff [ 47.607414] RBP: 000000000000b5a8 R08: 0000000000000000 R09: 00005555565c5880 [ 47.614691] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402290 [ 47.622125] R13: 0000000000402320 R14: 0000000000000000 R15: 0000000000000000 [ 47.630150] Kernel Offset: disabled [ 47.633785] Rebooting in 86400 seconds..