syzbot


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

Status: auto-obsoleted due to no activity on 2024/05/21 11:08
Subsystems: io-uring
[Documentation on labels]
Reported-by: syzbot+ee59580af8baca3026ab@syzkaller.appspotmail.com
First crash: 35d, last: 35d
Similar bugs (6)
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 1233d 1233d 0/26 auto-closed as invalid on 2021/02/08 06:39
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll (3) fs 55 911d 989d 0/26 auto-closed as invalid on 2021/12/27 08:47
upstream KCSAN: data-race in io_submit_sqes / io_uring_poll fs 2 1335d 1361d 0/26 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 393d 581d 0/26 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 191d 163d 0/26 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 633d 799d 0/26 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 0xffff888126fad870 of 4 bytes by task 6103 on cpu 1:
 io_get_sqe io_uring/io_uring.c:2432 [inline]
 io_submit_sqes+0x23f/0x10a0 io_uring/io_uring.c:2483
 __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

read to 0xffff888126fad870 of 4 bytes by task 6096 on cpu 0:
 io_sqring_full io_uring/io_uring.h:291 [inline]
 io_uring_poll+0xcf/0x190 io_uring/io_uring.c:2991
 vfs_poll include/linux/poll.h:84 [inline]
 __io_arm_poll_handler+0x229/0xf30 io_uring/poll.c:622
 io_arm_poll_handler+0x3e6/0x590 io_uring/poll.c:758
 io_queue_async+0x89/0x310 io_uring/io_uring.c:2089
 io_queue_sqe io_uring/io_uring.c:2118 [inline]
 io_req_task_submit+0xff/0x110 io_uring/io_uring.c:1510
 io_handle_tw_list+0x1ef/0x240 io_uring/io_uring.c:1198
 tctx_task_work_run+0x6c/0x1b0 io_uring/io_uring.c:1270
 tctx_task_work+0x40/0x80 io_uring/io_uring.c:1288
 task_work_run+0x13a/0x1a0 kernel/task_work.c:180
 get_signal+0xeee/0x1080 kernel/signal.c:2683
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x59/0x130 kernel/entry/common.c:218
 do_syscall_64+0xda/0x1d0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00002264 -> 0x00002297

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6096 Comm: syz-executor.2 Not tainted 6.9.0-rc4-syzkaller-00031-g96fca68c4fbf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/16 11:07 upstream 96fca68c4fbf 0d592ce4 .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.