syzbot


KCSAN: data-race in do_sendfile / do_writev

Status: moderation: reported on 2025/12/20 16:18
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+bc7d8693bd6f76921104@syzkaller.appspotmail.com
First crash: 28d, last: 28d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_sendfile / do_writev

write to 0xffff88811b633a30 of 8 bytes by task 18098 on cpu 0:
 do_writev+0x11a/0x210 fs/read_write.c:1105
 __do_sys_writev fs/read_write.c:1171 [inline]
 __se_sys_writev fs/read_write.c:1168 [inline]
 __x64_sys_writev+0x45/0x50 fs/read_write.c:1168
 x64_sys_call+0x1ba5/0x3000 arch/x86/include/generated/asm/syscalls_64.h:21
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811b633a30 of 8 bytes by task 18099 on cpu 1:
 do_sendfile+0x246/0x650 fs/read_write.c:1343
 __do_sys_sendfile64 fs/read_write.c:1431 [inline]
 __se_sys_sendfile64 fs/read_write.c:1417 [inline]
 __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1417
 x64_sys_call+0x2db1/0x3000 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000078 -> 0x0000000000000084

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 18099 Comm: syz.1.4013 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/20 16:18 upstream dd9b004b7ff3 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_writev
* Struck through repros no longer work on HEAD.