Warning: Permanently added '10.128.1.43' (ECDSA) to the list of known hosts. executing program [ 53.215914] audit: type=1400 audit(1569369350.917:36): avc: denied { map } for pid=7529 comm="syz-executor753" path="/root/syz-executor753198732" 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 [ 53.255736] ================================================================== [ 53.263236] BUG: KASAN: use-after-free in wait_consider_task+0x1b51/0x3910 [ 53.270262] Read of size 4 at addr ffff8880964d6a6c by task sshd/7527 [ 53.276933] [ 53.278565] CPU: 0 PID: 7527 Comm: sshd Not tainted 4.19.75 #0 [ 53.284530] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.293911] Call Trace: [ 53.296500] dump_stack+0x172/0x1f0 [ 53.300537] ? wait_consider_task+0x1b51/0x3910 [ 53.305259] print_address_description.cold+0x7c/0x20d [ 53.310541] ? wait_consider_task+0x1b51/0x3910 [ 53.315205] kasan_report.cold+0x8c/0x2ba [ 53.319407] __asan_report_load4_noabort+0x14/0x20 [ 53.324589] wait_consider_task+0x1b51/0x3910 [ 53.329081] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 53.334168] ? add_wait_queue+0x112/0x170 [ 53.338516] ? release_task+0x1630/0x1630 [ 53.342664] ? lock_acquire+0x16f/0x3f0 [ 53.346629] ? do_wait+0x3aa/0x9d0 [ 53.350290] ? kasan_check_write+0x14/0x20 [ 53.354596] do_wait+0x439/0x9d0 [ 53.357994] ? wait_consider_task+0x3910/0x3910 [ 53.362668] ? mark_held_locks+0x100/0x100 [ 53.366917] kernel_wait4+0x171/0x290 [ 53.370738] ? __ia32_sys_waitid+0x140/0x140 [ 53.375154] ? task_stopped_code+0x180/0x180 [ 53.379563] __do_sys_wait4+0x147/0x160 [ 53.383526] ? kernel_wait4+0x290/0x290 [ 53.387506] ? kasan_check_read+0x11/0x20 [ 53.391646] ? _copy_to_user+0xc9/0x120 [ 53.395609] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 53.401142] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 53.406273] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.411028] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.415835] ? do_syscall_64+0x26/0x620 [ 53.419805] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.425161] ? do_syscall_64+0x26/0x620 [ 53.429139] __x64_sys_wait4+0x97/0xf0 [ 53.433015] do_syscall_64+0xfd/0x620 [ 53.436899] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.442087] RIP: 0033:0x7fee75982a3e [ 53.445787] 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 [ 53.464673] RSP: 002b:00007ffc918c56d0 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 53.472367] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fee75982a3e [ 53.479633] RDX: 0000000000000001 RSI: 00007ffc918c570c RDI: ffffffffffffffff [ 53.486888] RBP: 000055952877bc88 R08: 00007ffc918c57d0 R09: 0101010101010101 [ 53.494181] R10: 0000000000000000 R11: 0000000000000246 R12: 000055952a345c00 [ 53.501453] R13: 0000559528779fb4 R14: 0000000000000028 R15: 000055952877bca0 [ 53.508744] [ 53.510361] Allocated by task 7527: [ 53.513986] save_stack+0x45/0xd0 [ 53.517429] kasan_kmalloc+0xce/0xf0 [ 53.521155] kasan_slab_alloc+0xf/0x20 [ 53.525086] kmem_cache_alloc_node+0x144/0x710 [ 53.529691] copy_process.part.0+0x1ce0/0x7a30 [ 53.534278] _do_fork+0x257/0xfd0 [ 53.537720] __x64_sys_clone+0xbf/0x150 [ 53.541745] do_syscall_64+0xfd/0x620 [ 53.545547] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.550721] [ 53.553074] Freed by task 0: [ 53.556098] save_stack+0x45/0xd0 [ 53.559548] __kasan_slab_free+0x102/0x150 [ 53.563777] kasan_slab_free+0xe/0x10 [ 53.567567] kmem_cache_free+0x86/0x260 [ 53.571529] free_task+0xdd/0x120 [ 53.574990] __put_task_struct+0x20f/0x4c0 [ 53.579444] finish_task_switch+0x52b/0x780 [ 53.584287] __schedule+0x86e/0x1dc0 [ 53.588010] schedule_idle+0x58/0x80 [ 53.591714] do_idle+0x192/0x560 [ 53.595082] cpu_startup_entry+0xc8/0xe0 [ 53.599146] start_secondary+0x3e8/0x5b0 [ 53.603194] secondary_startup_64+0xa4/0xb0 [ 53.607554] [ 53.609189] The buggy address belongs to the object at ffff8880964d6600 [ 53.609189] which belongs to the cache task_struct of size 6080 [ 53.621963] The buggy address is located 1132 bytes inside of [ 53.621963] 6080-byte region [ffff8880964d6600, ffff8880964d7dc0) [ 53.634022] The buggy address belongs to the page: [ 53.638940] page:ffffea0002593580 count:1 mapcount:0 mapping:ffff88812c26d800 index:0x0 compound_mapcount: 0 [ 53.648897] flags: 0x1fffc0000008100(slab|head) [ 53.653555] raw: 01fffc0000008100 ffffea0002595a88 ffffea0002010508 ffff88812c26d800 [ 53.661440] raw: 0000000000000000 ffff8880964d6600 0000000100000001 0000000000000000 [ 53.669316] page dumped because: kasan: bad access detected [ 53.675013] [ 53.676625] Memory state around the buggy address: [ 53.681557] ffff8880964d6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.688929] ffff8880964d6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.696297] >ffff8880964d6a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.703651] ^ [ 53.710446] ffff8880964d6a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.718580] ffff8880964d6b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.725944] ================================================================== [ 53.733293] Disabling lock debugging due to kernel taint [ 53.738927] Kernel panic - not syncing: panic_on_warn set ... [ 53.738927] [ 53.746308] CPU: 0 PID: 7527 Comm: sshd Tainted: G B 4.19.75 #0 [ 53.753656] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.762994] Call Trace: [ 53.765929] dump_stack+0x172/0x1f0 [ 53.769553] ? wait_consider_task+0x1b51/0x3910 [ 53.774356] panic+0x263/0x507 [ 53.777548] ? __warn_printk+0xf3/0xf3 [ 53.781420] ? retint_kernel+0x2d/0x2d [ 53.785294] ? trace_hardirqs_on+0x5e/0x220 [ 53.789653] ? wait_consider_task+0x1b51/0x3910 [ 53.794306] kasan_end_report+0x47/0x4f [ 53.798262] kasan_report.cold+0xa9/0x2ba [ 53.802483] __asan_report_load4_noabort+0x14/0x20 [ 53.807394] wait_consider_task+0x1b51/0x3910 [ 53.811872] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 53.816961] ? add_wait_queue+0x112/0x170 [ 53.821092] ? release_task+0x1630/0x1630 [ 53.825224] ? lock_acquire+0x16f/0x3f0 [ 53.829226] ? do_wait+0x3aa/0x9d0 [ 53.832753] ? kasan_check_write+0x14/0x20 [ 53.836970] do_wait+0x439/0x9d0 [ 53.840328] ? wait_consider_task+0x3910/0x3910 [ 53.844977] ? mark_held_locks+0x100/0x100 [ 53.849195] kernel_wait4+0x171/0x290 [ 53.852986] ? __ia32_sys_waitid+0x140/0x140 [ 53.857390] ? task_stopped_code+0x180/0x180 [ 53.861799] __do_sys_wait4+0x147/0x160 [ 53.865755] ? kernel_wait4+0x290/0x290 [ 53.869727] ? kasan_check_read+0x11/0x20 [ 53.874042] ? _copy_to_user+0xc9/0x120 [ 53.877997] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 53.883519] ? __x64_sys_rt_sigprocmask+0x21d/0x2e0 [ 53.889132] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.893872] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.898609] ? do_syscall_64+0x26/0x620 [ 53.902567] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.907910] ? do_syscall_64+0x26/0x620 [ 53.911866] __x64_sys_wait4+0x97/0xf0 [ 53.915735] do_syscall_64+0xfd/0x620 [ 53.919526] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.924697] RIP: 0033:0x7fee75982a3e [ 53.928395] 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 [ 53.947289] RSP: 002b:00007ffc918c56d0 EFLAGS: 00000246 ORIG_RAX: 000000000000003d [ 53.954991] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fee75982a3e [ 53.962250] RDX: 0000000000000001 RSI: 00007ffc918c570c RDI: ffffffffffffffff [ 53.969587] RBP: 000055952877bc88 R08: 00007ffc918c57d0 R09: 0101010101010101 [ 53.976836] R10: 0000000000000000 R11: 0000000000000246 R12: 000055952a345c00 [ 53.984093] R13: 0000559528779fb4 R14: 0000000000000028 R15: 000055952877bca0 [ 53.992652] Kernel Offset: disabled [ 53.996540] Rebooting in 86400 seconds..