================================================================== BUG: KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range read-write to 0xffff888119871ce8 of 8 bytes by task 4239 on cpu 0: __filemap_add_folio+0x5b9/0x7d0 mm/filemap.c:928 filemap_add_folio+0x98/0x1b0 mm/filemap.c:969 page_cache_ra_unbounded+0x1f3/0x380 mm/readahead.c:275 page_cache_sync_ra+0x6ad/0x6c0 mm/readahead.c:-1 filemap_get_pages+0x2d0/0x1150 mm/filemap.c:2603 filemap_splice_read+0x3a9/0x740 mm/filemap.c:2991 ext4_file_splice_read+0x8f/0xb0 fs/ext4/file.c:158 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x26c/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+0x2bb0/0x2ff0 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 read to 0xffff888119871ce8 of 8 bytes by task 4248 on cpu 1: mapping_needs_writeback mm/filemap.c:641 [inline] filemap_write_and_wait_range+0x59/0x340 mm/filemap.c:690 ext4_dio_write_iter fs/ext4/file.c:626 [inline] ext4_file_write_iter+0xe04/0xf00 fs/ext4/file.c:721 iter_file_splice_write+0x669/0x9e0 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x156/0x2a0 fs/splice.c:1158 splice_direct_to_actor+0x312/0x680 fs/splice.c:1102 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+0x2bb0/0x2ff0 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: 0x0000000000000005 -> 0x0000000000000006 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4248 Comm: syz.1.313 Not tainted 6.17.0-rc1-syzkaller-00038-g0cc53520e68b #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================