================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea00046a18d8 of 8 bytes by task 4155 on cpu 1: page_cache_delete_batch mm/filemap.c:306 [inline] delete_from_page_cache_batch+0x2f6/0x6f0 mm/filemap.c:332 truncate_inode_pages_range+0x1b8/0x690 mm/truncate.c:380 truncate_inode_pages+0x24/0x30 mm/truncate.c:460 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x259/0x310 block/bdev.c:207 sb_set_blocksize block/bdev.c:224 [inline] sb_min_blocksize+0xb8/0x140 block/bdev.c:239 ext4_load_super fs/ext4/super.c:5041 [inline] __ext4_fill_super fs/ext4/super.c:5262 [inline] ext4_fill_super+0x390/0x34e0 fs/ext4/super.c:5724 get_tree_bdev_flags+0x291/0x300 fs/super.c:1681 get_tree_bdev+0x1f/0x30 fs/super.c:1704 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5756 vfs_get_tree+0x54/0x1d0 fs/super.c:1804 do_new_mount+0x207/0x680 fs/namespace.c:3885 path_mount+0x4a4/0xb20 fs/namespace.c:4209 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount+0x28f/0x2e0 fs/namespace.c:4410 __x64_sys_mount+0x67/0x80 fs/namespace.c:4410 x64_sys_call+0xd36/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea00046a18d8 of 8 bytes by task 4115 on cpu 0: folio_mapping+0xa1/0x120 mm/util.c:701 folio_evictable mm/internal.h:478 [inline] lru_add+0x80/0x430 mm/swap.c:136 folio_batch_move_lru+0x177/0x230 mm/swap.c:168 __folio_batch_add_and_move mm/swap.c:196 [inline] folio_add_lru+0x14a/0x1f0 mm/swap.c:505 shmem_alloc_and_add_folio mm/shmem.c:1949 [inline] shmem_get_folio_gfp+0x7ab/0xd60 mm/shmem.c:2536 shmem_get_folio mm/shmem.c:2642 [inline] shmem_write_begin+0xa8/0x190 mm/shmem.c:3292 generic_perform_write+0x181/0x490 mm/filemap.c:4112 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3467 __kernel_write_iter+0x253/0x4c0 fs/read_write.c:619 dump_emit_page fs/coredump.c:1112 [inline] dump_user_range+0x407/0x8c0 fs/coredump.c:1186 elf_core_dump+0x1dc2/0x1f80 fs/binfmt_elf.c:2075 do_coredump+0x1dfd/0x27b0 fs/coredump.c:950 get_signal+0xd85/0xf70 kernel/signal.c:3019 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] irqentry_exit_to_user_mode+0x5e/0xa0 kernel/entry/common.c:184 irqentry_exit+0x12/0x50 kernel/entry/common.c:287 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0xffff8881005f0b58 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 4115 Comm: syz.0.233 Tainted: G W 6.16.0-rc3-syzkaller-00044-g7595b66ae9de #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================