syzbot


KCSAN: data-race in do_sendfile / do_sendfile (10)

Status: moderation: reported on 2024/11/13 18:24
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+be39254b0cdfa55a2579@syzkaller.appspotmail.com
First crash: 134d, last: 4d08h
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_sendfile / do_sendfile (3) fs 1 811d 811d 0/28 auto-obsoleted due to no activity on 2023/03/17 22:50
upstream KCSAN: data-race in do_sendfile / do_sendfile (4) fs 4 699d 722d 0/28 auto-obsoleted due to no activity on 2023/06/02 10:13
upstream KCSAN: data-race in do_sendfile / do_sendfile fs 2 1134d 1149d 0/28 auto-closed as invalid on 2022/03/24 16:27
upstream KCSAN: data-race in do_sendfile / do_sendfile (9) fs 1 193d 193d 0/28 auto-obsoleted due to no activity on 2024/10/20 07:46
upstream KCSAN: data-race in do_sendfile / do_sendfile (7) fs 5 424d 473d 0/28 auto-obsoleted due to no activity on 2024/03/03 18:17
upstream KCSAN: data-race in do_sendfile / do_sendfile (6) fs 1 569d 569d 0/28 auto-obsoleted due to no activity on 2023/10/10 12:26
upstream KCSAN: data-race in do_sendfile / do_sendfile (5) fs 3 610d 631d 0/28 auto-obsoleted due to no activity on 2023/08/30 17:21
upstream KCSAN: data-race in do_sendfile / do_sendfile (8) fs 2 249d 273d 0/28 auto-obsoleted due to no activity on 2024/08/25 22:44
upstream KCSAN: data-race in do_sendfile / do_sendfile (2) fs 1 950d 950d 0/28 auto-closed as invalid on 2022/09/24 23:59

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

write to 0xffff88813c21a370 of 8 bytes by task 9905 on cpu 0:
 do_sendfile+0x452/0x660
 __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

write to 0xffff88813c21a370 of 8 bytes by task 9897 on cpu 1:
 do_sendfile+0x452/0x660
 __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 -> 0x0000000000000c1d

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 9897 Comm: syz.3.2092 Not tainted 6.14.0-rc7-syzkaller-00205-g586de92313fc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/23 21:55 upstream 586de92313fc 4e8d3850 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2025/02/15 15:34 upstream 78a632a2086c 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2025/01/22 09:35 upstream c4b9570cfb63 da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2024/12/30 00:15 upstream 4099a71718b0 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2024/12/26 15:04 upstream 9b2ffa6148b1 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2024/12/19 23:41 upstream baaa2567a712 5905cb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2024/12/02 22:44 upstream e70140ba0d2b b499ea68 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2024/11/25 16:27 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2024/11/13 18:24 upstream f1b785f4c787 bb3f8425 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
* Struck through repros no longer work on HEAD.