syzbot


KCSAN: data-race in aio_read_events / iocb_put (12)

Status: moderation: reported on 2025/07/12 20:42
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+71695ff2a8972d49d49b@syzkaller.appspotmail.com
First crash: 5d01h, last: 5d01h
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in aio_read_events / iocb_put (11) fs 6 1 430d 430d 0/29 auto-obsoleted due to no activity on 2024/06/16 22:57
upstream KCSAN: data-race in aio_read_events / iocb_put (7) fs 6 1 761d 761d 0/29 auto-obsoleted due to no activity on 2023/07/22 02:26
upstream KCSAN: data-race in aio_read_events / iocb_put (5) fs 6 1 1177d 1177d 0/29 auto-closed as invalid on 2022/06/01 10:01
upstream KCSAN: data-race in aio_read_events / iocb_put (10) fs 6 1 503d 503d 0/29 auto-obsoleted due to no activity on 2024/04/05 02:13
upstream KCSAN: data-race in aio_read_events / iocb_put (9) fs 6 2 585d 584d 0/29 auto-obsoleted due to no activity on 2024/01/14 07:58
upstream KCSAN: data-race in aio_read_events / iocb_put (6) fs 6 1 966d 966d 0/29 auto-obsoleted due to no activity on 2023/01/02 10:55
upstream KCSAN: data-race in aio_read_events / iocb_put (2) fs 6 1 1480d 1480d 0/29 auto-closed as invalid on 2021/08/02 19:13
upstream KCSAN: data-race in aio_read_events / iocb_put (3) fs 6 2 1386d 1391d 0/29 auto-closed as invalid on 2021/11/04 18:41
upstream KCSAN: data-race in aio_read_events / iocb_put (4) fs 6 1 1216d 1216d 0/29 auto-closed as invalid on 2022/04/23 01:57
upstream KCSAN: data-race in aio_read_events / iocb_put fs 6 2 1519d 1543d 0/29 auto-closed as invalid on 2021/06/24 15:51
upstream KCSAN: data-race in aio_read_events / iocb_put (8) fs 6 1 670d 670d 0/29 auto-obsoleted due to no activity on 2023/10/21 20:27

Sample crash report:
==================================================================
BUG: KCSAN: data-race in aio_read_events / iocb_put

write to 0xffff8881627b500c of 4 bytes by task 8069 on cpu 0:
 aio_complete fs/aio.c:1162 [inline]
 iocb_put+0x199/0x6d0 fs/aio.c:1209
 io_submit_one+0xad7/0x11d0 fs/aio.c:2056
 __do_sys_io_submit fs/aio.c:2112 [inline]
 __se_sys_io_submit+0xfb/0x280 fs/aio.c:2082
 __x64_sys_io_submit+0x43/0x50 fs/aio.c:2082
 x64_sys_call+0xfc4/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:210
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881627b500c of 4 bytes by task 8068 on cpu 1:
 aio_read_events_ring fs/aio.c:1238 [inline]
 aio_read_events+0xb2/0x400 fs/aio.c:1298
 read_events fs/aio.c:1334 [inline]
 do_io_getevents+0x11b/0x400 fs/aio.c:2230
 __do_sys_io_getevents fs/aio.c:2263 [inline]
 __se_sys_io_getevents fs/aio.c:2251 [inline]
 __x64_sys_io_getevents+0xca/0x190 fs/aio.c:2251
 x64_sys_call+0x29fc/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:209
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000017 -> 0x0000001a

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 8068 Comm: syz.7.1315 Not tainted 6.16.0-rc5-syzkaller-00224-g379f604cc3dc #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/12 20:41 upstream 379f604cc3dc 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in aio_read_events / iocb_put
* Struck through repros no longer work on HEAD.