syzbot


KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker

Status: moderation: reported on 2022/05/03 21:30
Reported-by: syzbot+dcad781df3a80a14e325@syzkaller.appspotmail.com
First crash: 300d, last: 11h06m

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

write to 0xffff88813b46ab44 of 4 bytes by task 12772 on cpu 0:
 io_wq_worker_running+0x60/0xa0 io_uring/io-wq.c:678
 schedule_timeout+0xc1/0x290 kernel/time/timer.c:2167
 io_wqe_worker+0x3e1/0x8e0 io_uring/io-wq.c:647
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88813b46ab44 of 4 bytes by task 12681 on cpu 1:
 io_wqe_get_acct io_uring/io-wq.c:175 [inline]
 io_wqe_activate_free_worker+0xf8/0x2b0 io_uring/io-wq.c:274
 io_wqe_enqueue+0x2f0/0x500 io_uring/io-wq.c:927
 io_wq_enqueue+0x31/0x40 io_uring/io-wq.c:960
 io_queue_iowq+0x1d2/0x2f0 io_uring/io_uring.c:475
 io_queue_async+0x45e/0x490 io_uring/io_uring.c:2008
 io_queue_sqe io_uring/io_uring.c:2032 [inline]
 io_req_task_submit+0xeb/0x100 io_uring/io_uring.c:1369
 handle_tw_list+0x12a/0x180 io_uring/io_uring.c:1147
 tctx_task_work+0xe3/0x3d0 io_uring/io_uring.c:1207
 task_work_run+0xde/0x110 kernel/task_work.c:179
 get_signal+0xb00/0xc70 kernel/signal.c:2635
 arch_do_signal_or_restart+0x85/0x290 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:168
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000005 -> 0x00000003

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12681 Comm: syz-executor.4 Tainted: G        W          6.2.0-rc6-syzkaller-00050-g9f266ccaa2f5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (425):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/02 04:37 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/02/01 06:50 upstream c0b67534c95c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/31 00:55 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/30 14:59 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/30 09:58 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/29 21:34 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/28 12:24 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/27 23:58 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/26 03:50 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/25 11:39 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/25 07:53 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/23 22:53 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/23 15:28 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/23 10:10 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/22 22:52 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/22 07:16 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/21 15:27 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/21 00:49 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/20 12:22 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/19 21:28 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/17 16:54 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/16 22:02 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/15 10:09 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/14 11:11 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/13 14:34 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/13 05:55 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/12 08:57 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/11 13:45 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/10 10:43 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/09 22:34 upstream 1fe4fd6f5cad 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/08 12:13 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/06 22:03 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/06 00:25 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/05 10:40 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/04 11:19 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/03 12:44 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/03 02:20 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/02 07:03 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2023/01/01 12:11 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/12/31 16:42 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/12/30 23:28 upstream bff687b3dad6 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/12/30 01:23 upstream 2258c2dc850b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/12/27 15:54 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/12/25 23:23 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/12/24 18:24 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/05/03 18:33 upstream ef8e4d3c2ab1 dc9e5259 .config console log report info KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/05/03 16:58 upstream 9050ba3a61a4 dc9e5259 .config console log report info KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
ci2-upstream-kcsan-gce 2022/04/07 22:34 upstream 42e7a03d3bad c6ff3e05 .config console log report info KCSAN: data-race in io_wq_worker_running / io_wqe_activate_free_worker
* Struck through repros no longer work on HEAD.