================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004bb6a18 of 8 bytes by task 4151 on cpu 0: page_cache_delete_batch mm/filemap.c:317 [inline] delete_from_page_cache_batch+0x308/0x700 mm/filemap.c:343 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+0x258/0x270 block/bdev.c:173 sb_set_blocksize block/bdev.c:182 [inline] sb_min_blocksize+0x63/0xe0 block/bdev.c:198 ext4_load_super fs/ext4/super.c:5038 [inline] __ext4_fill_super fs/ext4/super.c:5259 [inline] ext4_fill_super+0x38b/0x3a10 fs/ext4/super.c:5733 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:5765 vfs_get_tree+0x56/0x1e0 fs/super.c:1814 do_new_mount+0x227/0x690 fs/namespace.c:3507 path_mount+0x49b/0xb30 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4034 __x64_sys_mount+0x67/0x80 fs/namespace.c:4034 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 0xffffea0004bb6a18 of 8 bytes by task 4142 on cpu 1: folio_mapping+0xa0/0x120 mm/util.c:847 folio_evictable mm/internal.h:435 [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:616 lru_add_drain mm/swap.c:698 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1019 folio_batch_release include/linux/pagevec.h:101 [inline] filemap_splice_read+0x7d4/0x910 mm/filemap.c:2973 ext4_file_splice_read+0x8f/0xb0 fs/ext4/file.c:158 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x269/0x670 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x398/0x660 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64 fs/read_write.c:1410 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1410 x64_sys_call+0xfbd/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:41 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: 0xffff8881004c0b58 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4142 Comm: syz.6.128 Not tainted 6.12.0-syzkaller-11677-g2ba9f676d0a2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================