Warning: Permanently added '10.128.10.0' (ECDSA) to the list of known hosts. executing program [ 51.675398] audit: type=1400 audit(1569053724.118:36): avc: denied { map } for pid=7697 comm="syz-executor684" path="/root/syz-executor684480109" 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 [ 51.705239] ================================================================== [ 51.712749] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 51.719769] Read of size 4 at addr ffff888092c4a96c by task sshd/7695 [ 51.726339] [ 51.727957] CPU: 0 PID: 7695 Comm: sshd Not tainted 4.19.75 #0 [ 51.733925] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.743390] Call Trace: [ 51.745988] dump_stack+0x172/0x1f0 [ 51.749626] ? wait_consider_task+0x1b51/0x3910 [ 51.754415] print_address_description.cold+0x7c/0x20d [ 51.759745] ? wait_consider_task+0x1b51/0x3910 [ 51.764405] kasan_report.cold+0x8c/0x2ba [ 51.768550] __asan_report_load4_noabort+0x14/0x20 [ 51.773466] wait_consider_task+0x1b51/0x3910 [ 51.777951] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 51.783198] ? add_wait_queue+0x112/0x170 [ 51.787413] ? release_task+0x1630/0x1630 [ 51.791562] ? lock_acquire+0x16f/0x3f0 [ 51.795534] ? do_wait+0x3aa/0x9d0 [ 51.799092] ? kasan_check_write+0x14/0x20 [ 51.803313] do_wait+0x439/0x9d0 [ 51.806667] ? wait_consider_task+0x3910/0x3910 [ 51.811317] ? mark_held_locks+0x100/0x100 [ 51.815535] kernel_wait4+0x171/0x290 [ 51.819319] ? __ia32_sys_waitid+0x140/0x140 [ 51.823715] ? task_stopped_code+0x180/0x180 [ 51.828121] __do_sys_wait4+0x147/0x160 [ 51.832097] ? kernel_wait4+0x290/0x290 [ 51.836080] ? kasan_check_read+0x11/0x20 [ 51.840239] ? _copy_to_user+0xc9/0x120 [ 51.844217] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 51.849754] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 51.854763] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.859606] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.864362] ? do_syscall_64+0x26/0x620 [ 51.868323] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.873674] ? do_syscall_64+0x26/0x620 [ 51.877660] __x64_sys_wait4+0x97/0xf0 [ 51.881552] do_syscall_64+0xfd/0x620 [ 51.885358] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.890550] RIP: 0033:0x7f18a10b7a3e [ 51.894318] 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 [ 51.913231] RSP: 002b:00007ffcfaba6850 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 51.920949] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f18a10b7a3e [ 51.928208] RDX: 0000000000000001 RSI: 00007ffcfaba688c RDI: ffffffffffffffff [ 51.935479] RBP: 000055db06c93c88 R08: 00007ffcfaba6950 R09: 0101010101010101 [ 51.942788] R10: 0000000000000000 R11: 0000000000000246 R12: 000055db06f0edb0 [ 51.950051] R13: 000055db06c91fb4 R14: 0000000000000028 R15: 000055db06c93ca0 [ 51.957327] [ 51.958938] Allocated by task 7695: [ 51.962578] save_stack+0x45/0xd0 [ 51.966032] kasan_kmalloc+0xce/0xf0 [ 51.969730] kasan_slab_alloc+0xf/0x20 [ 51.973623] kmem_cache_alloc_node+0x144/0x710 [ 51.978214] copy_process.part.0+0x1ce0/0x7a30 [ 51.982807] _do_fork+0x257/0xfd0 [ 51.986250] __x64_sys_clone+0xbf/0x150 [ 51.990215] do_syscall_64+0xfd/0x620 [ 51.994003] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.999214] [ 52.000823] Freed by task 0: [ 52.003828] save_stack+0x45/0xd0 [ 52.007431] __kasan_slab_free+0x102/0x150 [ 52.011666] kasan_slab_free+0xe/0x10 [ 52.015463] kmem_cache_free+0x86/0x260 [ 52.019428] free_task+0xdd/0x120 [ 52.022918] __put_task_struct+0x20f/0x4c0 [ 52.027140] finish_task_switch+0x52b/0x780 [ 52.031447] __schedule+0x86e/0x1dc0 [ 52.035149] schedule_idle+0x58/0x80 [ 52.038841] do_idle+0x192/0x560 [ 52.042189] cpu_startup_entry+0xc8/0xe0 [ 52.046279] start_secondary+0x3e8/0x5b0 [ 52.050327] secondary_startup_64+0xa4/0xb0 [ 52.054714] [ 52.056324] The buggy address belongs to the object at ffff888092c4a500 [ 52.056324] which belongs to the cache task_struct of size 6080 [ 52.069054] The buggy address is located 1132 bytes inside of [ 52.069054] 6080-byte region [ffff888092c4a500, ffff888092c4bcc0) [ 52.081100] The buggy address belongs to the page: [ 52.086026] page:ffffea00024b1280 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 52.095979] flags: 0x1fffc0000008100(slab|head) [ 52.100635] raw: 01fffc0000008100 ffffea00024b0908 ffffea00024b5388 ffff88812c26d800 [ 52.108500] raw: 0000000000000000 ffff888092c4a500 0000000100000001 0000000000000000 [ 52.116361] page dumped because: kasan: bad access detected [ 52.122062] [ 52.123670] Memory state around the buggy address: [ 52.128602] ffff888092c4a800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.135960] ffff888092c4a880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.143309] >ffff888092c4a900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.150649] ^ [ 52.157384] ffff888092c4a980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.164748] ffff888092c4aa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.172103] ================================================================== [ 52.179446] Disabling lock debugging due to kernel taint [ 52.185025] Kernel panic - not syncing: panic_on_warn set ... [ 52.185025] [ 52.192404] CPU: 0 PID: 7695 Comm: sshd Tainted: G B 4.19.75 #0 [ 52.199746] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.209083] Call Trace: [ 52.211682] dump_stack+0x172/0x1f0 [ 52.215328] ? wait_consider_task+0x1b51/0x3910 [ 52.219992] panic+0x263/0x507 [ 52.223229] ? __warn_printk+0xf3/0xf3 [ 52.227148] ? retint_kernel+0x2d/0x2d [ 52.231044] ? trace_hardirqs_on+0x5e/0x220 [ 52.235387] ? wait_consider_task+0x1b51/0x3910 [ 52.240057] kasan_end_report+0x47/0x4f [ 52.244031] kasan_report.cold+0xa9/0x2ba [ 52.248169] __asan_report_load4_noabort+0x14/0x20 [ 52.253087] wait_consider_task+0x1b51/0x3910 [ 52.257643] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 52.262728] ? add_wait_queue+0x112/0x170 [ 52.266860] ? release_task+0x1630/0x1630 [ 52.270992] ? lock_acquire+0x16f/0x3f0 [ 52.274946] ? do_wait+0x3aa/0x9d0 [ 52.278475] ? kasan_check_write+0x14/0x20 [ 52.282696] do_wait+0x439/0x9d0 [ 52.286075] ? wait_consider_task+0x3910/0x3910 [ 52.290726] ? mark_held_locks+0x100/0x100 [ 52.294946] kernel_wait4+0x171/0x290 [ 52.298793] ? __ia32_sys_waitid+0x140/0x140 [ 52.303203] ? task_stopped_code+0x180/0x180 [ 52.307610] __do_sys_wait4+0x147/0x160 [ 52.311736] ? kernel_wait4+0x290/0x290 [ 52.315710] ? kasan_check_read+0x11/0x20 [ 52.319859] ? _copy_to_user+0xc9/0x120 [ 52.323824] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 52.329362] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 52.334365] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.339103] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.343841] ? do_syscall_64+0x26/0x620 [ 52.347803] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.353150] ? do_syscall_64+0x26/0x620 [ 52.357110] __x64_sys_wait4+0x97/0xf0 [ 52.360983] do_syscall_64+0xfd/0x620 [ 52.364767] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.369951] RIP: 0033:0x7f18a10b7a3e [ 52.373650] 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 [ 52.392546] RSP: 002b:00007ffcfaba6850 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 52.400250] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f18a10b7a3e [ 52.407501] RDX: 0000000000000001 RSI: 00007ffcfaba688c RDI: ffffffffffffffff [ 52.414900] RBP: 000055db06c93c88 R08: 00007ffcfaba6950 R09: 0101010101010101 [ 52.422161] R10: 0000000000000000 R11: 0000000000000246 R12: 000055db06f0edb0 [ 52.429416] R13: 000055db06c91fb4 R14: 0000000000000028 R15: 000055db06c93ca0 [ 52.437398] Kernel Offset: disabled [ 52.441033] Rebooting in 86400 seconds..