================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004ecebd8 of 8 bytes by task 30480 on cpu 1: page_cache_delete_batch mm/filemap.c:308 [inline] delete_from_page_cache_batch+0x32a/0x710 mm/filemap.c:334 truncate_inode_pages_range+0x1bd/0x6a0 mm/truncate.c:359 truncate_inode_pages+0x24/0x30 mm/truncate.c:439 kill_bdev block/bdev.c:79 [inline] set_blocksize+0x26c/0x290 block/bdev.c:155 sb_set_blocksize block/bdev.c:164 [inline] sb_min_blocksize+0x83/0x110 block/bdev.c:180 ext4_load_super fs/ext4/super.c:5030 [inline] __ext4_fill_super fs/ext4/super.c:5227 [inline] ext4_fill_super+0x39f/0x39a0 fs/ext4/super.c:5703 get_tree_bdev+0x250/0x2d0 fs/super.c:1619 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735 vfs_get_tree+0x51/0x1b0 fs/super.c:1784 do_new_mount+0x227/0x690 fs/namespace.c:3352 path_mount+0x496/0xb30 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffffea0004ecebd8 of 8 bytes by task 3121 on cpu 0: folio_mapping+0x92/0x110 mm/util.c:782 folio_evictable mm/internal.h:162 [inline] lru_add_fn+0x8d/0x440 mm/swap.c:181 folio_batch_move_lru+0x21e/0x2f0 mm/swap.c:217 folio_batch_add_and_move mm/swap.c:234 [inline] folio_add_lru+0xc4/0x120 mm/swap.c:517 filemap_add_folio+0x103/0x160 mm/filemap.c:953 page_cache_ra_unbounded+0x15e/0x2e0 mm/readahead.c:250 do_page_cache_ra mm/readahead.c:299 [inline] force_page_cache_ra mm/readahead.c:330 [inline] page_cache_sync_ra+0x24b/0x2a0 mm/readahead.c:689 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x251/0xf90 mm/filemap.c:2498 filemap_read+0x214/0x680 mm/filemap.c:2594 blkdev_read_iter+0x217/0x2c0 block/fops.c:757 call_read_iter include/linux/fs.h:2079 [inline] new_sync_read fs/read_write.c:395 [inline] vfs_read+0x34c/0x480 fs/read_write.c:476 ksys_read+0xeb/0x1a0 fs/read_write.c:619 __do_sys_read fs/read_write.c:629 [inline] __se_sys_read fs/read_write.c:627 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:627 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0xffff8881004c17d8 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3121 Comm: udevd Not tainted 6.7.0-syzkaller-02723-gde927f6c0b07 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================