================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea00044a2c58 of 8 bytes by task 3554 on cpu 0: page_cache_delete_batch mm/filemap.c:318 [inline] delete_from_page_cache_batch+0x308/0x700 mm/filemap.c:344 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:343 truncate_inode_pages+0x24/0x30 mm/truncate.c:423 kill_bdev block/bdev.c:91 [inline] blkdev_flush_mapping+0xa5/0x1a0 block/bdev.c:671 blkdev_put_part block/bdev.c:771 [inline] bdev_release+0x292/0x420 block/bdev.c:1101 blkdev_release+0x15/0x20 block/fops.c:639 __fput+0x17a/0x6d0 fs/file_table.c:431 __fput_sync+0x43/0x60 fs/file_table.c:516 __do_sys_close fs/open.c:1567 [inline] __se_sys_close+0xf9/0x1a0 fs/open.c:1552 __x64_sys_close+0x1f/0x30 fs/open.c:1552 x64_sys_call+0x25cb/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:4 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 0xffffea00044a2c58 of 8 bytes by task 3258 on cpu 1: folio_mapping+0xa0/0x120 mm/util.c:855 folio_evictable mm/internal.h:389 [inline] lru_add+0x89/0x440 mm/swap.c:181 folio_batch_move_lru+0x15f/0x230 mm/swap.c:213 __folio_batch_add_and_move mm/swap.c:241 [inline] folio_add_lru+0x145/0x1f0 mm/swap.c:527 filemap_add_folio+0x12c/0x1b0 mm/filemap.c:988 page_cache_ra_unbounded+0x175/0x310 mm/readahead.c:268 do_page_cache_ra mm/readahead.c:320 [inline] force_page_cache_ra mm/readahead.c:349 [inline] page_cache_sync_ra+0x252/0x670 mm/readahead.c:562 page_cache_sync_readahead include/linux/pagemap.h:1394 [inline] filemap_get_pages+0x2c1/0x10e0 mm/filemap.c:2547 filemap_read+0x216/0x680 mm/filemap.c:2645 blkdev_read_iter+0x20e/0x2c0 block/fops.c:765 new_sync_read fs/read_write.c:488 [inline] vfs_read+0x5f6/0x720 fs/read_write.c:569 ksys_read+0xeb/0x1b0 fs/read_write.c:712 __do_sys_read fs/read_write.c:722 [inline] __se_sys_read fs/read_write.c:720 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:720 x64_sys_call+0x27d3/0x2d60 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: 0xffff8881062eb0d8 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3258 Comm: udevd Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== udevd[3258]: inotify_add_watch(7, /dev/loop1p215, 10) failed: No such file or directory