================================================================== BUG: KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range read-write to 0xffff888140c4d510 of 8 bytes by task 13926 on cpu 1: __filemap_add_folio+0x439/0x710 mm/filemap.c:918 filemap_add_folio+0x9c/0x1b0 mm/filemap.c:970 page_cache_ra_unbounded+0x148/0x2e0 mm/readahead.c:252 do_page_cache_ra mm/readahead.c:303 [inline] page_cache_ra_order mm/readahead.c:488 [inline] page_cache_async_ra+0x40c/0x420 mm/readahead.c:638 filemap_readahead mm/filemap.c:2504 [inline] filemap_get_pages+0x398/0xfb0 mm/filemap.c:2545 filemap_splice_read+0x360/0x920 mm/filemap.c:2894 ext4_file_splice_read+0x95/0xc0 fs/ext4/file.c:158 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x26c/0x670 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x3ab/0x950 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348 x64_sys_call+0xed5/0x2d60 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 read to 0xffff888140c4d510 of 8 bytes by task 13930 on cpu 0: mapping_needs_writeback mm/filemap.c:635 [inline] filemap_write_and_wait_range+0x58/0x1f0 mm/filemap.c:684 kiocb_invalidate_pages+0x87/0x1e0 mm/filemap.c:2727 __iomap_dio_rw+0x585/0x1090 fs/iomap/direct-io.c:639 iomap_dio_rw+0x40/0x90 fs/iomap/direct-io.c:749 ext4_dio_write_iter fs/ext4/file.c:577 [inline] ext4_file_write_iter+0xaa4/0xe30 fs/ext4/file.c:696 iter_file_splice_write+0x5e6/0x970 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x16c/0x2c0 fs/splice.c:1164 splice_direct_to_actor+0x305/0x670 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x3ab/0x950 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348 x64_sys_call+0xed5/0x2d60 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: 0x0000000000000602 -> 0x000000000000060b Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 13930 Comm: syz.3.2004 Not tainted 6.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ================================================================== EXT4-fs error (device loop3): ext4_mb_generate_buddy:1220: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop3): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 32 with error 28 EXT4-fs (loop3): This should not happen!! Data will be lost EXT4-fs (loop3): Total free blocks count 0 EXT4-fs (loop3): Free/Dirty block details EXT4-fs (loop3): free_blocks=2415919104 EXT4-fs (loop3): dirty_blocks=3008 EXT4-fs (loop3): Block reservation details EXT4-fs (loop3): i_reserved_data_blocks=188 EXT4-fs (loop3): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 32 with error 28