syzbot


KCSAN: data-race in filemap_read / filemap_read (6)

Status: moderation: reported on 2025/06/15 13:14
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+5de889f7f7e25c4e6d5a@syzkaller.appspotmail.com
First crash: 2d23h, last: 9h53m
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_read / filemap_read (5) fs 1 83d 83d 0/28 auto-obsoleted due to no activity on 2025/05/22 02:24
upstream KCSAN: data-race in filemap_read / filemap_read fs 832 574d 1413d 0/28 auto-obsoleted due to no activity on 2023/12/20 06:43
upstream KCSAN: data-race in filemap_read / filemap_read (2) fs 2 543d 546d 0/28 auto-obsoleted due to no activity on 2024/01/26 23:06
upstream KCSAN: data-race in filemap_read / filemap_read (3) fs 4 450d 484d 0/28 auto-obsoleted due to no activity on 2024/04/29 01:22
upstream KCSAN: data-race in filemap_read / filemap_read (4) fs 1 350d 350d 0/28 auto-obsoleted due to no activity on 2024/08/06 15:23

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

read to 0xffff888106aaad68 of 8 bytes by task 15456 on cpu 0:
 filemap_read+0x6f/0xa00 mm/filemap.c:2685
 generic_file_read_iter+0x79/0x330 mm/filemap.c:2903
 ext4_file_read_iter+0x1cc/0x290 fs/ext4/file.c:-1
 copy_splice_read+0x3c1/0x5f0 fs/splice.c:363
 do_splice_read fs/splice.c:978 [inline]
 splice_direct_to_actor+0x290/0x680 fs/splice.c:1083
 do_splice_direct_actor fs/splice.c:1201 [inline]
 do_splice_direct+0xda/0x150 fs/splice.c:1227
 do_sendfile+0x380/0x650 fs/read_write.c:1370
 __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 0xffff888106aaad68 of 8 bytes by task 15450 on cpu 1:
 filemap_read+0x974/0xa00 mm/filemap.c:2784
 generic_file_read_iter+0x79/0x330 mm/filemap.c:2903
 ext4_file_read_iter+0x1cc/0x290 fs/ext4/file.c:-1
 copy_splice_read+0x3c1/0x5f0 fs/splice.c:363
 do_splice_read fs/splice.c:978 [inline]
 splice_direct_to_actor+0x290/0x680 fs/splice.c:1083
 do_splice_direct_actor fs/splice.c:1201 [inline]
 do_splice_direct+0xda/0x150 fs/splice.c:1227
 do_sendfile+0x380/0x650 fs/read_write.c:1370
 __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: 0x0000000000000137 -> 0x0000000000000138

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 15450 Comm: syz.6.3960 Not tainted 6.16.0-rc2-syzkaller-00045-g4663747812d1 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/18 02:48 upstream 4663747812d1 e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / filemap_read
2025/06/18 02:47 upstream 4663747812d1 e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / filemap_read
2025/06/18 02:47 upstream 4663747812d1 e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / filemap_read
2025/06/17 16:19 upstream 9afe652958c3 cfebc887 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / filemap_read
2025/06/16 04:45 upstream 08215f5486ec 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / filemap_read
2025/06/15 13:13 upstream 8c6bc74c7f89 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / filemap_read
* Struck through repros no longer work on HEAD.