syzbot


KCSAN: data-race in __io_req_complete_post / io_wake_function

Status: auto-closed as invalid on 2022/09/18 16:28
Subsystems: io-uring
[Documentation on labels]
First crash: 618d, last: 618d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __io_req_complete_post / io_wake_function (2) io-uring 4 553d 583d 0/26 auto-obsoleted due to no activity on 2022/11/22 02:14

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __io_req_complete_post / io_wake_function

read-write to 0xffff888140be8a10 of 4 bytes by task 22090 on cpu 1:
 io_get_cqe io_uring/io_uring.h:99 [inline]
 __io_fill_cqe_req io_uring/io_uring.h:119 [inline]
 __io_req_complete_post+0x9e/0xb50 io_uring/io_uring.c:806
 io_req_complete_post io_uring/io_uring.c:815 [inline]
 io_issue_sqe+0x43c/0x900 io_uring/io_uring.c:1588
 io_wq_submit_work+0x3de/0x580 io_uring/io_uring.c:1653
 io_worker_handle_work+0x547/0xbf0 io_uring/io-wq.c:587
 io_wqe_worker+0x202/0x930 io_uring/io-wq.c:634
 ret_from_fork+0x1f/0x30

read to 0xffff888140be8a10 of 4 bytes by task 22099 on cpu 0:
 io_should_wake io_uring/io_uring.c:2153 [inline]
 io_wake_function+0x36/0x100 io_uring/io_uring.c:2173
 __wake_up_common+0xbc/0x130 kernel/sched/wait.c:107
 __wake_up_common_lock kernel/sched/wait.c:137 [inline]
 __wake_up+0x80/0xc0 kernel/sched/wait.c:156
 io_cqring_wake io_uring/io_uring.h:206 [inline]
 io_cqring_ev_posted io_uring/io_uring.c:540 [inline]
 __io_cq_unlock_post io_uring/io_uring.c:548 [inline]
 io_cq_unlock_post io_uring/io_uring.c:553 [inline]
 io_req_complete_post io_uring/io_uring.c:816 [inline]
 io_issue_sqe+0x4e0/0x900 io_uring/io_uring.c:1588
 io_wq_submit_work+0x3de/0x580 io_uring/io_uring.c:1653
 io_worker_handle_work+0x547/0xbf0 io_uring/io-wq.c:587
 io_wqe_worker+0x202/0x930 io_uring/io-wq.c:634
 ret_from_fork+0x1f/0x30

value changed: 0x00000ead -> 0x00000eae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 22099 Comm: iou-wrk-21986 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/14 16:22 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __io_req_complete_post / io_wake_function
* Struck through repros no longer work on HEAD.