syzbot


WARNING in io_get_cqe_overflow (2)

Status: upstream: reported C repro on 2024/11/04 10:36
Subsystems: io-uring usb
[Documentation on labels]
Reported-by: syzbot+e333341d3d985e5173b2@syzkaller.appspotmail.com
First crash: 17d, last: 16d
Cause bisection: introduced by (bisect log) :
commit 3f1a546444738b21a8c312a4b49dc168b65c8706
Author: Jens Axboe <axboe@kernel.dk>
Date: Sat Oct 26 01:27:39 2024 +0000

  io_uring/rsrc: get rid of per-ring io_rsrc_node list

Crash: WARNING in io_get_cqe_overflow (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [io-uring?] [usb?] WARNING in io_get_cqe_overflow (2) 9 (11) 2024/11/05 01:20
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in io_get_cqe_overflow io-uring 1 669d 668d 22/28 fixed on 2023/06/08 14:41
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/11/18 17:49 25m retest repro linux-next OK log
2024/11/18 17:49 25m retest repro linux-next OK log
2024/11/18 17:49 25m retest repro linux-next OK log
2024/11/18 17:49 24m retest repro linux-next OK log
2024/11/18 17:49 24m retest repro linux-next OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3501 at io_uring/io_uring.h:143 io_lockdep_assert_cq_locked io_uring/io_uring.h:143 [inline]
WARNING: CPU: 0 PID: 3501 at io_uring/io_uring.h:143 io_get_cqe_overflow+0x43f/0x590 io_uring/io_uring.h:167
Modules linked in:
CPU: 0 UID: 0 PID: 3501 Comm: kworker/u8:8 Not tainted 6.12.0-rc5-next-20241104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: iou_exit io_ring_exit_work
RIP: 0010:io_lockdep_assert_cq_locked io_uring/io_uring.h:143 [inline]
RIP: 0010:io_get_cqe_overflow+0x43f/0x590 io_uring/io_uring.h:167
Code: 0f 0b 90 e9 62 fc ff ff e8 3e 3c ec fc 90 0f 0b 90 e9 90 fe ff ff e8 30 3c ec fc 90 0f 0b 90 e9 82 fe ff ff e8 22 3c ec fc 90 <0f> 0b 90 e9 74 fe ff ff e8 14 3c ec fc 90 0f 0b 90 e9 66 fe ff ff
RSP: 0018:ffffc9000cbcf7f0 EFLAGS: 00010293
RAX: ffffffff84a98afe RBX: ffff88803420bc00 RCX: ffff8880320b3c00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff84a98901 R09: fffff52001979ef8
R10: dffffc0000000000 R11: fffff52001979ef8 R12: 0000000000000000
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffffc9000cbcf880
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001180 CR3: 0000000063da0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 io_get_cqe io_uring/io_uring.h:183 [inline]
 io_fill_cqe_aux io_uring/io_uring.c:810 [inline]
 __io_post_aux_cqe io_uring/io_uring.c:831 [inline]
 io_post_aux_cqe+0xe5/0x420 io_uring/io_uring.c:843
 io_free_rsrc_node+0xdc/0x1f0 io_uring/rsrc.c:452
 io_put_rsrc_node io_uring/rsrc.h:82 [inline]
 io_rsrc_data_free+0xf2/0x200 io_uring/rsrc.c:139
 io_free_file_tables+0x23/0x70 io_uring/filetable.c:52
 io_sqe_files_unregister+0x53/0x140 io_uring/rsrc.c:476
 io_ring_ctx_free+0x49/0xdb0 io_uring/io_uring.c:3000
 io_ring_exit_work+0x80f/0x8a0 io_uring/io_uring.c:3237
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/04 08:43 linux-next 1ffec08567f4 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/04 05:49 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/04 05:49 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/04 00:00 linux-next c88416ba074a f00eed24 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/03 22:37 linux-next c88416ba074a f00eed24 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/03 21:17 linux-next c88416ba074a f00eed24 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/03 20:06 linux-next c88416ba074a f00eed24 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/03 18:54 linux-next c88416ba074a f00eed24 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
2024/11/03 17:35 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in io_get_cqe_overflow
* Struck through repros no longer work on HEAD.