syzbot


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

Status: auto-closed as invalid on 2021/11/04 18:41
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 434d, last: 428d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in aio_read_events / iocb_put (5) 1 220d 220d 0/24 auto-closed as invalid on 2022/06/01 10:01
upstream KCSAN: data-race in aio_read_events / iocb_put (2) 1 522d 522d 0/24 auto-closed as invalid on 2021/08/02 19:13
upstream KCSAN: data-race in aio_read_events / iocb_put (4) 1 259d 259d 0/24 auto-closed as invalid on 2022/04/23 01:57
upstream KCSAN: data-race in aio_read_events / iocb_put 2 561d 585d 0/24 auto-closed as invalid on 2021/06/24 15:51

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

write to 0xffff888125c6000c of 4 bytes by task 19084 on cpu 1:
 aio_complete fs/aio.c:1129 [inline]
 iocb_put+0x1e1/0x5c0 fs/aio.c:1163
 io_submit_one+0x87d/0x13b0 fs/aio.c:1883
 __do_sys_io_submit fs/aio.c:1939 [inline]
 __se_sys_io_submit+0x105/0x270 fs/aio.c:1909
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:1909
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888125c6000c of 4 bytes by task 19071 on cpu 0:
 aio_read_events_ring fs/aio.c:1192 [inline]
 aio_read_events+0xc6/0x470 fs/aio.c:1255
 read_events fs/aio.c:1292 [inline]
 do_io_getevents+0x267/0x380 fs/aio.c:2058
 __do_sys_io_getevents fs/aio.c:2091 [inline]
 __se_sys_io_getevents fs/aio.c:2079 [inline]
 __x64_sys_io_getevents+0xc6/0x180 fs/aio.c:2079
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19071 Comm: syz-executor.2 Not tainted 5.15.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/09/30 18:39 upstream 02d5e016800d 0f01403d .config log report info KCSAN: data-race in aio_read_events / iocb_put
ci2-upstream-kcsan-gce 2021/09/25 09:36 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in aio_read_events / iocb_put
* Struck through repros no longer work on HEAD.