================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0005056bd8 of 8 bytes by task 28450 on cpu 0: page_cache_delete_batch mm/filemap.c:313 [inline] delete_from_page_cache_batch+0x32d/0x750 mm/filemap.c:339 truncate_inode_pages_range+0x354/0x800 mm/truncate.c:369 truncate_inode_pages+0x24/0x30 mm/truncate.c:449 kill_bdev block/bdev.c:76 [inline] set_blocksize+0x26c/0x290 block/bdev.c:152 sb_set_blocksize+0x2d/0xb0 block/bdev.c:161 ext4_load_super fs/ext4/super.c:5093 [inline] __ext4_fill_super fs/ext4/super.c:5221 [inline] ext4_fill_super+0xa6c/0x38b0 fs/ext4/super.c:5696 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1318 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5728 vfs_get_tree+0x51/0x190 fs/super.c:1519 do_new_mount+0x203/0x660 fs/namespace.c:3335 path_mount+0x496/0xb30 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3861 __x64_sys_mount+0x67/0x80 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea0005056bd8 of 8 bytes by task 21 on cpu 1: folio_mapping+0x92/0x110 mm/util.c:775 folio_evictable mm/internal.h:156 [inline] lru_add_fn+0x92/0x450 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_and_bh_lrus_drain mm/swap.c:766 [inline] lru_add_drain_per_cpu+0x34/0x90 mm/swap.c:787 process_one_work+0x434/0x860 kernel/workqueue.c:2600 process_scheduled_works kernel/workqueue.c:2667 [inline] worker_thread+0x763/0xa10 kernel/workqueue.c:2756 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x2e/0x40 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 value changed: 0xffff8881004817e0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 21 Comm: kworker/1:0 Not tainted 6.5.0-rc7-syzkaller-00104-g4f9e7fabf864 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: mm_percpu_wq lru_add_drain_per_cpu ==================================================================