Warning: Permanently added '10.128.0.149' (ECDSA) to the list of known hosts. executing program [ 46.653523] audit: type=1400 audit(1569630843.926:36): avc: denied { map } for pid=7557 comm="syz-executor215" path="/root/syz-executor215800243" 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.683593] ================================================================== [ 46.691067] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 46.698096] Read of size 4 at addr ffff88809148c7ac by task sshd/7555 [ 46.704666] [ 46.706352] CPU: 0 PID: 7555 Comm: sshd Not tainted 4.19.75 #0 [ 46.712335] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.721690] Call Trace: [ 46.724280] dump_stack+0x172/0x1f0 [ 46.727934] ? wait_consider_task+0x1b51/0x3910 [ 46.732719] print_address_description.cold+0x7c/0x20d [ 46.738015] ? wait_consider_task+0x1b51/0x3910 [ 46.742679] kasan_report.cold+0x8c/0x2ba [ 46.746825] __asan_report_load4_noabort+0x14/0x20 [ 46.751763] wait_consider_task+0x1b51/0x3910 [ 46.756277] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 46.761531] ? add_wait_queue+0x112/0x170 [ 46.765778] ? release_task+0x1630/0x1630 [ 46.769915] ? lock_acquire+0x16f/0x3f0 [ 46.773875] ? do_wait+0x3aa/0x9d0 [ 46.777404] ? kasan_check_write+0x14/0x20 [ 46.781860] do_wait+0x439/0x9d0 [ 46.785242] ? wait_consider_task+0x3910/0x3910 [ 46.789959] ? mark_held_locks+0x100/0x100 [ 46.794310] kernel_wait4+0x171/0x290 [ 46.798157] ? __ia32_sys_waitid+0x140/0x140 [ 46.802583] ? task_stopped_code+0x180/0x180 [ 46.807000] __do_sys_wait4+0x147/0x160 [ 46.810968] ? kernel_wait4+0x290/0x290 [ 46.814943] ? kasan_check_read+0x11/0x20 [ 46.819079] ? _copy_to_user+0xc9/0x120 [ 46.823131] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.828653] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 46.833659] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.838399] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.843141] ? do_syscall_64+0x26/0x620 [ 46.847102] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.852463] ? do_syscall_64+0x26/0x620 [ 46.856449] __x64_sys_wait4+0x97/0xf0 [ 46.860347] do_syscall_64+0xfd/0x620 [ 46.864142] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.869348] RIP: 0033:0x7f66f5a5fa3e [ 46.873076] 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 [ 46.892513] RSP: 002b:00007ffd7d5abf80 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 46.900222] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f66f5a5fa3e [ 46.907485] RDX: 0000000000000001 RSI: 00007ffd7d5abfbc RDI: ffffffffffffffff [ 46.914838] RBP: 000055ea538a4c88 R08: 00007ffd7d5ac080 R09: 0101010101010101 [ 46.922120] R10: 0000000000000000 R11: 0000000000000246 R12: 000055ea54413c00 [ 46.929482] R13: 000055ea538a2fb4 R14: 0000000000000028 R15: 000055ea538a4ca0 [ 46.936770] [ 46.938389] Allocated by task 7555: [ 46.942013] save_stack+0x45/0xd0 [ 46.945457] kasan_kmalloc+0xce/0xf0 [ 46.949169] kasan_slab_alloc+0xf/0x20 [ 46.953058] kmem_cache_alloc_node+0x144/0x710 [ 46.957624] copy_process.part.0+0x1ce0/0x7a30 [ 46.962205] _do_fork+0x257/0xfd0 [ 46.965655] __x64_sys_clone+0xbf/0x150 [ 46.969618] do_syscall_64+0xfd/0x620 [ 46.973405] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.978725] [ 46.980345] Freed by task 0: [ 46.983659] save_stack+0x45/0xd0 [ 46.987104] __kasan_slab_free+0x102/0x150 [ 46.991359] kasan_slab_free+0xe/0x10 [ 46.995252] kmem_cache_free+0x86/0x260 [ 46.999303] free_task+0xdd/0x120 [ 47.002758] __put_task_struct+0x20f/0x4c0 [ 47.006998] finish_task_switch+0x52b/0x780 [ 47.011315] __schedule+0x86e/0x1dc0 [ 47.015478] schedule_idle+0x58/0x80 [ 47.019366] do_idle+0x192/0x560 [ 47.022738] cpu_startup_entry+0xc8/0xe0 [ 47.026799] start_secondary+0x3e8/0x5b0 [ 47.030858] secondary_startup_64+0xa4/0xb0 [ 47.035170] [ 47.036806] The buggy address belongs to the object at ffff88809148c340 [ 47.036806] which belongs to the cache task_struct of size 6080 [ 47.049589] The buggy address is located 1132 bytes inside of [ 47.049589] 6080-byte region [ffff88809148c340, ffff88809148db00) [ 47.061779] The buggy address belongs to the page: [ 47.066702] page:ffffea0002452300 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 47.076794] flags: 0x1fffc0000008100(slab|head) [ 47.081644] raw: 01fffc0000008100 ffffea0002572808 ffffea000255f208 ffff88812c26d800 [ 47.089522] raw: 0000000000000000 ffff88809148c340 0000000100000001 0000000000000000 [ 47.097472] page dumped because: kasan: bad access detected [ 47.104765] [ 47.106377] Memory state around the buggy address: [ 47.111379] ffff88809148c680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.118838] ffff88809148c700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.126379] >ffff88809148c780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.133916] ^ [ 47.138572] ffff88809148c800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.145931] ffff88809148c880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.153286] ================================================================== [ 47.160711] Disabling lock debugging due to kernel taint [ 47.166326] Kernel panic - not syncing: panic_on_warn set ... [ 47.166326] [ 47.173817] CPU: 0 PID: 7555 Comm: sshd Tainted: G B 4.19.75 #0 [ 47.181179] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.190688] Call Trace: [ 47.193294] dump_stack+0x172/0x1f0 [ 47.196915] ? wait_consider_task+0x1b51/0x3910 [ 47.201569] panic+0x263/0x507 [ 47.204744] ? __warn_printk+0xf3/0xf3 [ 47.208619] ? retint_kernel+0x2d/0x2d [ 47.212503] ? trace_hardirqs_on+0x5e/0x220 [ 47.216807] ? wait_consider_task+0x1b51/0x3910 [ 47.221548] kasan_end_report+0x47/0x4f [ 47.225502] kasan_report.cold+0xa9/0x2ba [ 47.229633] __asan_report_load4_noabort+0x14/0x20 [ 47.234559] wait_consider_task+0x1b51/0x3910 [ 47.239049] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 47.244153] ? add_wait_queue+0x112/0x170 [ 47.248459] ? release_task+0x1630/0x1630 [ 47.252603] ? lock_acquire+0x16f/0x3f0 [ 47.256571] ? do_wait+0x3aa/0x9d0 [ 47.260111] ? kasan_check_write+0x14/0x20 [ 47.264345] do_wait+0x439/0x9d0 [ 47.267696] ? wait_consider_task+0x3910/0x3910 [ 47.272369] ? mark_held_locks+0x100/0x100 [ 47.276587] kernel_wait4+0x171/0x290 [ 47.280371] ? __ia32_sys_waitid+0x140/0x140 [ 47.284767] ? task_stopped_code+0x180/0x180 [ 47.289178] __do_sys_wait4+0x147/0x160 [ 47.293135] ? kernel_wait4+0x290/0x290 [ 47.297101] ? kasan_check_read+0x11/0x20 [ 47.301244] ? _copy_to_user+0xc9/0x120 [ 47.305213] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.310742] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 47.315740] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.320512] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.325250] ? do_syscall_64+0x26/0x620 [ 47.329206] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.334722] ? do_syscall_64+0x26/0x620 [ 47.338679] __x64_sys_wait4+0x97/0xf0 [ 47.342566] do_syscall_64+0xfd/0x620 [ 47.346373] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.351552] RIP: 0033:0x7f66f5a5fa3e [ 47.355257] 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 [ 47.374154] RSP: 002b:00007ffd7d5abf80 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 47.381879] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f66f5a5fa3e [ 47.389312] RDX: 0000000000000001 RSI: 00007ffd7d5abfbc RDI: ffffffffffffffff [ 47.396570] RBP: 000055ea538a4c88 R08: 00007ffd7d5ac080 R09: 0101010101010101 [ 47.403823] R10: 0000000000000000 R11: 0000000000000246 R12: 000055ea54413c00 [ 47.411101] R13: 000055ea538a2fb4 R14: 0000000000000028 R15: 000055ea538a4ca0 [ 47.420208] Kernel Offset: disabled [ 47.423838] Rebooting in 86400 seconds..