syzbot


KCSAN: data-race in io_flush_timeouts / io_issue_sqe

Status: moderation: reported on 2024/09/01 08:35
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+0126b72b2f61884fc499@syzkaller.appspotmail.com
First crash: 15d, last: 15d

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

write to 0xffff888114e2c9d0 of 4 bytes by task 3687 on cpu 0:
 io_get_cqe_overflow io_uring/io_uring.h:162 [inline]
 io_get_cqe io_uring/io_uring.h:171 [inline]
 io_fill_cqe_req io_uring/io_uring.h:184 [inline]
 io_req_complete_post io_uring/io_uring.c:887 [inline]
 io_issue_sqe+0x2fa/0xcc0 io_uring/io_uring.c:1722
 io_wq_submit_work+0x480/0x600 io_uring/io_uring.c:1819
 io_worker_handle_work+0x486/0x9d0 io_uring/io-wq.c:600
 io_wq_worker+0x286/0x820 io_uring/io-wq.c:654
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff888114e2c9d0 of 4 bytes by task 3686 on cpu 1:
 io_flush_timeouts+0x35/0x190 io_uring/timeout.c:114
 __io_commit_cqring_flush+0xfd/0x140 io_uring/io_uring.c:555
 io_commit_cqring_flush io_uring/io_uring.h:361 [inline]
 io_cq_unlock_post io_uring/io_uring.c:596 [inline]
 io_req_complete_post io_uring/io_uring.c:890 [inline]
 io_issue_sqe+0x912/0xcc0 io_uring/io_uring.c:1722
 io_wq_submit_work+0x480/0x600 io_uring/io_uring.c:1819
 io_worker_handle_work+0x486/0x9d0 io_uring/io-wq.c:600
 io_wq_worker+0x286/0x820 io_uring/io-wq.c:654
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x0000027f -> 0x00000280

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3686 Comm: iou-wrk-3682 Not tainted 6.11.0-rc5-syzkaller-00310-ge8784b0aef62 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/01 08:35 upstream e8784b0aef62 1eda0d14 .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.