syzbot


KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running (2)

Status: auto-obsoleted due to no activity on 2024/06/13 23:45
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+fb0d2b81f94bbc646cbf@syzkaller.appspotmail.com
First crash: 42d, last: 36d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running io-uring 17 290d 275d 0/27 auto-obsoleted due to no activity on 2023/09/28 13:42

Sample crash report:
==================================================================
BUG: KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running

write to 0xffff8881174fbcc4 of 4 bytes by task 4976 on cpu 0:
 io_wq_worker_running+0x64/0xb0 io_uring/io-wq.c:702
 schedule_timeout+0xca/0x2c0 kernel/time/timer.c:2582
 io_wq_worker+0x35e/0x730 io_uring/io-wq.c:667
 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 0xffff8881174fbcc4 of 4 bytes by task 4975 on cpu 1:
 io_wq_get_acct io_uring/io-wq.c:168 [inline]
 io_wq_activate_free_worker+0xfa/0x250 io_uring/io-wq.c:285
 io_wq_enqueue+0x25e/0x440 io_uring/io-wq.c:947
 io_queue_iowq+0x1d6/0x320 io_uring/io_uring.c:523
 io_queue_sqe_fallback+0x87/0xe0 io_uring/io_uring.c:2143
 io_submit_sqe io_uring/io_uring.c:2372 [inline]
 io_submit_sqes+0xc4b/0x10a0 io_uring/io_uring.c:2492
 __do_sys_io_uring_enter io_uring/io_uring.c:3668 [inline]
 __se_sys_io_uring_enter+0x1d1/0x17f0 io_uring/io_uring.c:3603
 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3603
 x64_sys_call+0x263/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:427
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000d -> 0x0000000b

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4975 Comm: syz-executor.0 Not tainted 6.9.0-rc7-syzkaller-00117-g448b3fe5a0ea #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/09 23:44 upstream 448b3fe5a0ea 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running
2024/05/07 04:25 upstream dccb07f2914c fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running
2024/05/07 04:23 upstream dccb07f2914c fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running
2024/05/04 03:59 upstream ddb4c3f25b7b 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running
2024/05/04 03:59 upstream ddb4c3f25b7b 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in io_wq_activate_free_worker / io_wq_worker_running
* Struck through repros no longer work on HEAD.