syzbot


KCSAN: data-race in io_submit_sqes / io_uring_poll (8)

Status: upstream: reported on 2024/06/22 08:42
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+6a4002279343ac44c448@syzkaller.appspotmail.com
First crash: 27d, last: 2d05h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [io-uring?] KCSAN: data-race in io_submit_sqes / io_uring_poll (8) 0 (1) 2024/06/22 08:42
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll (2) fs 1 1291d 1291d 0/27 auto-closed as invalid on 2021/02/08 06:39
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll (3) fs 55 969d 1047d 0/27 auto-closed as invalid on 2021/12/27 08:47
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll (7) io-uring 1 93d 93d 0/27 auto-obsoleted due to no activity on 2024/05/21 11:08
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll fs 2 1393d 1419d 0/27 auto-closed as invalid on 2020/10/29 16:22
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll (5) io-uring 21 451d 639d 0/27 auto-obsoleted due to no activity on 2023/05/30 00:18
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll (6) io-uring 1 250d 221d 0/27 auto-obsoleted due to no activity on 2023/12/25 00:08
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll (4) io-uring 123 691d 857d 0/27 auto-obsoleted due to no activity on 2022/10/01 12:19

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

read-write to 0xffff888139feb870 of 4 bytes by task 23232 on cpu 0:
 io_get_sqe io_uring/io_uring.c:2235 [inline]
 io_submit_sqes+0x23f/0x1080 io_uring/io_uring.c:2286
 __do_sys_io_uring_enter io_uring/io_uring.c:3205 [inline]
 __se_sys_io_uring_enter+0x1c6/0x15a0 io_uring/io_uring.c:3142
 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3142
 x64_sys_call+0x2567/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:427
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888139feb870 of 4 bytes by task 23234 on cpu 1:
 io_sqring_full io_uring/io_uring.h:282 [inline]
 io_uring_poll+0xcf/0x190 io_uring/io_uring.c:2699
 vfs_poll include/linux/poll.h:84 [inline]
 __io_arm_poll_handler+0x229/0xf30 io_uring/poll.c:622
 io_arm_poll_handler+0x411/0x5d0 io_uring/poll.c:756
 io_wq_submit_work+0x52b/0x660 io_uring/io_uring.c:1844
 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: 0x00001c58 -> 0x00001c67

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23234 Comm: iou-wrk-23232 Not tainted 6.10.0-syzkaller-01155-gd67978318827 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/17 00:04 upstream d67978318827 b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_submit_sqes / io_uring_poll
2024/07/15 17:42 upstream 5e0497553643 c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_submit_sqes / io_uring_poll
2024/07/08 19:41 upstream 256abd8e550c cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_submit_sqes / io_uring_poll
2024/07/08 08:04 upstream 256abd8e550c 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_submit_sqes / io_uring_poll
2024/06/22 00:06 upstream 66cc544fd75c edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_submit_sqes / io_uring_poll
* Struck through repros no longer work on HEAD.