syzbot


KCSAN: data-race in __io_fill_cqe_req / io_uring_poll (2)

Status: auto-obsoleted due to no activity on 2023/04/11 02:36
Subsystems: io-uring
[Documentation on labels]
First crash: 772d, last: 772d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __io_fill_cqe_req / io_uring_poll fs 59 966d 1100d 0/28 auto-closed as invalid on 2022/09/07 08:28

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __io_fill_cqe_req / io_uring_poll

read-write to 0xffff88813e41d310 of 4 bytes by task 9923 on cpu 0:
 io_get_cqe_overflow io_uring/io_uring.h:113 [inline]
 io_get_cqe io_uring/io_uring.h:125 [inline]
 __io_fill_cqe_req+0x6d/0x4d0 io_uring/io_uring.h:138
 io_fill_cqe_req io_uring/io_uring.h:166 [inline]
 __io_req_complete_post+0x67/0x7b0 io_uring/io_uring.c:933
 io_req_complete_post io_uring/io_uring.c:970 [inline]
 io_issue_sqe+0x319/0x660 io_uring/io_uring.c:1863
 io_wq_submit_work+0x1ef/0x340 io_uring/io_uring.c:1927
 io_worker_handle_work+0x532/0xaf0 io_uring/io-wq.c:587
 io_wqe_worker+0x1e9/0x770 io_uring/io-wq.c:632
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88813e41d310 of 4 bytes by task 9916 on cpu 1:
 __io_cqring_events io_uring/io_uring.c:178 [inline]
 io_cqring_events io_uring/io_uring.c:1498 [inline]
 io_uring_poll+0xcb/0x1a0 io_uring/io_uring.c:2793
 vfs_poll include/linux/poll.h:88 [inline]
 __io_arm_poll_handler+0x205/0xe30 io_uring/poll.c:598
 io_arm_poll_handler+0x472/0x5d0 io_uring/poll.c:722
 io_queue_async+0x85/0x4a0 io_uring/io_uring.c:2001
 io_queue_sqe io_uring/io_uring.c:2032 [inline]
 io_submit_sqe io_uring/io_uring.c:2284 [inline]
 io_submit_sqes+0xa44/0x1030 io_uring/io_uring.c:2395
 __do_sys_io_uring_enter io_uring/io_uring.c:3343 [inline]
 __se_sys_io_uring_enter+0x1e7/0x1680 io_uring/io_uring.c:3275
 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3275
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00001be0 -> 0x00001bf9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9916 Comm: syz-executor.0 Not tainted 6.2.0-rc8-syzkaller-00002-gb408817d4884-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/14 02:06 upstream b408817d4884 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __io_fill_cqe_req / io_uring_poll
* Struck through repros no longer work on HEAD.