================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004614c18 of 8 bytes by task 17766 on cpu 0: page_cache_delete_batch mm/filemap.c:306 [inline] delete_from_page_cache_batch+0x316/0x700 mm/filemap.c:332 truncate_inode_pages_range+0x1c7/0x6c0 mm/truncate.c:376 truncate_inode_pages+0x24/0x30 mm/truncate.c:456 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x25b/0x270 block/bdev.c:175 sb_set_blocksize block/bdev.c:186 [inline] sb_min_blocksize+0xb7/0x140 block/bdev.c:201 ext4_load_super fs/ext4/super.c:5043 [inline] __ext4_fill_super fs/ext4/super.c:5264 [inline] ext4_fill_super+0x396/0x3580 fs/ext4/super.c:5726 get_tree_bdev_flags+0x2b4/0x330 fs/super.c:1636 get_tree_bdev+0x1f/0x30 fs/super.c:1659 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5758 vfs_get_tree+0x56/0x1e0 fs/super.c:1759 do_new_mount+0x246/0x6b0 fs/namespace.c:3879 path_mount+0x49b/0xb30 fs/namespace.c:4206 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount+0x28f/0x2e0 fs/namespace.c:4407 __x64_sys_mount+0x67/0x80 fs/namespace.c:4407 x64_sys_call+0xd11/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0004614c18 of 8 bytes by task 17531 on cpu 1: folio_mapping+0xa0/0x120 mm/util.c:701 folio_evictable mm/internal.h:480 [inline] lru_add+0x89/0x440 mm/swap.c:136 folio_batch_move_lru+0x161/0x230 mm/swap.c:168 lru_add_drain_cpu+0x7e/0x260 mm/swap.c:642 lru_add_drain mm/swap.c:730 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1049 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x238/0x6c0 mm/truncate.c:379 truncate_inode_pages+0x24/0x30 mm/truncate.c:456 kill_bdev block/bdev.c:91 [inline] blkdev_flush_mapping+0xa5/0x1a0 block/bdev.c:674 blkdev_put_whole block/bdev.c:681 [inline] bdev_release+0x2f9/0x420 block/bdev.c:1106 blkdev_release+0x15/0x20 block/fops.c:660 __fput+0x2ac/0x640 fs/file_table.c:465 ____fput+0x1c/0x30 fs/file_table.c:493 task_work_run+0x13c/0x1b0 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff888100631e18 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 17531 Comm: syz-executor Not tainted 6.14.0-syzkaller-13423-ga8662bcd2ff1 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================