R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffd55a6101f R14: 00007f1513da4300 R15: 0000000000022000 ================================================================== BUG: KASAN: slab-use-after-free in __lock_acquire+0x334f/0x4360 Read of size 8 at addr ffff88800ee10980 by task syz-executor.7/10136 CPU: 0 UID: 0 PID: 10136 Comm: syz-executor.7 Not tainted 6.13.0-rc3-next-20241220 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 print_report+0xcb/0x620 kasan_report+0xbd/0xf0 __lock_acquire+0x334f/0x4360 lock_acquire.part.0+0xeb/0x320 _raw_spin_lock_irqsave+0x3a/0x60 try_to_wake_up+0x9f/0x1880 io_sq_thread_park+0xac/0xe0 io_sq_thread_finish+0x64/0x290 io_sq_offload_create+0x162/0x1110 io_uring_setup+0x17da/0x32f0 __x64_sys_io_uring_setup+0x99/0x160 do_syscall_64+0xbf/0x1d0 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8d61265b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8d5e7db108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 00007f8d61378f60 RCX: 00007f8d61265b19 RDX: 0000000020ffe000 RSI: 00000000200004c0 RDI: 00000000000041cd RBP: 00000000200004c0 R08: 0000000020000580 R09: 0000000020000580 R10: 0000000020000540 R11: 0000000000000202 R12: 0000000020000580 R13: 0000000020ffe000 R14: 0000000020000540 R15: 0000000020ffe000 Allocated by task 10136: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_node_noprof+0x14c/0x3e0 copy_process+0x440/0x70e0 create_io_thread+0xac/0xf0 io_sq_offload_create+0xaf7/0x1110 io_uring_setup+0x17da/0x32f0 __x64_sys_io_uring_setup+0x99/0x160 do_syscall_64+0xbf/0x1d0 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 23: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x38/0x50 kmem_cache_free+0x138/0x470 delayed_put_task_struct+0x108/0x2b0 rcu_core+0x7c9/0x17a0 handle_softirqs+0x1b1/0x770 run_ksoftirqd+0x2e/0x60 smpboot_thread_fn+0x3eb/0x930 kthread+0x3ab/0x720 ret_from_fork+0x48/0x80 ret_from_fork_asm+0x1a/0x30 Last potentially related work creation: kasan_save_stack+0x24/0x50 kasan_record_aux_stack+0x89/0xa0 __call_rcu_common.constprop.0+0x6a/0xb70 put_task_struct_rcu_user+0x75/0xc0 __schedule+0xc53/0x3030 schedule+0xdb/0x340 do_nanosleep+0x155/0x500 hrtimer_nanosleep+0x13d/0x340 common_nsleep+0xaa/0xd0 __x64_sys_clock_nanosleep+0x332/0x480 do_syscall_64+0xbf/0x1d0 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88800ee10000 which belongs to the cache task_struct of size 6848 The buggy address is located 2432 bytes inside of freed 6848-byte region [ffff88800ee10000, ffff88800ee11ac0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xee10 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88800e41d281 anon flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff888008fee640 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080040004 00000000f5000000 ffff88800e41d281 head: 0100000000000040 ffff888008fee640 0000000000000000 dead000000000001 head: 0000000000000000 0000000080040004 00000000f5000000 ffff88800e41d281 head: 0100000000000003 ffffea00003b8401 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88800ee10880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88800ee10900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88800ee10980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88800ee10a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88800ee10a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 UID: 0 PID: 10142 Comm: syz-executor.5 Tainted: G B 6.13.0-rc3-next-20241220 #1 Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_failslab+0xc2/0x120 kmem_cache_alloc_node_noprof+0x72/0x3e0 copy_process+0x440/0x70e0 create_io_thread+0xac/0xf0 io_sq_offload_create+0xaf7/0x1110 io_uring_setup+0x17da/0x32f0 __x64_sys_io_uring_setup+0x99/0x160 do_syscall_64+0xbf/0x1d0 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f56c31c7b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f56c071c108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 00007f56c32db020 RCX: 00007f56c31c7b19 RDX: 0000000020ffe000 RSI: 00000000200004c0 RDI: 00000000000041cd RBP: 00000000200004c0 R08: 0000000020000580 R09: 0000000020000580 R10: 0000000020000540 R11: 0000000000000202 R12: 0000000020000580 R13: 0000000020ffe000 R14: 0000000020000540 R15: 0000000020ffe000