================================================================== BUG: KCSAN: data-race in folio_mapping / page_cache_delete_batch write to 0xffffea0004f2e5d8 of 8 bytes by task 12404 on cpu 1: page_cache_delete_batch+0x1a7/0x470 mm/filemap.c:308 delete_from_page_cache_batch+0x18f/0x2a0 mm/filemap.c:334 truncate_inode_pages_range+0x3ca/0xae0 mm/truncate.c:370 truncate_inode_pages+0x20/0x30 mm/truncate.c:452 kill_bdev block/bdev.c:77 [inline] set_blocksize+0x24e/0x270 block/bdev.c:153 sb_set_blocksize block/bdev.c:162 [inline] sb_min_blocksize+0x92/0x110 block/bdev.c:178 __ext4_fill_super fs/ext4/super.c:4336 [inline] ext4_fill_super+0x371/0x4f00 fs/ext4/super.c:5507 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1292 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5537 vfs_get_tree+0x49/0x190 fs/super.c:1497 do_new_mount+0x200/0x650 fs/namespace.c:3040 path_mount+0x4b1/0xb60 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea0004f2e5d8 of 8 bytes by task 12411 on cpu 0: folio_mapping+0x92/0x120 mm/util.c:806 folio_evictable mm/internal.h:136 [inline] __pagevec_lru_add_fn+0x134/0x520 mm/swap.c:1024 __pagevec_lru_add+0x1c6/0x320 mm/swap.c:1060 folio_add_lru+0x112/0x160 mm/swap.c:467 lru_cache_add+0x3b/0xe0 mm/folio-compat.c:109 lru_cache_add_inactive_or_unevictable+0x44/0x60 mm/swap.c:488 wp_page_copy+0x7d8/0x1460 mm/memory.c:3171 do_wp_page+0x76f/0xe10 handle_pte_fault mm/memory.c:4922 [inline] __handle_mm_fault mm/memory.c:5043 [inline] handle_mm_fault+0x5fb/0xa90 mm/memory.c:5141 do_user_addr_fault+0x4cd/0x940 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1484 [inline] exc_page_fault+0x60/0x160 arch/x86/mm/fault.c:1540 asm_exc_page_fault+0x22/0x30 value changed: 0xffff8881027a1b88 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 12411 Comm: syz-executor.4 Not tainted 5.19.0-rc6-syzkaller-00272-ge5d523f1ae8f-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 ==================================================================