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: 25d, last: 6d00h
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 702d 702d 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 590d 613d 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 1025d 1040d 0/28 auto-closed as invalid on 2022/03/24 16:27
upstream KCSAN: data-race in do_sendfile / do_sendfile (9) fs 1 84d 84d 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 315d 363d 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 460d 460d 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 501d 522d 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 140d 164d 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 840d 840d 0/28 auto-closed as invalid on 2022/09/24 23:59

Sample crash report:
EXT4-fs: Ignoring removed orlov option
==================================================================
BUG: KCSAN: data-race in do_sendfile / do_sendfile

write to 0xffff888104231a30 of 8 bytes by task 13203 on cpu 1:
 do_sendfile+0x427/0x660 fs/read_write.c:1377
 __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 0xffff888104231a30 of 8 bytes by task 13198 on cpu 0:
 do_sendfile+0x427/0x660 fs/read_write.c:1377
 __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: 0x0000000000000001 -> 0x0000000000000bf3

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 13198 Comm: syz.6.1641 Tainted: G        W          6.13.0-rc1-syzkaller-00001-ge70140ba0d2b #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.