Warning: Permanently added '10.128.0.194' (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 syzkaller login: [ 57.216026][ T6405] ================================================================== [ 57.224124][ T6405] BUG: KASAN: use-after-free in io_wq_worker_running+0x114/0x130 [ 57.231855][ T6405] Read of size 4 at addr ffff888070df5c04 by task iou-wrk-6379/6405 [ 57.239815][ T6405] [ 57.242124][ T6405] CPU: 0 PID: 6405 Comm: iou-wrk-6379 Not tainted 6.2.0-rc3-syzkaller-00030-ge8f60cd7db24 #0 [ 57.252259][ T6405] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 57.262297][ T6405] Call Trace: [ 57.265563][ T6405] [ 57.268481][ T6405] dump_stack_lvl+0xd1/0x138 [ 57.273067][ T6405] print_report+0x15e/0x45d [ 57.277563][ T6405] ? __phys_addr+0xc8/0x140 [ 57.282058][ T6405] ? io_wq_worker_running+0x114/0x130 [ 57.287422][ T6405] kasan_report+0xbf/0x1f0 [ 57.291916][ T6405] ? io_wq_worker_running+0x114/0x130 [ 57.297282][ T6405] io_wq_worker_running+0x114/0x130 [ 57.302471][ T6405] schedule_preempt_disabled+0x13/0x20 [ 57.307920][ T6405] __mutex_lock+0xa48/0x1360 [ 57.312504][ T6405] ? io_wq_submit_work+0x5f7/0xdc0 [ 57.317631][ T6405] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 57.323220][ T6405] ? find_held_lock+0x2d/0x110 [ 57.328024][ T6405] ? io_worker_handle_work+0x599/0x1c60 [ 57.333588][ T6405] ? lock_downgrade+0x6e0/0x6e0 [ 57.338446][ T6405] ? do_raw_spin_lock+0x124/0x2b0 [ 57.343480][ T6405] io_wq_submit_work+0x5f7/0xdc0 [ 57.348437][ T6405] io_worker_handle_work+0xc41/0x1c60 [ 57.353833][ T6405] io_wqe_worker+0xa5b/0xe40 [ 57.358440][ T6405] ? io_worker_handle_work+0x1c60/0x1c60 [ 57.364091][ T6405] ? ret_from_fork+0x8/0x30 [ 57.368611][ T6405] ? lock_downgrade+0x6e0/0x6e0 [ 57.373467][ T6405] ? do_raw_spin_lock+0x124/0x2b0 [ 57.378498][ T6405] ? rwlock_bug.part.0+0x90/0x90 [ 57.383445][ T6405] ? _raw_spin_unlock_irq+0x23/0x50 [ 57.388657][ T6405] ? io_worker_handle_work+0x1c60/0x1c60 [ 57.394304][ T6405] ret_from_fork+0x1f/0x30 [ 57.398743][ T6405] [ 57.401758][ T6405] [ 57.404077][ T6405] Allocated by task 6379: [ 57.408399][ T6405] kasan_save_stack+0x22/0x40 [ 57.413080][ T6405] kasan_set_track+0x25/0x30 [ 57.417670][ T6405] __kasan_kmalloc+0xa5/0xb0 [ 57.422266][ T6405] create_io_worker+0x10c/0x630 [ 57.427130][ T6405] io_wqe_enqueue+0x6c3/0xbc0 [ 57.431816][ T6405] io_queue_iowq+0x282/0x5c0 [ 57.436417][ T6405] io_queue_sqe_fallback+0xf3/0x190 [ 57.441629][ T6405] io_submit_sqes+0x11db/0x1e60 [ 57.446488][ T6405] __do_sys_io_uring_enter+0xc1d/0x2540 [ 57.452046][ T6405] do_syscall_64+0x39/0xb0 [ 57.456474][ T6405] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.462375][ T6405] [ 57.464695][ T6405] Freed by task 6405: [ 57.468668][ T6405] kasan_save_stack+0x22/0x40 [ 57.473356][ T6405] kasan_set_track+0x25/0x30 [ 57.477951][ T6405] kasan_save_free_info+0x2e/0x40 [ 57.482985][ T6405] ____kasan_slab_free+0x160/0x1c0 [ 57.488098][ T6405] slab_free_freelist_hook+0x8b/0x1c0 [ 57.493482][ T6405] __kmem_cache_free+0xaf/0x3b0 [ 57.498339][ T6405] io_queue_worker_create+0x567/0x660 [ 57.503724][ T6405] io_wqe_dec_running+0x1e4/0x240 [ 57.508773][ T6405] io_wq_worker_sleeping+0xa6/0xc0 [ 57.513893][ T6405] schedule+0x16e/0x1b0 [ 57.518062][ T6405] schedule_preempt_disabled+0x13/0x20 [ 57.523536][ T6405] __mutex_lock+0xa48/0x1360 [ 57.528128][ T6405] io_wq_submit_work+0x5f7/0xdc0 [ 57.533077][ T6405] io_worker_handle_work+0xc41/0x1c60 [ 57.538467][ T6405] io_wqe_worker+0xa5b/0xe40 [ 57.543066][ T6405] ret_from_fork+0x1f/0x30 [ 57.547491][ T6405] [ 57.549811][ T6405] Last potentially related work creation: [ 57.555517][ T6405] kasan_save_stack+0x22/0x40 [ 57.560198][ T6405] __kasan_record_aux_stack+0xbc/0xd0 [ 57.565578][ T6405] task_work_add+0x7f/0x2c0 [ 57.570096][ T6405] io_queue_worker_create+0x41d/0x660 [ 57.575487][ T6405] io_wqe_dec_running+0x1e4/0x240 [ 57.580525][ T6405] io_wq_worker_sleeping+0xa6/0xc0 [ 57.585649][ T6405] schedule+0x16e/0x1b0 [ 57.589819][ T6405] schedule_preempt_disabled+0x13/0x20 [ 57.595296][ T6405] __mutex_lock+0xa48/0x1360 [ 57.599891][ T6405] io_wq_submit_work+0x5f7/0xdc0 [ 57.604842][ T6405] io_worker_handle_work+0xc41/0x1c60 [ 57.610225][ T6405] io_wqe_worker+0xa5b/0xe40 [ 57.614829][ T6405] ret_from_fork+0x1f/0x30 [ 57.619254][ T6405] [ 57.621573][ T6405] The buggy address belongs to the object at ffff888070df5c00 [ 57.621573][ T6405] which belongs to the cache kmalloc-512 of size 512 [ 57.635624][ T6405] The buggy address is located 4 bytes inside of [ 57.635624][ T6405] 512-byte region [ffff888070df5c00, ffff888070df5e00) [ 57.648734][ T6405] [ 57.651054][ T6405] The buggy address belongs to the physical page: [ 57.657458][ T6405] page:ffffea0001c37d00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x70df4 [ 57.667610][ T6405] head:ffffea0001c37d00 order:2 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 [ 57.677684][ T6405] flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 57.685695][ T6405] raw: 00fff00000010200 ffff888012441c80 dead000000000122 0000000000000000 [ 57.694290][ T6405] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 57.702870][ T6405] page dumped because: kasan: bad access detected [ 57.709274][ T6405] page_owner tracks the page as allocated [ 57.715072][ T6405] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6370, tgid 6368 (syz-executor402), ts 56856178964, free_ts 14096717159 [ 57.736788][ T6405] get_page_from_freelist+0x119c/0x2ce0 [ 57.742348][ T6405] __alloc_pages+0x1cb/0x5b0 [ 57.746943][ T6405] allocate_slab+0xa7/0x350 [ 57.751459][ T6405] ___slab_alloc+0xa91/0x1400 [ 57.756137][ T6405] __slab_alloc.constprop.0+0x56/0xa0 [ 57.761510][ T6405] __kmem_cache_alloc_node+0x1a4/0x430 [ 57.766974][ T6405] kmalloc_node_trace+0x21/0x60 [ 57.771833][ T6405] create_io_worker+0x10c/0x630 [ 57.776700][ T6405] io_wqe_enqueue+0x6c3/0xbc0 [ 57.781399][ T6405] io_queue_iowq+0x282/0x5c0 [ 57.785998][ T6405] io_queue_sqe_fallback+0xf3/0x190 [ 57.791209][ T6405] io_submit_sqes+0x11db/0x1e60 [ 57.796069][ T6405] __do_sys_io_uring_enter+0xc1d/0x2540 [ 57.801624][ T6405] do_syscall_64+0x39/0xb0 [ 57.806139][ T6405] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.812045][ T6405] page last free stack trace: [ 57.816711][ T6405] free_pcp_prepare+0x65c/0xc00 [ 57.821574][ T6405] free_unref_page+0x1d/0x490 [ 57.826256][ T6405] free_contig_range+0xb5/0x180 [ 57.831111][ T6405] destroy_args+0xa8/0x64c [ 57.835532][ T6405] debug_vm_pgtable+0x28de/0x296f [ 57.840559][ T6405] do_one_initcall+0x141/0x790 [ 57.845337][ T6405] kernel_init_freeable+0x6f9/0x782 [ 57.850550][ T6405] kernel_init+0x1e/0x1d0 [ 57.854885][ T6405] ret_from_fork+0x1f/0x30 [ 57.859313][ T6405] [ 57.861633][ T6405] Memory state around the buggy address: [ 57.867314][ T6405] ffff888070df5b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 57.875390][ T6405] ffff888070df5b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 57.883472][ T6405] >ffff888070df5c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.891630][ T6405] ^ [ 57.895787][ T6405] ffff888070df5c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.903855][ T6405] ffff888070df5d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.911920][ T6405] ================================================================== [ 57.931153][ T6405] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 57.938367][ T6405] CPU: 0 PID: 6405 Comm: iou-wrk-6379 Not tainted 6.2.0-rc3-syzkaller-00030-ge8f60cd7db24 #0 [ 57.948502][ T6405] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 57.958545][ T6405] Call Trace: [ 57.961811][ T6405] [ 57.964730][ T6405] dump_stack_lvl+0xd1/0x138 [ 57.969315][ T6405] panic+0x2cc/0x626 [ 57.973203][ T6405] ? panic_print_sys_info.part.0+0x110/0x110 [ 57.979204][ T6405] ? preempt_schedule_thunk+0x1a/0x20 [ 57.984575][ T6405] ? preempt_schedule_common+0x59/0xc0 [ 57.990040][ T6405] check_panic_on_warn.cold+0x19/0x35 [ 57.995432][ T6405] end_report.part.0+0x36/0x73 [ 58.000191][ T6405] ? io_wq_worker_running+0x114/0x130 [ 58.005561][ T6405] kasan_report.cold+0xa/0xf [ 58.010248][ T6405] ? io_wq_worker_running+0x114/0x130 [ 58.015614][ T6405] io_wq_worker_running+0x114/0x130 [ 58.020823][ T6405] schedule_preempt_disabled+0x13/0x20 [ 58.026289][ T6405] __mutex_lock+0xa48/0x1360 [ 58.030905][ T6405] ? io_wq_submit_work+0x5f7/0xdc0 [ 58.036055][ T6405] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 58.041639][ T6405] ? find_held_lock+0x2d/0x110 [ 58.046434][ T6405] ? io_worker_handle_work+0x599/0x1c60 [ 58.051976][ T6405] ? lock_downgrade+0x6e0/0x6e0 [ 58.056813][ T6405] ? do_raw_spin_lock+0x124/0x2b0 [ 58.061824][ T6405] io_wq_submit_work+0x5f7/0xdc0 [ 58.066756][ T6405] io_worker_handle_work+0xc41/0x1c60 [ 58.072125][ T6405] io_wqe_worker+0xa5b/0xe40 [ 58.076723][ T6405] ? io_worker_handle_work+0x1c60/0x1c60 [ 58.082389][ T6405] ? ret_from_fork+0x8/0x30 [ 58.086923][ T6405] ? lock_downgrade+0x6e0/0x6e0 [ 58.091795][ T6405] ? do_raw_spin_lock+0x124/0x2b0 [ 58.096842][ T6405] ? rwlock_bug.part.0+0x90/0x90 [ 58.101806][ T6405] ? _raw_spin_unlock_irq+0x23/0x50 [ 58.107037][ T6405] ? io_worker_handle_work+0x1c60/0x1c60 [ 58.112703][ T6405] ret_from_fork+0x1f/0x30 [ 58.117211][ T6405] [ 58.120283][ T6405] Kernel Offset: disabled [ 58.124600][ T6405] Rebooting in 86400 seconds..