Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 38.809932] audit: type=1800 audit(1569276831.562:33): pid=7432 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.832254] audit: type=1800 audit(1569276831.572:34): pid=7432 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.760351] audit: type=1400 audit(1569276835.512:35): avc: denied { map } for pid=7608 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.212' (ECDSA) to the list of known hosts. executing program [ 61.297142] audit: type=1400 audit(1569276854.052:36): avc: denied { map } for pid=7620 comm="syz-executor094" path="/root/syz-executor094189715" 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.313662] FAULT_INJECTION: forcing a failure. [ 61.313662] name failslab, interval 1, probability 0, space 0, times 1 [ 61.337845] CPU: 0 PID: 7620 Comm: syz-executor094 Not tainted 4.19.75 #0 [ 61.344780] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.354123] Call Trace: [ 61.356715] dump_stack+0x172/0x1f0 [ 61.360454] should_fail.cold+0xa/0x1b [ 61.364334] ? fault_create_debugfs_attr+0x1e0/0x1e0 [ 61.369426] ? lock_downgrade+0x810/0x810 [ 61.373572] __should_failslab+0x121/0x190 [ 61.377798] should_failslab+0x9/0x14 [ 61.381584] kmem_cache_alloc_trace+0x2cc/0x760 [ 61.386250] ? kasan_check_read+0x11/0x20 [ 61.390473] cma_alloc_port+0x4d/0x190 [ 61.394351] rdma_bind_addr+0x1bc2/0x1f80 [ 61.398487] ? ucma_get_ctx+0x20/0x160 [ 61.402370] ? ucma_get_ctx+0x82/0x160 [ 61.406256] ? cma_ndev_work_handler+0x1b0/0x1b0 [ 61.411013] ? lock_downgrade+0x810/0x810 [ 61.415160] rdma_resolve_addr+0x438/0x2140 [ 61.419473] ? kasan_check_write+0x14/0x20 [ 61.423693] ? __mutex_unlock_slowpath+0xf8/0x6b0 [ 61.428538] ? lock_downgrade+0x810/0x810 [ 61.432913] ? __radix_tree_lookup+0x219/0x380 [ 61.437545] ? rdma_bind_addr+0x1f80/0x1f80 [ 61.441875] ucma_resolve_ip+0x153/0x210 [ 61.445935] ? ucma_query+0x820/0x820 [ 61.449733] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 61.455266] ? _copy_from_user+0xdd/0x150 [ 61.459402] ucma_write+0x2d7/0x3c0 [ 61.463017] ? ucma_query+0x820/0x820 [ 61.466800] ? ucma_open+0x290/0x290 [ 61.470504] __vfs_write+0x114/0x810 [ 61.474217] ? ucma_open+0x290/0x290 [ 61.477917] ? kernel_read+0x120/0x120 [ 61.481796] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 61.487327] ? __inode_security_revalidate+0xda/0x120 [ 61.492502] ? avc_policy_seqno+0xd/0x70 [ 61.496575] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 61.501588] ? selinux_file_permission+0x92/0x550 [ 61.506650] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 61.512243] ? security_file_permission+0x89/0x230 [ 61.517173] ? rw_verify_area+0x118/0x360 [ 61.521319] vfs_write+0x20c/0x560 [ 61.524860] ksys_write+0x14f/0x2d0 [ 61.528481] ? __ia32_sys_read+0xb0/0xb0 [ 61.532531] ? do_syscall_64+0x26/0x620 [ 61.536512] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.541882] ? do_syscall_64+0x26/0x620 [ 61.545850] __x64_sys_write+0x73/0xb0 [ 61.550588] do_syscall_64+0xfd/0x620 [ 61.554384] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.559817] RIP: 0033:0x445369 [ 61.562997] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 7b d8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 61.581883] RSP: 002b:00007ffdcd90fb48 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 61.589663] RAX: ffffffffffffffda RBX: 00007ffdcd90fbf0 RCX: 0000000000445369 [ 61.596913] RDX: 0000000000000048 RSI: 0000000020000200 RDI: 0000000000000004 [ 61.604164] RBP: 0000000000000005 R08: 0000000000000001 R09: 0000000000401c40 [ 61.611443] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403070 [ 61.618706] R13: 0000000000403100 R14: 0000000000000000 R15: 0000000000000000 [ 61.630147] ================================================================== [ 61.637625] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 61.644625] Read of size 4 at addr ffff88808032286c by task sshd/7618 [ 61.651177] [ 61.652854] CPU: 0 PID: 7618 Comm: sshd Not tainted 4.19.75 #0 [ 61.658818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.668169] Call Trace: [ 61.670757] dump_stack+0x172/0x1f0 [ 61.674380] ? wait_consider_task+0x1b51/0x3910 [ 61.679065] print_address_description.cold+0x7c/0x20d [ 61.684344] ? wait_consider_task+0x1b51/0x3910 [ 61.689009] kasan_report.cold+0x8c/0x2ba [ 61.693154] __asan_report_load4_noabort+0x14/0x20 [ 61.698103] wait_consider_task+0x1b51/0x3910 [ 61.702593] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 61.707696] ? add_wait_queue+0x112/0x170 [ 61.711837] ? release_task+0x1630/0x1630 [ 61.715971] ? lock_acquire+0x16f/0x3f0 [ 61.719958] ? do_wait+0x3aa/0x9d0 [ 61.723484] ? kasan_check_write+0x14/0x20 [ 61.727704] do_wait+0x439/0x9d0 [ 61.731056] ? wait_consider_task+0x3910/0x3910 [ 61.735711] ? mark_held_locks+0x100/0x100 [ 61.739934] kernel_wait4+0x171/0x290 [ 61.743719] ? __ia32_sys_waitid+0x140/0x140 [ 61.748110] ? task_stopped_code+0x180/0x180 [ 61.752538] __do_sys_wait4+0x147/0x160 [ 61.756499] ? kernel_wait4+0x290/0x290 [ 61.760465] ? kasan_check_read+0x11/0x20 [ 61.764599] ? _copy_to_user+0xc9/0x120 [ 61.768570] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 61.774093] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 61.779097] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 61.784137] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 61.788962] ? do_syscall_64+0x26/0x620 [ 61.792944] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.798296] ? do_syscall_64+0x26/0x620 [ 61.802259] __x64_sys_wait4+0x97/0xf0 [ 61.806130] do_syscall_64+0xfd/0x620 [ 61.809934] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.815105] RIP: 0033:0x7fdf84c77a3e [ 61.818815] Code: 90 90 90 90 90 90 90 90 90 90 90 90 48 83 ec 28 8b 05 c2 eb 2d 00 85 c0 75 1d 45 31 d2 48 63 d2 48 63 ff b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 48 83 c4 28 c3 89 54 24 08 48 89 74 24 10 [ 61.837701] RSP: 002b:00007ffe81ad8400 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 61.845404] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdf84c77a3e [ 61.852657] RDX: 0000000000000001 RSI: 00007ffe81ad843c RDI: ffffffffffffffff [ 61.859907] RBP: 0000558e5e708c88 R08: 00007ffe81ad8500 R09: 0101010101010101 [ 61.868287] R10: 0000000000000000 R11: 0000000000000246 R12: 0000558e5fb2bdb0 [ 61.875543] R13: 0000558e5e706fb4 R14: 0000000000000028 R15: 0000558e5e708ca0 [ 61.882816] [ 61.884424] Allocated by task 7618: [ 61.888049] save_stack+0x45/0xd0 [ 61.891522] kasan_kmalloc+0xce/0xf0 [ 61.895236] kasan_slab_alloc+0xf/0x20 [ 61.899577] kmem_cache_alloc_node+0x144/0x710 [ 61.904145] copy_process.part.0+0x1ce0/0x7a30 [ 61.908707] _do_fork+0x257/0xfd0 [ 61.912171] __x64_sys_clone+0xbf/0x150 [ 61.916139] do_syscall_64+0xfd/0x620 [ 61.919929] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 61.925103] [ 61.927239] Freed by task 0: [ 61.930337] save_stack+0x45/0xd0 [ 61.933792] __kasan_slab_free+0x102/0x150 [ 61.938012] kasan_slab_free+0xe/0x10 [ 61.941825] kmem_cache_free+0x86/0x260 [ 61.945809] free_task+0xdd/0x120 [ 61.949343] __put_task_struct+0x20f/0x4c0 [ 61.953580] finish_task_switch+0x52b/0x780 [ 61.957901] __schedule+0x86e/0x1dc0 [ 61.961608] schedule_idle+0x58/0x80 [ 61.965313] do_idle+0x192/0x560 [ 61.968692] cpu_startup_entry+0xc8/0xe0 [ 61.972740] start_secondary+0x3e8/0x5b0 [ 61.976797] secondary_startup_64+0xa4/0xb0 [ 61.981109] [ 61.982896] The buggy address belongs to the object at ffff888080322400 [ 61.982896] which belongs to the cache task_struct of size 6080 [ 61.995625] The buggy address is located 1132 bytes inside of [ 61.995625] 6080-byte region [ffff888080322400, ffff888080323bc0) [ 62.007656] The buggy address belongs to the page: [ 62.012595] page:ffffea000200c880 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 62.023085] flags: 0x1fffc0000008100(slab|head) [ 62.027755] raw: 01fffc0000008100 ffffea000203db88 ffffea000283c888 ffff88812c26d800 [ 62.035708] raw: 0000000000000000 ffff888080322400 0000000100000001 0000000000000000 [ 62.043582] page dumped because: kasan: bad access detected [ 62.049293] [ 62.050916] Memory state around the buggy address: [ 62.055849] ffff888080322700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.063261] ffff888080322780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.070693] >ffff888080322800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.078032] ^ [ 62.084781] ffff888080322880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.092122] ffff888080322900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.099466] ================================================================== [ 62.106826] Disabling lock debugging due to kernel taint [ 62.112338] Kernel panic - not syncing: panic_on_warn set ... [ 62.112338] [ 62.119732] CPU: 0 PID: 7618 Comm: sshd Tainted: G B 4.19.75 #0 [ 62.127090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.136424] Call Trace: [ 62.139001] dump_stack+0x172/0x1f0 [ 62.143049] ? wait_consider_task+0x1b51/0x3910 [ 62.147711] panic+0x263/0x507 [ 62.150884] ? __warn_printk+0xf3/0xf3 [ 62.154764] ? retint_kernel+0x2d/0x2d [ 62.158662] ? trace_hardirqs_on+0x5e/0x220 [ 62.162968] ? wait_consider_task+0x1b51/0x3910 [ 62.167621] kasan_end_report+0x47/0x4f [ 62.171576] kasan_report.cold+0xa9/0x2ba [ 62.175713] __asan_report_load4_noabort+0x14/0x20 [ 62.180640] wait_consider_task+0x1b51/0x3910 [ 62.185136] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 62.190221] ? add_wait_queue+0x112/0x170 [ 62.194353] ? release_task+0x1630/0x1630 [ 62.198482] ? lock_acquire+0x16f/0x3f0 [ 62.202437] ? do_wait+0x3aa/0x9d0 [ 62.205976] ? kasan_check_write+0x14/0x20 [ 62.210191] do_wait+0x439/0x9d0 [ 62.213542] ? wait_consider_task+0x3910/0x3910 [ 62.218193] ? mark_held_locks+0x100/0x100 [ 62.222411] kernel_wait4+0x171/0x290 [ 62.226206] ? __ia32_sys_waitid+0x140/0x140 [ 62.230596] ? task_stopped_code+0x180/0x180 [ 62.234991] __do_sys_wait4+0x147/0x160 [ 62.238964] ? kernel_wait4+0x290/0x290 [ 62.242921] ? kasan_check_read+0x11/0x20 [ 62.247054] ? _copy_to_user+0xc9/0x120 [ 62.251011] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 62.256534] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 62.261800] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.266558] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.271294] ? do_syscall_64+0x26/0x620 [ 62.275253] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.280598] ? do_syscall_64+0x26/0x620 [ 62.284557] __x64_sys_wait4+0x97/0xf0 [ 62.288426] do_syscall_64+0xfd/0x620 [ 62.292209] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.297379] RIP: 0033:0x7fdf84c77a3e [ 62.301076] Code: 90 90 90 90 90 90 90 90 90 90 90 90 48 83 ec 28 8b 05 c2 eb 2d 00 85 c0 75 1d 45 31 d2 48 63 d2 48 63 ff b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 48 83 c4 28 c3 89 54 24 08 48 89 74 24 10 [ 62.319961] RSP: 002b:00007ffe81ad8400 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 62.327658] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdf84c77a3e [ 62.335011] RDX: 0000000000000001 RSI: 00007ffe81ad843c RDI: ffffffffffffffff [ 62.342609] RBP: 0000558e5e708c88 R08: 00007ffe81ad8500 R09: 0101010101010101 [ 62.349860] R10: 0000000000000000 R11: 0000000000000246 R12: 0000558e5fb2bdb0 [ 62.357113] R13: 0000558e5e706fb4 R14: 0000000000000028 R15: 0000558e5e708ca0 [ 62.365812] Kernel Offset: disabled [ 62.369449] Rebooting in 86400 seconds..