================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea00044fc4d8 of 8 bytes by task 5574 on cpu 1: page_cache_delete_batch mm/filemap.c:317 [inline] delete_from_page_cache_batch+0x308/0x700 mm/filemap.c:343 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:343 truncate_inode_pages+0x24/0x30 mm/truncate.c:423 kill_bdev block/bdev.c:90 [inline] set_blocksize+0x267/0x280 block/bdev.c:172 sb_set_blocksize block/bdev.c:181 [inline] sb_min_blocksize+0x63/0xe0 block/bdev.c:197 ext4_load_super fs/ext4/super.c:4991 [inline] __ext4_fill_super fs/ext4/super.c:5188 [inline] ext4_fill_super+0x38b/0x39e0 fs/ext4/super.c:5664 get_tree_bdev+0x256/0x2e0 fs/super.c:1635 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5696 vfs_get_tree+0x56/0x1e0 fs/super.c:1800 do_new_mount+0x227/0x690 fs/namespace.c:3472 path_mount+0x49b/0xb30 fs/namespace.c:3799 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x27c/0x2d0 fs/namespace.c:3997 __x64_sys_mount+0x67/0x80 fs/namespace.c:3997 x64_sys_call+0x203e/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:166 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 0xffffea00044fc4d8 of 8 bytes by task 28 on cpu 0: folio_mapping+0x97/0x110 mm/util.c:815 folio_evictable mm/internal.h:370 [inline] lru_add_fn+0x89/0x440 mm/swap.c:183 folio_batch_move_lru+0x15f/0x230 mm/swap.c:215 lru_add_drain_cpu+0x77/0x260 mm/swap.c:661 lru_add_drain mm/swap.c:775 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1096 folio_batch_release include/linux/pagevec.h:101 [inline] mpage_prepare_extent_to_map+0xa44/0xb80 fs/ext4/inode.c:2571 ext4_do_writepages+0x6ea/0x2110 fs/ext4/inode.c:2706 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2842 do_writepages+0x1d8/0x480 mm/page-writeback.c:2683 __writeback_single_inode+0x91/0x870 fs/fs-writeback.c:1651 writeback_sb_inodes+0x559/0xb20 fs/fs-writeback.c:1947 wb_writeback+0x25e/0x720 fs/fs-writeback.c:2127 wb_do_writeback fs/fs-writeback.c:2274 [inline] wb_workfn+0x1a8/0x940 fs/fs-writeback.c:2314 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312 worker_thread+0x526/0x6e0 kernel/workqueue.c:3389 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0xffff8881004c0b58 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 28 Comm: kworker/u8:1 Not tainted 6.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: writeback wb_workfn (flush-7:3) ==================================================================