================================================================== BUG: KCSAN: data-race in __delete_from_swap_cache / folio_mapping write to 0xffffea00047ab568 of 8 bytes by task 21070 on cpu 0: __delete_from_swap_cache+0x1f0/0x290 mm/swap_state.c:163 delete_from_swap_cache+0x72/0xe0 mm/swap_state.c:243 shmem_swapin_folio+0xd80/0xe80 mm/shmem.c:2410 shmem_get_folio_gfp+0x26e/0xd90 mm/shmem.c:2478 shmem_fault+0xfa/0x250 mm/shmem.c:2746 __do_fault+0xb6/0x200 mm/memory.c:4990 do_read_fault mm/memory.c:5410 [inline] do_fault mm/memory.c:5544 [inline] do_pte_missing mm/memory.c:4060 [inline] handle_pte_fault mm/memory.c:5907 [inline] __handle_mm_fault mm/memory.c:6050 [inline] handle_mm_fault+0xe98/0x2ac0 mm/memory.c:6219 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0xf6a/0x2350 mm/gup.c:1491 populate_vma_page_range mm/gup.c:1929 [inline] __mm_populate+0x25b/0x3b0 mm/gup.c:2032 mm_populate include/linux/mm.h:3386 [inline] vm_mmap_pgoff+0x224/0x2d0 mm/util.c:580 ksys_mmap_pgoff+0x286/0x330 mm/mmap.c:607 x64_sys_call+0x1940/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:10 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 0xffffea00047ab568 of 8 bytes by task 21065 on cpu 1: folio_mapping+0xdb/0x120 mm/util.c:857 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 lru_add_drain_cpu+0x7c/0x260 mm/swap.c:642 lru_add_drain+0x26/0x80 mm/swap.c:730 swap_cluster_readahead+0x365/0x3f0 mm/swap_state.c:699 shmem_swapin_cluster mm/shmem.c:1705 [inline] shmem_swapin_folio+0x73f/0xe80 mm/shmem.c:2336 shmem_get_folio_gfp+0x26e/0xd90 mm/shmem.c:2478 shmem_get_folio mm/shmem.c:2651 [inline] shmem_file_splice_read+0x18a/0x5d0 mm/shmem.c:3554 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x269/0x670 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x398/0x660 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64 fs/read_write.c:1410 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1410 x64_sys_call+0xfbd/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:41 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 value changed: 0x00000000000002a1 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 21065 Comm: syz.1.6256 Not tainted 6.14.0-rc6-syzkaller-00003-g4d872d51bc9d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================