syzbot


KCSAN: data-race in io_req_task_complete / kiocb_done

Status: auto-closed as invalid on 2022/06/24 01:52
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 259d, last: 200d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in io_req_task_complete / kiocb_done

write to 0xffff88814029ff44 of 4 bytes by task 8096 on cpu 1:
 io_req_complete_state fs/io_uring.c:2111 [inline]
 io_req_task_complete+0x9a/0x470 fs/io_uring.c:2985
 handle_tw_list fs/io_uring.c:2463 [inline]
 tctx_task_work+0x80b/0xa30 fs/io_uring.c:2497
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 get_signal+0xeca/0x1020 kernel/signal.c:2641
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:867
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88814029ff44 of 4 bytes by task 8123 on cpu 0:
 kiocb_done+0x1b5/0x640 fs/io_uring.c:3227
 io_read fs/io_uring.c:3934 [inline]
 io_issue_sqe+0x657d/0x8790 fs/io_uring.c:7146
 io_wq_submit_work+0x249/0x2d0 fs/io_uring.c:7321
 io_worker_handle_work+0x517/0xc50 fs/io-wq.c:597
 io_wqe_worker+0x1d1/0x940 fs/io-wq.c:644
 ret_from_fork+0x1f/0x30

value changed: 0x040c4100 -> 0x040d0100

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8123 Comm: iou-wrk-8096 Not tainted 5.18.0-rc7-syzkaller-00119-gb015dcd62b86-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (16):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/20 01:46 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/05/03 18:56 upstream ef8e4d3c2ab1 dc9e5259 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/10 16:09 upstream 1862a69c9174 e22c3da3 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/09 11:39 upstream f1b45d8ccb98 e22c3da3 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/08 08:01 upstream 42e7a03d3bad c6ff3e05 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/06 16:09 upstream 3e732ebf7316 97582466 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/06 09:20 upstream 3e732ebf7316 86b4b7f8 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/05 17:47 upstream ce4c854ee868 0127c10f .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/05 17:04 upstream 312310928417 0127c10f .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/04/02 22:13 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/03/28 03:59 upstream f82da161ea75 89bc8608 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/03/27 11:41 upstream f022814633e1 89bc8608 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/03/26 03:43 upstream 52d543b5497c 89bc8608 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/03/25 02:24 upstream 52deda9551a0 89bc8608 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/03/23 05:42 upstream 3bf03b9a0839 5ff41e94 .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
ci2-upstream-kcsan-gce 2022/03/22 12:31 upstream b47d5a4f6b8d e2d91b1d .config log report info KCSAN: data-race in io_req_task_complete / kiocb_done
* Struck through repros no longer work on HEAD.