================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004ddc8d8 of 8 bytes by task 6749 on cpu 0: page_cache_delete_batch mm/filemap.c:313 [inline] delete_from_page_cache_batch+0x320/0x760 mm/filemap.c:339 truncate_inode_pages_range+0x1bd/0x6a0 mm/truncate.c:368 truncate_inode_pages+0x24/0x30 mm/truncate.c:448 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:5099 [inline] __ext4_fill_super fs/ext4/super.c:5227 [inline] ext4_fill_super+0xa8e/0x3940 fs/ext4/super.c:5703 get_tree_bdev+0x272/0x300 fs/super.c:1577 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735 vfs_get_tree+0x51/0x1b0 fs/super.c:1750 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 0xffffea0004ddc8d8 of 8 bytes by task 3190 on cpu 1: folio_mapping+0x92/0x110 mm/util.c:772 folio_evictable mm/internal.h:162 [inline] lru_add_fn+0x8d/0x440 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 kernel/workqueue.c:2630 [inline] process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2703 worker_thread+0x525/0x730 kernel/workqueue.c:2784 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 value changed: 0xffff888100481e18 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3190 Comm: kworker/1:5 Not tainted 6.5.0-syzkaller-11329-g708283abf896 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: mm_percpu_wq lru_add_drain_per_cpu ==================================================================