================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea000421cc98 of 8 bytes by task 17841 on cpu 1: page_cache_delete_batch mm/filemap.c:313 [inline] delete_from_page_cache_batch+0x32d/0x750 mm/filemap.c:339 truncate_inode_pages_range+0x354/0x800 mm/truncate.c:369 truncate_inode_pages+0x24/0x30 mm/truncate.c:449 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:5071 [inline] __ext4_fill_super fs/ext4/super.c:5199 [inline] ext4_fill_super+0xa9a/0x3950 fs/ext4/super.c:5675 get_tree_bdev+0x250/0x2d0 fs/super.c:1538 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5707 vfs_get_tree+0x51/0x1b0 fs/super.c:1711 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 0xffffea000421cc98 of 8 bytes by task 17846 on cpu 0: folio_mapping+0x92/0x110 mm/util.c:775 folio_evictable mm/internal.h:156 [inline] lru_add_fn+0x92/0x450 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+0xf9/0x160 mm/swap.c:537 do_anonymous_page mm/memory.c:4146 [inline] do_pte_missing mm/memory.c:3662 [inline] handle_pte_fault mm/memory.c:4939 [inline] __handle_mm_fault mm/memory.c:5079 [inline] handle_mm_fault+0x1c27/0x2c10 mm/memory.c:5233 do_user_addr_fault arch/x86/mm/fault.c:1343 [inline] handle_page_fault arch/x86/mm/fault.c:1486 [inline] exc_page_fault+0x391/0x650 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0xffff888100482458 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 17846 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-01810-gf97e18a3f2fb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 ================================================================== loop0: detected capacity change from 0 to 2048 EXT4-fs (loop0): warning: checktime reached, running e2fsck is recommended