================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea000490f398 of 8 bytes by task 15811 on cpu 1: page_cache_delete_batch mm/filemap.c:309 [inline] delete_from_page_cache_batch+0x308/0x700 mm/filemap.c:335 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:327 truncate_inode_pages+0x24/0x30 mm/truncate.c:407 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x25b/0x270 block/bdev.c:172 sb_set_blocksize block/bdev.c:181 [inline] sb_min_blocksize+0x63/0xe0 block/bdev.c:197 ext4_load_super fs/ext4/super.c:5027 [inline] __ext4_fill_super fs/ext4/super.c:5248 [inline] ext4_fill_super+0x38b/0x3650 fs/ext4/super.c:5722 get_tree_bdev_flags+0x29f/0x310 fs/super.c:1636 get_tree_bdev+0x1f/0x30 fs/super.c:1659 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5754 vfs_get_tree+0x56/0x1e0 fs/super.c:1814 do_new_mount+0x227/0x690 fs/namespace.c:3560 path_mount+0x49b/0xb30 fs/namespace.c:3887 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:4088 __x64_sys_mount+0x67/0x80 fs/namespace.c:4088 x64_sys_call+0x2c84/0x2dc0 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 0xffffea000490f398 of 8 bytes by task 3537 on cpu 0: folio_mapping+0xa0/0x120 mm/util.c:859 folio_evictable mm/internal.h:437 [inline] lru_add+0x89/0x440 mm/swap.c:136 folio_batch_move_lru+0x15f/0x230 mm/swap.c:168 lru_add_drain_cpu+0x7c/0x260 mm/swap.c:642 lru_add_drain mm/swap.c:730 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1051 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x35b/0xa70 mm/shmem.c:1112 shmem_truncate_range mm/shmem.c:1224 [inline] shmem_evict_inode+0x14d/0x530 mm/shmem.c:1352 evict+0x2f0/0x570 fs/inode.c:796 iput_final fs/inode.c:1946 [inline] iput+0x42a/0x5b0 fs/inode.c:1972 dentry_unlink_inode+0x24f/0x260 fs/dcache.c:440 __dentry_kill+0x18b/0x4c0 fs/dcache.c:643 dput+0x5c/0xd0 fs/dcache.c:885 do_renameat2+0x749/0xa70 fs/namei.c:5228 __do_sys_rename fs/namei.c:5273 [inline] __se_sys_rename fs/namei.c:5271 [inline] __x64_sys_rename+0x58/0x70 fs/namei.c:5271 x64_sys_call+0x2b1c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:83 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 value changed: 0xffff8881004c1e18 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3537 Comm: udevd Not tainted 6.13.0-syzkaller-09950-g60c828cf80c0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 ==================================================================