================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004dfba98 of 8 bytes by task 4608 on cpu 0: page_cache_delete_batch mm/filemap.c:309 [inline] delete_from_page_cache_batch+0x308/0x700 mm/filemap.c:335 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:327 truncate_inode_pages+0x24/0x30 mm/truncate.c:407 kill_bdev block/bdev.c:91 [inline] blkdev_flush_mapping+0xa5/0x1a0 block/bdev.c:670 blkdev_put_whole block/bdev.c:677 [inline] bdev_release+0x2f9/0x420 block/bdev.c:1102 blkdev_release+0x15/0x20 block/fops.c:660 __fput+0x2ac/0x640 fs/file_table.c:448 ____fput+0x1c/0x30 fs/file_table.c:476 task_work_run+0x13a/0x1a0 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0004dfba98 of 8 bytes by task 9576 on cpu 1: folio_mapping+0xa0/0x120 mm/util.c:859 folio_evictable mm/internal.h:437 [inline] lru_add+0x89/0x440 mm/swap.c:136 folio_batch_move_lru+0x15f/0x230 mm/swap.c:168 __folio_batch_add_and_move mm/swap.c:196 [inline] folio_add_lru+0x145/0x1f0 mm/swap.c:505 folio_add_lru_vma+0x48/0x60 mm/swap.c:524 do_anonymous_page mm/memory.c:4926 [inline] do_pte_missing mm/memory.c:4045 [inline] handle_pte_fault mm/memory.c:5889 [inline] __handle_mm_fault mm/memory.c:6032 [inline] handle_mm_fault+0x24d8/0x2ac0 mm/memory.c:6201 do_user_addr_fault arch/x86/mm/fault.c:1337 [inline] handle_page_fault arch/x86/mm/fault.c:1480 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1538 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0xffff8881004c17d8 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 9576 Comm: syz.0.1961 Not tainted 6.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 ==================================================================