Warning: Permanently added '10.128.1.107' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 589.878799][ T7251] ================================================================== [ 589.886943][ T7251] BUG: KASAN: use-after-free in tctx_task_work+0x307/0x310 [ 589.894242][ T7251] Read of size 4 at addr ffff88801da62358 by task syz-executor959/7251 [ 589.902483][ T7251] [ 589.904857][ T7251] CPU: 0 PID: 7251 Comm: syz-executor959 Not tainted 5.14.0-rc6-next-20210818-syzkaller #0 [ 589.914841][ T7251] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 589.924992][ T7251] Call Trace: [ 589.928278][ T7251] dump_stack_lvl+0xcd/0x134 [ 589.932958][ T7251] print_address_description.constprop.0.cold+0x6c/0x309 [ 589.940022][ T7251] ? tctx_task_work+0x307/0x310 [ 589.944907][ T7251] ? tctx_task_work+0x307/0x310 [ 589.949776][ T7251] kasan_report.cold+0x83/0xdf [ 589.954558][ T7251] ? _raw_spin_trylock_bh+0x30/0x80 [ 589.959857][ T7251] ? tctx_task_work+0x307/0x310 [ 589.964727][ T7251] tctx_task_work+0x307/0x310 [ 589.969422][ T7251] ? _raw_spin_unlock_irq+0x1f/0x40 [ 589.974636][ T7251] task_work_run+0xdd/0x1a0 executing program [ 589.979222][ T7251] do_exit+0xbae/0x2a30 [ 589.983436][ T7251] ? lock_acquire+0x442/0x510 [ 589.988161][ T7251] ? lock_release+0x522/0x720 [ 589.992854][ T7251] ? mm_update_next_owner+0x7b0/0x7b0 [ 589.998236][ T7251] ? lock_downgrade+0x6e0/0x6e0 [ 590.003100][ T7251] ? do_raw_spin_lock+0x120/0x2b0 [ 590.008136][ T7251] ? rwlock_bug.part.0+0x90/0x90 [ 590.013084][ T7251] do_group_exit+0x129/0x310 [ 590.017688][ T7251] ? _raw_spin_unlock_irq+0x1f/0x40 [ 590.022903][ T7251] get_signal+0x482/0x2170 [ 590.027405][ T7251] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 590.033729][ T7251] ? fput+0x2e/0x50 [ 590.037626][ T7251] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 590.043883][ T7251] ? __do_sys_io_uring_enter+0x47f/0x1f10 [ 590.049624][ T7251] arch_do_signal_or_restart+0x2a9/0x1c40 [ 590.055422][ T7251] ? io_submit_sqes+0x8730/0x8730 [ 590.060467][ T7251] ? rcu_read_lock_sched_held+0xd/0x70 [ 590.066025][ T7251] ? lock_release+0x522/0x720 [ 590.070714][ T7251] ? get_sigframe_size+0x10/0x10 [ 590.075667][ T7251] ? lock_downgrade+0x6e0/0x6e0 [ 590.080538][ T7251] ? get_vtime_delta+0x26e/0x430 [ 590.085553][ T7251] ? kernel_fpu_begin_mask+0x260/0x260 [ 590.091111][ T7251] ? vtime_user_exit+0x132/0x220 [ 590.096063][ T7251] exit_to_user_mode_prepare+0x17d/0x290 [ 590.101774][ T7251] syscall_exit_to_user_mode+0x19/0x60 [ 590.107357][ T7251] do_syscall_64+0x46/0xb0 [ 590.111847][ T7251] ? asm_exc_page_fault+0x8/0x30 [ 590.116801][ T7251] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 590.122707][ T7251] RIP: 0033:0x446749 [ 590.126611][ T7251] Code: Unable to access opcode bytes at RIP 0x44671f. [ 590.133507][ T7251] RSP: 002b:00007f2e177871e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa [ 590.141933][ T7251] RAX: 000000000000039b RBX: 00000000004cb468 RCX: 0000000000446749 [ 590.149930][ T7251] RDX: 0000000000000000 RSI: 0000000000006b46 RDI: 0000000000000006 [ 590.157892][ T7251] RBP: 00000000004cb460 R08: 0000000000000000 R09: 0000000000000000 [ 590.165854][ T7251] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004cb46c [ 590.173834][ T7251] R13: 00007ffe292df50f R14: 00007f2e17787300 R15: 0000000000022000 [ 590.181815][ T7251] [ 590.184126][ T7251] Allocated by task 7251: [ 590.188437][ T7251] kasan_save_stack+0x1b/0x40 [ 590.193181][ T7251] __kasan_kmalloc+0x9f/0xd0 [ 590.197768][ T7251] io_uring_setup+0x27d/0x2d00 [ 590.202532][ T7251] do_syscall_64+0x39/0xb0 [ 590.206948][ T7251] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 590.212841][ T7251] [ 590.215152][ T7251] Freed by task 6731: [ 590.219113][ T7251] kasan_save_stack+0x1b/0x40 [ 590.223790][ T7251] kasan_set_track+0x1c/0x30 [ 590.228398][ T7251] kasan_set_free_info+0x20/0x30 [ 590.233376][ T7251] __kasan_slab_free+0xff/0x140 [ 590.238227][ T7251] slab_free_freelist_hook+0x82/0x190 [ 590.243614][ T7251] kfree+0xea/0x540 [ 590.247428][ T7251] io_ring_exit_work+0x13c7/0x1940 [ 590.252549][ T7251] process_one_work+0x9c9/0x16b0 [ 590.257553][ T7251] worker_thread+0x65b/0x1200 [ 590.262226][ T7251] kthread+0x3e5/0x4d0 [ 590.266294][ T7251] ret_from_fork+0x1f/0x30 [ 590.270725][ T7251] [ 590.273034][ T7251] Last potentially related work creation: [ 590.278731][ T7251] kasan_save_stack+0x1b/0x40 [ 590.283409][ T7251] kasan_record_aux_stack+0xe9/0x110 [ 590.288702][ T7251] insert_work+0x48/0x370 [ 590.293031][ T7251] __queue_work+0x5d1/0xf30 [ 590.297547][ T7251] queue_work_on+0xf6/0x110 [ 590.302048][ T7251] io_ring_ctx_wait_and_kill+0x314/0x3d0 [ 590.307677][ T7251] io_uring_release+0x3e/0x50 [ 590.312346][ T7251] __fput+0x288/0x9f0 [ 590.316322][ T7251] task_work_run+0xdd/0x1a0 [ 590.320821][ T7251] do_exit+0xbae/0x2a30 [ 590.324970][ T7251] do_group_exit+0x129/0x310 [ 590.329561][ T7251] get_signal+0x482/0x2170 [ 590.333973][ T7251] arch_do_signal_or_restart+0x2a9/0x1c40 [ 590.339699][ T7251] exit_to_user_mode_prepare+0x17d/0x290 [ 590.345322][ T7251] syscall_exit_to_user_mode+0x19/0x60 [ 590.350776][ T7251] do_syscall_64+0x46/0xb0 [ 590.355191][ T7251] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 590.361081][ T7251] [ 590.363391][ T7251] The buggy address belongs to the object at ffff88801da62000 [ 590.363391][ T7251] which belongs to the cache kmalloc-4k of size 4096 [ 590.377432][ T7251] The buggy address is located 856 bytes inside of [ 590.377432][ T7251] 4096-byte region [ffff88801da62000, ffff88801da63000) [ 590.390801][ T7251] The buggy address belongs to the page: [ 590.396426][ T7251] page:ffffea0000769800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1da60 [ 590.406573][ T7251] head:ffffea0000769800 order:3 compound_mapcount:0 compound_pincount:0 [ 590.414892][ T7251] flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 590.422874][ T7251] raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888010c42140 [ 590.431449][ T7251] raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 [ 590.440016][ T7251] page dumped because: kasan: bad access detected [ 590.446408][ T7251] page_owner tracks the page as allocated [ 590.452107][ T7251] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 254, ts 8722226076, free_ts 8721850730 [ 590.470962][ T7251] get_page_from_freelist+0xa76/0x2f90 [ 590.476476][ T7251] __alloc_pages+0x1ba/0x510 [ 590.481077][ T7251] alloc_pages+0x1a7/0x300 [ 590.485484][ T7251] new_slab+0x321/0x490 [ 590.489634][ T7251] ___slab_alloc+0x90b/0xfb0 [ 590.494223][ T7251] __slab_alloc.constprop.0+0x51/0xa0 [ 590.499591][ T7251] kmem_cache_alloc_trace+0x30a/0x3c0 [ 590.504958][ T7251] kobject_uevent_env+0x240/0x1650 [ 590.510157][ T7251] device_add+0xbc6/0x21b0 [ 590.514597][ T7251] scsi_sysfs_add_sdev+0x464/0x750 [ 590.519785][ T7251] do_scan_async+0x211/0x500 [ 590.524385][ T7251] async_run_entry_fn+0x9d/0x550 [ 590.529355][ T7251] process_one_work+0x9c9/0x16b0 [ 590.534292][ T7251] worker_thread+0x65b/0x1200 [ 590.538969][ T7251] kthread+0x3e5/0x4d0 [ 590.543055][ T7251] ret_from_fork+0x1f/0x30 [ 590.547479][ T7251] page last free stack trace: [ 590.552152][ T7251] free_pcp_prepare+0x377/0x860 [ 590.556998][ T7251] free_unref_page+0x19/0x690 [ 590.561670][ T7251] scsi_device_dev_release_usercontext+0x65a/0xd60 [ 590.568173][ T7251] execute_in_process_context+0x37/0x160 [ 590.573824][ T7251] device_release+0xa3/0x240 [ 590.578407][ T7251] kobject_put+0x1d0/0x540 [ 590.582819][ T7251] put_device+0x1b/0x30 [ 590.586980][ T7251] __scsi_remove_device+0x1e1/0x3e0 [ 590.592173][ T7251] scsi_probe_and_add_lun+0x266d/0x35a0 [ 590.597714][ T7251] __scsi_scan_target+0x229/0xdc0 [ 590.602733][ T7251] scsi_scan_channel+0x148/0x1e0 [ 590.607664][ T7251] scsi_scan_host_selected+0x2df/0x3b0 [ 590.613120][ T7251] do_scsi_scan_host+0x1eb/0x260 [ 590.618053][ T7251] do_scan_async+0x3e/0x500 [ 590.622554][ T7251] async_run_entry_fn+0x9d/0x550 [ 590.627604][ T7251] process_one_work+0x9c9/0x16b0 [ 590.632558][ T7251] [ 590.634875][ T7251] Memory state around the buggy address: [ 590.640499][ T7251] ffff88801da62200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 590.648565][ T7251] ffff88801da62280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 590.656620][ T7251] >ffff88801da62300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 590.664667][ T7251] ^ [ 590.671585][ T7251] ffff88801da62380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program [ 590.679653][ T7251] ffff88801da62400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 590.687699][ T7251] ================================================================== executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 591.887062][ T7251] Kernel panic - not syncing: panic_on_warn set ... [ 591.893683][ T7251] CPU: 1 PID: 7251 Comm: syz-executor959 Tainted: G B 5.14.0-rc6-next-20210818-syzkaller #0 [ 591.905061][ T7251] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 591.915127][ T7251] Call Trace: [ 591.918408][ T7251] dump_stack_lvl+0xcd/0x134 [ 591.923016][ T7251] panic+0x2af/0x6d5 [ 591.926955][ T7251] ? __warn_printk+0xf0/0xf0 [ 591.931552][ T7251] ? tctx_task_work+0x307/0x310 [ 591.936410][ T7251] ? preempt_schedule_thunk+0x16/0x18 [ 591.941794][ T7251] ? trace_hardirqs_on+0x38/0x1c0 [ 591.946885][ T7251] ? trace_hardirqs_on+0x51/0x1c0 [ 591.951919][ T7251] ? tctx_task_work+0x307/0x310 [ 591.956779][ T7251] ? tctx_task_work+0x307/0x310 [ 591.961644][ T7251] end_report.cold+0x63/0x6f [ 591.966239][ T7251] kasan_report.cold+0x71/0xdf [ 591.971012][ T7251] ? _raw_spin_trylock_bh+0x30/0x80 [ 591.976216][ T7251] ? tctx_task_work+0x307/0x310 [ 591.981077][ T7251] tctx_task_work+0x307/0x310 [ 591.985765][ T7251] ? _raw_spin_unlock_irq+0x1f/0x40 [ 591.990973][ T7251] task_work_run+0xdd/0x1a0 [ 591.995488][ T7251] do_exit+0xbae/0x2a30 [ 591.999654][ T7251] ? lock_acquire+0x442/0x510 [ 592.004341][ T7251] ? lock_release+0x522/0x720 [ 592.009029][ T7251] ? mm_update_next_owner+0x7b0/0x7b0 [ 592.014423][ T7251] ? lock_downgrade+0x6e0/0x6e0 [ 592.019303][ T7251] ? do_raw_spin_lock+0x120/0x2b0 [ 592.024334][ T7251] ? rwlock_bug.part.0+0x90/0x90 [ 592.029279][ T7251] do_group_exit+0x129/0x310 [ 592.033877][ T7251] ? _raw_spin_unlock_irq+0x1f/0x40 [ 592.039170][ T7251] get_signal+0x482/0x2170 [ 592.043598][ T7251] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 592.049846][ T7251] ? fput+0x2e/0x50 [ 592.053679][ T7251] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 592.059927][ T7251] ? __do_sys_io_uring_enter+0x47f/0x1f10 [ 592.065659][ T7251] arch_do_signal_or_restart+0x2a9/0x1c40 [ 592.071389][ T7251] ? io_submit_sqes+0x8730/0x8730 [ 592.076422][ T7251] ? rcu_read_lock_sched_held+0xd/0x70 [ 592.081895][ T7251] ? lock_release+0x522/0x720 [ 592.086576][ T7251] ? get_sigframe_size+0x10/0x10 [ 592.091519][ T7251] ? lock_downgrade+0x6e0/0x6e0 [ 592.096372][ T7251] ? get_vtime_delta+0x26e/0x430 [ 592.101310][ T7251] ? kernel_fpu_begin_mask+0x260/0x260 [ 592.106778][ T7251] ? vtime_user_exit+0x132/0x220 [ 592.111717][ T7251] exit_to_user_mode_prepare+0x17d/0x290 [ 592.117351][ T7251] syscall_exit_to_user_mode+0x19/0x60 [ 592.122819][ T7251] do_syscall_64+0x46/0xb0 [ 592.127239][ T7251] ? asm_exc_page_fault+0x8/0x30 [ 592.132181][ T7251] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 592.138076][ T7251] RIP: 0033:0x446749 [ 592.141965][ T7251] Code: Unable to access opcode bytes at RIP 0x44671f. [ 592.148796][ T7251] RSP: 002b:00007f2e177871e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa [ 592.157204][ T7251] RAX: 000000000000039b RBX: 00000000004cb468 RCX: 0000000000446749 [ 592.165170][ T7251] RDX: 0000000000000000 RSI: 0000000000006b46 RDI: 0000000000000006 [ 592.173136][ T7251] RBP: 00000000004cb460 R08: 0000000000000000 R09: 0000000000000000 [ 592.181104][ T7251] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004cb46c [ 592.189070][ T7251] R13: 00007ffe292df50f R14: 00007f2e17787300 R15: 0000000000022000 [ 592.198407][ T7251] Kernel Offset: disabled [ 592.202720][ T7251] Rebooting in 86400 seconds..