syzbot


KCSAN: data-race in do_readv / do_sendfile (2)

Status: moderation: reported on 2025/02/23 12:25
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1f20c07d6b67019d3c63@syzkaller.appspotmail.com
First crash: 4d09h, last: 4d09h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_readv / do_sendfile fs 1 1377d 1377d 0/28 auto-closed as invalid on 2021/06/26 15:47

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

write to 0xffff888119ffc430 of 8 bytes by task 6421 on cpu 0:
 do_readv+0x127/0x220 fs/read_write.c:1075
 __do_sys_readv fs/read_write.c:1158 [inline]
 __se_sys_readv fs/read_write.c:1155 [inline]
 __x64_sys_readv+0x45/0x50 fs/read_write.c:1155
 x64_sys_call+0x2c34/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:20
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119ffc430 of 8 bytes by task 6420 on cpu 1:
 do_sendfile+0x113/0x660 fs/read_write.c:1314
 __do_sys_sendfile64 fs/read_write.c:1424 [inline]
 __se_sys_sendfile64 fs/read_write.c:1410 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1410
 x64_sys_call+0xfbd/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0x000000000000000e

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 6420 Comm: syz.4.1074 Not tainted 6.14.0-rc3-syzkaller-00295-g27102b38b8ca #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================

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