================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004c7b058 of 8 bytes by task 2489 on cpu 1: page_cache_delete_batch mm/filemap.c:310 [inline] delete_from_page_cache_batch+0x320/0x760 mm/filemap.c:336 truncate_inode_pages_range+0x1bd/0x6a0 mm/truncate.c:368 truncate_inode_pages+0x24/0x30 mm/truncate.c:448 kill_bdev block/bdev.c:76 [inline] set_blocksize+0x26c/0x290 block/bdev.c:152 sb_set_blocksize+0x2d/0xb0 block/bdev.c:161 ext4_load_super fs/ext4/super.c:5099 [inline] __ext4_fill_super fs/ext4/super.c:5227 [inline] ext4_fill_super+0xa8e/0x3940 fs/ext4/super.c:5703 get_tree_bdev+0x272/0x300 fs/super.c:1577 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735 vfs_get_tree+0x51/0x1b0 fs/super.c:1750 do_new_mount+0x203/0x660 fs/namespace.c:3335 path_mount+0x496/0xb30 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3861 __x64_sys_mount+0x67/0x80 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea0004c7b058 of 8 bytes by task 2480 on cpu 0: folio_mapping+0x92/0x110 mm/util.c:772 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 mm/swap.c:517 [inline] folio_add_lru_vma+0xf4/0x160 mm/swap.c:537 wp_page_copy mm/memory.c:3144 [inline] do_wp_page+0x1120/0x1ee0 mm/memory.c:3449 handle_pte_fault mm/memory.c:4994 [inline] __handle_mm_fault mm/memory.c:5119 [inline] handle_mm_fault+0xe2a/0x2cc0 mm/memory.c:5284 do_user_addr_fault arch/x86/mm/fault.c:1364 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x3ff/0x6c0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0xffff8881005b1198 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2480 Comm: syz-executor.5 Not tainted 6.6.0-rc6-syzkaller-00207-gc8045b4a33a5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 ==================================================================