================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004d533d8 of 8 bytes by task 14679 on cpu 1: page_cache_delete_batch mm/filemap.c:308 [inline] delete_from_page_cache_batch+0x32a/0x710 mm/filemap.c:334 truncate_inode_pages_range+0x1bd/0x6a0 mm/truncate.c:359 truncate_inode_pages+0x24/0x30 mm/truncate.c:439 kill_bdev block/bdev.c:79 [inline] set_blocksize+0x26c/0x290 block/bdev.c:155 sb_set_blocksize block/bdev.c:164 [inline] sb_min_blocksize+0x83/0x110 block/bdev.c:180 fat_fill_super+0xf78/0x28e0 fs/fat/inode.c:1653 vfat_fill_super+0x30/0x40 fs/fat/namei_vfat.c:1200 mount_bdev+0x14f/0x1e0 fs/super.c:1663 vfat_mount+0x31/0x40 fs/fat/namei_vfat.c:1207 legacy_get_tree+0x74/0xd0 fs/fs_context.c:662 vfs_get_tree+0x53/0x1d0 fs/super.c:1784 do_new_mount+0x227/0x690 fs/namespace.c:3352 path_mount+0x496/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 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffffea0004d533d8 of 8 bytes by task 14658 on cpu 0: folio_mapping+0x92/0x110 mm/util.c:782 folio_evictable mm/internal.h:162 [inline] lru_add_fn+0x8d/0x430 mm/swap.c:181 folio_batch_move_lru+0x21e/0x2f0 mm/swap.c:217 lru_add_drain_cpu+0x77/0x270 mm/swap.c:652 lru_add_drain mm/swap.c:752 [inline] __folio_batch_release+0x5f/0xe0 mm/swap.c:1059 folio_batch_release include/linux/pagevec.h:83 [inline] invalidate_inode_pages2_range+0x692/0x720 mm/truncate.c:670 kiocb_invalidate_pages+0x1b1/0x1e0 mm/filemap.c:2716 __iomap_dio_rw+0x5ad/0x1090 fs/iomap/direct-io.c:638 iomap_dio_rw+0x40/0x90 fs/iomap/direct-io.c:748 ext4_dio_write_iter fs/ext4/file.c:577 [inline] ext4_file_write_iter+0xa8a/0xe10 fs/ext4/file.c:696 call_write_iter include/linux/fs.h:2085 [inline] iter_file_splice_write+0x5de/0x950 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x167/0x2c0 fs/splice.c:1164 splice_direct_to_actor+0x2fb/0x660 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x3b9/0x960 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0xffff888100631198 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 14658 Comm: syz-executor.1 Not tainted 6.8.0-rc4-syzkaller-00410-gc02197fc9076 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================