================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea0004923718 of 8 bytes by task 27335 on cpu 0: page_cache_delete mm/filemap.c:152 [inline] __filemap_remove_folio+0x1ac/0x2c0 mm/filemap.c:232 invalidate_complete_folio2 mm/truncate.c:550 [inline] invalidate_inode_pages2_range+0x47e/0x770 mm/truncate.c:641 filemap_invalidate_pages+0x16c/0x1a0 mm/filemap.c:2757 kiocb_invalidate_pages+0x6b/0x80 mm/filemap.c:2765 blkdev_direct_write+0x32/0x100 block/fops.c:645 blkdev_write_iter+0x38a/0x460 block/fops.c:716 do_iter_readv_writev+0x394/0x450 vfs_writev+0x2d4/0x880 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x100/0x1c0 fs/read_write.c:1195 __x64_sys_pwritev2+0x78/0x90 fs/read_write.c:1195 x64_sys_call+0x2afe/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:329 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 0xffffea0004923718 of 8 bytes by task 26630 on cpu 1: folio_mapping+0xa0/0x120 mm/util.c:847 folio_evictable mm/internal.h:435 [inline] lru_add+0x89/0x440 mm/swap.c:136 folio_batch_move_lru+0x15f/0x230 mm/swap.c:168 __folio_batch_add_and_move mm/swap.c:196 [inline] folio_add_lru+0x145/0x1f0 mm/swap.c:482 filemap_add_folio+0x12c/0x1b0 mm/filemap.c:987 page_cache_ra_unbounded+0x177/0x310 mm/readahead.c:273 do_page_cache_ra mm/readahead.c:325 [inline] force_page_cache_ra mm/readahead.c:354 [inline] page_cache_sync_ra+0x252/0x670 mm/readahead.c:567 page_cache_sync_readahead include/linux/pagemap.h:1397 [inline] filemap_get_pages+0x2c1/0x10e0 mm/filemap.c:2546 filemap_read+0x221/0x6a0 mm/filemap.c:2646 blkdev_read_iter+0x20e/0x2c0 block/fops.c:767 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x5dc/0x700 fs/read_write.c:565 ksys_read+0xe8/0x1b0 fs/read_write.c:708 __do_sys_read fs/read_write.c:717 [inline] __se_sys_read fs/read_write.c:715 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:715 x64_sys_call+0x2874/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:1 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: 0xffff8881004c17d8 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 26630 Comm: udevd Tainted: G W 6.12.0-syzkaller-10296-gaaf20f870da0 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================