================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea000512e498 of 8 bytes by task 3404 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] blkdev_flush_mapping+0xc2/0x1c0 block/bdev.c:638 blkdev_put_whole block/bdev.c:669 [inline] bdev_release+0x3f6/0x540 block/bdev.c:985 blkdev_release+0x25/0x30 block/fops.c:631 __fput+0x299/0x630 fs/file_table.c:376 __fput_sync+0x44/0x50 fs/file_table.c:461 __do_sys_close fs/open.c:1554 [inline] __se_sys_close+0xfa/0x1a0 fs/open.c:1539 __x64_sys_close+0x1f/0x30 fs/open.c:1539 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 0xffffea000512e498 of 8 bytes by task 3170 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_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:2633 [inline] process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706 worker_thread+0x525/0x730 kernel/workqueue.c:2787 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:243 value changed: 0xffff888100631198 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3170 Comm: kworker/0:4 Not tainted 6.8.0-rc6-syzkaller-00120-g87adedeba51a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: mm_percpu_wq lru_add_drain_per_cpu ==================================================================