================================================================== BUG: KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range read-write to 0xffff88810de310a8 of 8 bytes by task 16046 on cpu 0: __filemap_add_folio+0x461/0x6d0 mm/filemap.c:912 filemap_add_folio+0x70/0x160 mm/filemap.c:947 page_cache_ra_unbounded+0x15f/0x2e0 mm/readahead.c:250 do_page_cache_ra mm/readahead.c:299 [inline] page_cache_ra_order mm/readahead.c:539 [inline] ondemand_readahead+0x549/0x6c0 mm/readahead.c:661 page_cache_async_ra+0x94/0xa0 mm/readahead.c:710 do_async_mmap_readahead mm/filemap.c:3179 [inline] filemap_fault+0x3da/0xc70 mm/filemap.c:3275 __do_fault+0xb6/0x200 mm/memory.c:4531 do_read_fault mm/memory.c:4894 [inline] do_fault mm/memory.c:5024 [inline] do_pte_missing mm/memory.c:3880 [inline] handle_pte_fault mm/memory.c:5300 [inline] __handle_mm_fault mm/memory.c:5441 [inline] handle_mm_fault+0xdbf/0x27e0 mm/memory.c:5606 faultin_page mm/gup.c:958 [inline] __get_user_pages+0x470/0xec0 mm/gup.c:1257 populate_vma_page_range mm/gup.c:1697 [inline] __mm_populate+0x204/0x340 mm/gup.c:1800 mm_populate include/linux/mm.h:3413 [inline] vm_mmap_pgoff+0x1a8/0x250 mm/util.c:578 ksys_mmap_pgoff+0x2bd/0x340 mm/mmap.c:1431 x64_sys_call+0x1815/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88810de310a8 of 8 bytes by task 16042 on cpu 1: mapping_needs_writeback mm/filemap.c:635 [inline] file_write_and_wait_range+0x6d/0x170 mm/filemap.c:787 ext4_sync_file+0x134/0x6c0 fs/ext4/fsync.c:158 vfs_fsync_range+0x122/0x140 fs/sync.c:188 generic_write_sync include/linux/fs.h:2795 [inline] iomap_dio_complete+0x370/0x4c0 fs/iomap/direct-io.c:126 iomap_dio_rw+0x62/0x90 fs/iomap/direct-io.c:753 ext4_dio_write_iter fs/ext4/file.c:577 [inline] ext4_file_write_iter+0xaa4/0xe30 fs/ext4/file.c:696 call_write_iter include/linux/fs.h:2110 [inline] 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+0x3b9/0x970 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+0x2c67/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:41 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x000000000000067a -> 0x000000000000067c Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 16042 Comm: syz-executor.1 Tainted: G W 6.9.0-rc6-syzkaller-00232-gddb4c3f25b7b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================