================================================================== BUG: KCSAN: data-race in __delete_from_swap_cache / folio_mapping write to 0xffffea0004c573a8 of 8 bytes by task 4952 on cpu 1: __delete_from_swap_cache+0x1e8/0x280 mm/swap_state.c:161 delete_from_swap_cache+0x73/0xe0 mm/swap_state.c:180 folio_free_swap+0x188/0x1a0 mm/swapfile.c:1785 do_swap_page+0x1507/0x2430 mm/memory.c:4806 handle_pte_fault mm/memory.c:6072 [inline] __handle_mm_fault mm/memory.c:6212 [inline] handle_mm_fault+0x9a5/0x2be0 mm/memory.c:6381 faultin_page mm/gup.c:1186 [inline] __get_user_pages+0x1036/0x1fb0 mm/gup.c:1488 populate_vma_page_range mm/gup.c:1926 [inline] __mm_populate+0x243/0x3a0 mm/gup.c:2029 do_mlock+0x47f/0x520 mm/mlock.c:655 __do_sys_mlock mm/mlock.c:663 [inline] __se_sys_mlock mm/mlock.c:661 [inline] __x64_sys_mlock+0x36/0x50 mm/mlock.c:661 x64_sys_call+0x28f4/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:150 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0004c573a8 of 8 bytes by task 4950 on cpu 0: folio_mapping+0xdd/0x120 mm/util.c:699 folio_evictable mm/internal.h:478 [inline] lru_add+0x80/0x430 mm/swap.c:136 folio_batch_move_lru+0x174/0x230 mm/swap.c:168 lru_add_drain_cpu+0x77/0x250 mm/swap.c:642 lru_add_drain+0x25/0x70 mm/swap.c:730 swap_cluster_readahead+0x35a/0x3e0 mm/swap_state.c:629 swapin_readahead+0xde/0x6f0 mm/swap_state.c:811 do_swap_page+0x301/0x2430 mm/memory.c:4603 handle_pte_fault mm/memory.c:6072 [inline] __handle_mm_fault mm/memory.c:6212 [inline] handle_mm_fault+0x9a5/0x2be0 mm/memory.c:6381 do_user_addr_fault+0x3fe/0x1090 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x62/0xa0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 fault_in_readable+0xad/0x170 mm/gup.c:-1 fault_in_iov_iter_readable+0x129/0x210 lib/iov_iter.c:94 generic_perform_write+0x3cf/0x490 mm/filemap.c:4161 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3467 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x4a0/0x8e0 fs/read_write.c:686 ksys_write+0xda/0x1a0 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x40/0x50 fs/read_write.c:746 x64_sys_call+0x2cdd/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000000042e1 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 4950 Comm: syz.2.449 Not tainted 6.16.0-rc4-syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================