================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004bdf918 of 8 bytes by task 19572 on cpu 1: page_cache_delete_batch mm/filemap.c:322 [inline] delete_from_page_cache_batch+0x35c/0x780 mm/filemap.c:353 truncate_inode_pages_range+0x1d5/0xa00 mm/truncate.c:336 truncate_inode_pages+0x20/0x30 mm/truncate.c:435 kill_bdev block/bdev.c:78 [inline] set_blocksize+0x24e/0x270 block/bdev.c:158 sb_set_blocksize+0x2c/0xa0 block/bdev.c:167 ext4_fill_super+0x2287/0x78f0 fs/ext4/super.c:4333 mount_bdev+0x1e8/0x290 fs/super.c:1370 ext4_mount+0x2d/0x40 fs/ext4/super.c:6523 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610 vfs_get_tree+0x4a/0x1a0 fs/super.c:1500 do_new_mount fs/namespace.c:2988 [inline] path_mount+0x11cf/0x1c40 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffea0004bdf918 of 8 bytes by task 1844 on cpu 0: folio_mapping+0x92/0x120 mm/util.c:722 folio_evictable mm/internal.h:112 [inline] __pagevec_lru_add_fn+0x81/0x380 mm/swap.c:1043 __pagevec_lru_add+0x1c3/0x270 mm/swap.c:1071 lru_add_drain_cpu+0x6a/0x260 mm/swap.c:613 lru_add_drain mm/swap.c:717 [inline] __pagevec_release+0x4b/0xc0 mm/swap.c:997 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x23d/0xa00 mm/truncate.c:339 truncate_inode_pages+0x20/0x30 mm/truncate.c:435 kill_bdev block/bdev.c:78 [inline] blkdev_flush_mapping+0xde/0x230 block/bdev.c:661 blkdev_put_whole block/bdev.c:692 [inline] blkdev_put+0x394/0x4a0 block/bdev.c:957 kill_block_super+0x7b/0x90 fs/super.c:1400 deactivate_locked_super+0x6a/0xb0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1137 __cleanup_mnt+0x15/0x20 fs/namespace.c:1144 task_work_run+0x8e/0x110 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffff888100405538 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1844 Comm: syz-executor.1 Not tainted 5.16.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================