syzbot


WARNING: ODEBUG bug in io_sq_offload_create

Status: upstream: reported C repro on 2025/06/17 08:12
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+763e12bbf004fb1062e4@syzkaller.appspotmail.com
Fix commit: f2320f1dd6f6 io_uring/sqpoll: don't put task_struct on tctx setup failure
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 24d, last: 21d
Duplicate bugs (1)
duplicates (1):
Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in __put_task_struct (5) mm -1 syz 4 18d 20d 0/29 closed as dup on 2025/06/18 22:49
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [io-uring?] WARNING: ODEBUG bug in io_sq_offload_create 1 (3) 2025/06/17 13:06
[PATCH 2/2] io_uring/sqpoll: don't put task_struct on tctx setup failure 1 (1) 2025/06/17 12:48
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/06/17 12:48 17m axboe@kernel.dk git://git.kernel.dk/linux.git syztest OK log

Sample crash report:
R13: 0000000000000002 R14: 00007fad89109ab1 R15: 00007fad8910601d
 </TASK>
------------[ cut here ]------------
ODEBUG: free active (active state 1) object: ffff888024813bd0 object type: rcu_head hint: 0x0
WARNING: CPU: 0 PID: 5941 at lib/debugobjects.c:612 debug_print_object+0x1a2/0x2b0 lib/debugobjects.c:612
Modules linked in:
CPU: 0 UID: 0 PID: 5941 Comm: syz-executor101 Not tainted 6.16.0-rc1-syzkaller-00236-g8c6bc74c7f89 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:debug_print_object+0x1a2/0x2b0 lib/debugobjects.c:612
Code: fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 54 41 56 48 8b 14 dd 00 8a 15 8c 4c 89 e6 48 c7 c7 80 7e 15 8c e8 bf 33 99 fc 90 <0f> 0b 90 90 58 83 05 56 99 c6 0b 01 48 83 c4 18 5b 5d 41 5c 41 5d
RSP: 0018:ffffc90003f8fa78 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffffffff817ae248
RDX: ffff88803cd0a440 RSI: ffffffff817ae255 RDI: 0000000000000001
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffffffff8c158520
R13: ffffffff8baeb4a0 R14: 0000000000000000 R15: ffffc90003f8fb78
FS:  00007fad890686c0(0000) GS:ffff8880d6753000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fad8911b362 CR3: 0000000031b29000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __debug_check_no_obj_freed lib/debugobjects.c:1099 [inline]
 debug_check_no_obj_freed+0x4b7/0x600 lib/debugobjects.c:1129
 slab_free_hook mm/slub.c:2312 [inline]
 slab_free mm/slub.c:4643 [inline]
 kmem_cache_free+0x2ac/0x4d0 mm/slub.c:4745
 put_task_struct include/linux/sched/task.h:145 [inline]
 put_task_struct include/linux/sched/task.h:132 [inline]
 io_sq_offload_create+0xe4b/0x1330 io_uring/sqpoll.c:517
 io_uring_create io_uring/io_uring.c:3747 [inline]
 io_uring_setup+0x1514/0x2120 io_uring/io_uring.c:3830
 __do_sys_io_uring_setup io_uring/io_uring.c:3864 [inline]
 __se_sys_io_uring_setup io_uring/io_uring.c:3855 [inline]
 __x64_sys_io_uring_setup+0xc2/0x170 io_uring/io_uring.c:3855
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fad890b6f99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1b 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fad89068208 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007fad891393c8 RCX: 00007fad890b6f99
RDX: 0000000000000000 RSI: 0000200000000200 RDI: 0000000000004d25
RBP: 00007fad891393c0 R08: 00007fad89067fa6 R09: 0000000000003232
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fad89068210
R13: 0000000000000002 R14: 00007fad89109ab1 R15: 00007fad8910601d
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/14 19:40 upstream 8c6bc74c7f89 5f4b362d .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: ODEBUG bug in io_sq_offload_create
2025/06/14 19:30 upstream 8c6bc74c7f89 5f4b362d .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: ODEBUG bug in io_sq_offload_create
2025/06/18 08:20 upstream 4663747812d1 74c9d252 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: ODEBUG bug in io_sq_offload_create
2025/06/18 04:41 upstream 4663747812d1 74c9d252 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: ODEBUG bug in io_sq_offload_create
2025/06/18 02:28 upstream 4663747812d1 74c9d252 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: ODEBUG bug in io_sq_offload_create
2025/06/18 00:05 upstream 4663747812d1 74c9d252 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: ODEBUG bug in io_sq_offload_create
2025/06/15 22:26 upstream 08215f5486ec 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: ODEBUG bug in io_sq_offload_create
2025/06/14 19:17 upstream 8c6bc74c7f89 5f4b362d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: ODEBUG bug in io_sq_offload_create
* Struck through repros no longer work on HEAD.