================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004b12998 of 8 bytes by task 19932 on cpu 1: page_cache_delete_batch mm/filemap.c:317 [inline] delete_from_page_cache_batch+0x309/0x710 mm/filemap.c:343 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:359 truncate_inode_pages+0x24/0x30 mm/truncate.c:439 kill_bdev block/bdev.c:90 [inline] set_blocksize+0x28f/0x2b0 block/bdev.c:172 sb_set_blocksize+0x2c/0xb0 block/bdev.c:181 ext4_load_super fs/ext4/super.c:5072 [inline] __ext4_fill_super fs/ext4/super.c:5200 [inline] ext4_fill_super+0xdca/0x39e0 fs/ext4/super.c:5676 get_tree_bdev+0x253/0x2e0 fs/super.c:1615 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5708 vfs_get_tree+0x56/0x1d0 fs/super.c:1780 do_new_mount+0x227/0x690 fs/namespace.c:3352 path_mount+0x49b/0xb30 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875 x64_sys_call+0x25c9/0x2d70 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 0xffffea0004b12998 of 8 bytes by task 19851 on cpu 0: folio_mapping+0x97/0x110 mm/util.c:799 folio_evictable mm/internal.h:353 [inline] lru_add_fn+0x8d/0x430 mm/swap.c:184 folio_batch_move_lru+0x20c/0x2c0 mm/swap.c:220 lru_add_drain_cpu+0x77/0x260 mm/swap.c:657 lru_add_drain mm/swap.c:757 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1081 folio_batch_release include/linux/pagevec.h:101 [inline] mpage_prepare_extent_to_map+0xaf2/0xb80 fs/ext4/inode.c:2505 ext4_do_writepages+0x6ea/0x2110 fs/ext4/inode.c:2632 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2768 do_writepages+0x1d8/0x480 mm/page-writeback.c:2634 filemap_fdatawrite_wbc+0xdb/0x100 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0xc8/0x170 mm/filemap.c:788 ext4_sync_file+0x134/0x6c0 fs/ext4/fsync.c:158 vfs_fsync_range+0x122/0x140 fs/sync.c:188 generic_write_sync include/linux/fs.h:2794 [inline] ext4_buffered_write_iter+0x338/0x380 fs/ext4/file.c:305 ext4_file_write_iter+0x29f/0xe30 __kernel_write_iter+0x24f/0x4d0 fs/read_write.c:523 dump_emit_page fs/coredump.c:893 [inline] dump_user_range+0x3a7/0x550 fs/coredump.c:954 elf_core_dump+0x1aeb/0x1c30 fs/binfmt_elf.c:2083 do_coredump+0xff6/0x1860 fs/coredump.c:767 get_signal+0xdc1/0x1080 kernel/signal.c:2894 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x59/0x130 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff888100630520 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 19851 Comm: syz-executor.1 Not tainted 6.10.0-rc2-syzkaller-00022-g32f88d65f01b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ==================================================================