================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004585898 of 8 bytes by task 3699 on cpu 1: page_cache_delete_batch mm/filemap.c:318 [inline] delete_from_page_cache_batch+0x308/0x700 mm/filemap.c:344 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:343 truncate_inode_pages+0x24/0x30 mm/truncate.c:423 kill_bdev block/bdev.c:91 [inline] blkdev_flush_mapping+0xa5/0x1a0 block/bdev.c:671 blkdev_put_whole block/bdev.c:678 [inline] bdev_release+0x2f9/0x420 block/bdev.c:1103 blkdev_release+0x15/0x20 block/fops.c:639 __fput+0x17a/0x6d0 fs/file_table.c:431 __fput_sync+0x43/0x60 fs/file_table.c:516 __do_sys_close fs/open.c:1567 [inline] __se_sys_close+0xf9/0x1a0 fs/open.c:1552 __x64_sys_close+0x1f/0x30 fs/open.c:1552 x64_sys_call+0x25cb/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:4 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0004585898 of 8 bytes by task 3719 on cpu 0: folio_mapping+0xa0/0x120 mm/util.c:855 folio_evictable mm/internal.h:389 [inline] lru_add+0x89/0x440 mm/swap.c:181 folio_batch_move_lru+0x15f/0x230 mm/swap.c:213 lru_add_drain_cpu+0x7c/0x260 mm/swap.c:661 lru_add_drain+0x26/0x80 mm/swap.c:743 exit_mmap+0x158/0x690 mm/mmap.c:1869 __mmput+0x28/0x1b0 kernel/fork.c:1347 mmput+0x4c/0x60 kernel/fork.c:1369 exit_mm+0xe4/0x190 kernel/exit.c:571 do_exit+0x55e/0x17f0 kernel/exit.c:926 do_group_exit+0x102/0x150 kernel/exit.c:1088 get_signal+0xf2a/0x1070 kernel/signal.c:2917 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x59/0x130 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff888100630518 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3719 Comm: syz.3.113 Not tainted 6.12.0-rc4-syzkaller-00045-gd12937763990 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================