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: 227d, last: 30d
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 904d 904d 0/29 auto-obsoleted due to no activity on 2023/03/17 22:50
upstream KCSAN: data-race in do_sendfile / do_sendfile (4) fs 4 792d 815d 0/29 auto-obsoleted due to no activity on 2023/06/02 10:13
upstream KCSAN: data-race in do_sendfile / do_sendfile fs 2 1227d 1242d 0/29 auto-closed as invalid on 2022/03/24 16:27
upstream KCSAN: data-race in do_sendfile / do_sendfile (9) fs 1 286d 286d 0/29 auto-obsoleted due to no activity on 2024/10/20 07:46
upstream KCSAN: data-race in do_sendfile / do_sendfile (7) fs 5 517d 566d 0/29 auto-obsoleted due to no activity on 2024/03/03 18:17
upstream KCSAN: data-race in do_sendfile / do_sendfile (6) fs 1 662d 662d 0/29 auto-obsoleted due to no activity on 2023/10/10 12:26
upstream KCSAN: data-race in do_sendfile / do_sendfile (5) fs 3 703d 724d 0/29 auto-obsoleted due to no activity on 2023/08/30 17:21
upstream KCSAN: data-race in do_sendfile / do_sendfile (8) fs 2 342d 366d 0/29 auto-obsoleted due to no activity on 2024/08/25 22:44
upstream KCSAN: data-race in do_sendfile / do_sendfile (2) fs 1 1043d 1043d 0/29 auto-closed as invalid on 2022/09/24 23:59

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

write to 0xffff88810bfc1130 of 8 bytes by task 13728 on cpu 0:
 do_sendfile+0x44d/0x650 fs/read_write.c:1388
 __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+0xb39/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:41
 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

write to 0xffff88810bfc1130 of 8 bytes by task 13738 on cpu 1:
 do_sendfile+0x44d/0x650 fs/read_write.c:1388
 __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+0xb39/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:41
 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: 0x0000000000000000 -> 0x0000000000000909

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 13738 Comm: syz.0.3194 Not tainted 6.15.0-syzkaller-07774-g90b83efa6701 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/29 08:13 upstream 90b83efa6701 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
2025/05/01 02:10 upstream 7a13c14ee59d ce7952f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sendfile / do_sendfile
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.