================================================================== BUG: KCSAN: data-race in folio_mapping / page_cache_delete write to 0xffffea0004ea2f98 of 8 bytes by task 28055 on cpu 0: page_cache_delete+0x33e/0x390 mm/filemap.c:143 __filemap_remove_folio+0x3b/0xf0 mm/filemap.c:223 filemap_remove_folio+0x69/0x120 mm/filemap.c:255 truncate_inode_folio+0x204/0x210 mm/truncate.c:196 truncate_inode_pages_range+0x832/0xae0 mm/truncate.c:426 truncate_inode_pages+0x20/0x30 mm/truncate.c:452 kill_bdev block/bdev.c:75 [inline] set_blocksize+0x24e/0x270 block/bdev.c:151 sb_set_blocksize block/bdev.c:160 [inline] sb_min_blocksize+0x92/0x110 block/bdev.c:176 __ext4_fill_super fs/ext4/super.c:4346 [inline] ext4_fill_super+0x3b7/0x5010 fs/ext4/super.c:5517 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1323 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5547 vfs_get_tree+0x49/0x190 fs/super.c:1530 do_new_mount+0x200/0x650 fs/namespace.c:3040 path_mount+0x4ad/0xbb0 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea0004ea2f98 of 8 bytes by task 1854 on cpu 1: folio_mapping+0x8e/0x110 mm/util.c:806 folio_evictable mm/internal.h:136 [inline] lru_add_fn+0x12e/0x520 mm/swap.c:210 folio_batch_move_lru+0x1e1/0x2a0 mm/swap.c:246 lru_add_drain_cpu+0x73/0x250 mm/swap.c:626 lru_add_drain+0x21/0x60 mm/swap.c:730 __pagevec_release+0x3a/0x70 mm/swap.c:1029 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x442/0xae0 mm/truncate.c:373 truncate_inode_pages+0x20/0x30 mm/truncate.c:452 kill_bdev block/bdev.c:75 [inline] blkdev_flush_mapping+0xc0/0x1c0 block/bdev.c:661 blkdev_put_whole block/bdev.c:692 [inline] blkdev_put+0x32d/0x420 block/bdev.c:952 kill_block_super+0x7b/0x90 fs/super.c:1430 deactivate_locked_super+0x6a/0xb0 fs/super.c:332 deactivate_super+0x85/0x90 fs/super.c:363 cleanup_mnt+0x2b6/0x320 fs/namespace.c:1186 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193 task_work_run+0x8e/0x110 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff8881023b25c8 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1854 Comm: syz-executor.5 Not tainted 6.0.0-rc3-syzkaller-00328-g42cf58c272ee-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 ================================================================== EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem. EXT4-fs (loop5): unmounting filesystem.