syzbot


KCSAN: data-race in io_worker_handle_work / io_wqe_wake_worker

Status: auto-closed as invalid on 2020/11/09 14:03
Subsystems: fs
[Documentation on labels]
First crash: 1312d, last: 1270d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in io_worker_handle_work / io_wqe_wake_worker (2) fs 2 1210d 1208d 0/26 auto-closed as invalid on 2021/01/09 05:34
upstream KCSAN: data-race in io_worker_handle_work / io_wqe_wake_worker (3) fs 2 1133d 1151d 0/26 auto-closed as invalid on 2021/03/26 15:29

Sample crash report:
==================================================================
BUG: KCSAN: data-race in io_worker_handle_work / io_wqe_wake_worker

write to 0xffff888129b1f044 of 4 bytes by task 13439 on cpu 1:
 __io_worker_busy fs/io-wq.c:351 [inline]
 io_worker_handle_work+0x531/0xcf0 fs/io-wq.c:503
 io_wqe_worker+0x1f2/0x860 fs/io-wq.c:569
 kthread+0x20d/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff888129b1f044 of 4 bytes by task 13418 on cpu 0:
 io_wqe_wake_worker+0x160/0x220 fs/io-wq.c:293
 io_wqe_enqueue+0x2b8/0x340 fs/io-wq.c:831
 io_wq_enqueue+0x3a/0x40 fs/io-wq.c:838
 __io_queue_async_work fs/io_uring.c:1198 [inline]
 io_queue_async_work+0x16b/0x3c0 fs/io_uring.c:1208
 __io_queue_sqe+0x4a3/0x670 fs/io_uring.c:6198
 io_queue_sqe+0x81/0x220 fs/io_uring.c:6261
 io_submit_sqe+0x333/0x550 fs/io_uring.c:6331
 io_submit_sqes+0x8c6/0xfb0 fs/io_uring.c:6525
 __do_sys_io_uring_enter fs/io_uring.c:8353 [inline]
 __se_sys_io_uring_enter+0x1e8/0x790 fs/io_uring.c:8312
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:8312
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13418 Comm: syz-executor.4 Not tainted 5.9.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/05 13:57 upstream 549738f15da0 1880b4a9 .config console log report info ci2-upstream-kcsan-gce
2020/09/28 09:56 upstream a1b8638ba132 6bfdbe89 .config console log report info ci2-upstream-kcsan-gce
2020/08/24 19:57 upstream d012a7190fc1 67b599d1 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.