syzbot


KCSAN: data-race in io_flush_timeouts / io_issue_sqe (2)

Status: moderation: reported on 2025/06/24 08:28
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+6c48db7d94402407301e@syzkaller.appspotmail.com
First crash: 1d04h, last: 1d04h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in io_flush_timeouts / io_issue_sqe io-uring 1 297d 297d 0/29 auto-obsoleted due to no activity on 2024/10/06 08:35

Sample crash report:
==================================================================
BUG: KCSAN: data-race in io_flush_timeouts / io_issue_sqe

read-write to 0xffff8881199cf210 of 4 bytes by task 3538 on cpu 0:
 io_get_cqe_overflow io_uring/io_uring.h:180 [inline]
 io_get_cqe io_uring/io_uring.h:189 [inline]
 io_fill_cqe_req io_uring/io_uring.h:211 [inline]
 io_req_complete_post io_uring/io_uring.c:932 [inline]
 io_issue_sqe+0x19c/0x970 io_uring/io_uring.c:1767
 io_wq_submit_work+0x3f7/0x5f0 io_uring/io_uring.c:1873
 io_worker_handle_work+0x44e/0x9b0 io_uring/io-wq.c:642
 io_wq_worker+0x22e/0x870 io_uring/io-wq.c:696
 ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read to 0xffff8881199cf210 of 4 bytes by task 3537 on cpu 1:
 io_flush_timeouts+0x56/0x1d0 io_uring/timeout.c:132
 __io_commit_cqring_flush+0xeb/0x100 io_uring/io_uring.c:565
 io_commit_cqring_flush io_uring/io_uring.h:416 [inline]
 io_cq_unlock_post io_uring/io_uring.c:601 [inline]
 io_req_complete_post io_uring/io_uring.c:933 [inline]
 io_issue_sqe+0x7cb/0x970 io_uring/io_uring.c:1767
 io_wq_submit_work+0x3f7/0x5f0 io_uring/io_uring.c:1873
 io_worker_handle_work+0x44e/0x9b0 io_uring/io-wq.c:642
 io_wq_worker+0x22e/0x870 io_uring/io-wq.c:696
 ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x0000038d -> 0x0000038e

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3537 Comm: iou-wrk-3518 Not tainted 6.16.0-rc3-syzkaller-00042-g78f4e737a53e #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/24 08:27 upstream 78f4e737a53e e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_flush_timeouts / io_issue_sqe
* Struck through repros no longer work on HEAD.