================================================================== BUG: KCSAN: data-race in __delete_from_swap_cache / folio_mapping write to 0xffffea0004c597e8 of 8 bytes by task 28369 on cpu 0: __delete_from_swap_cache+0x1f2/0x290 mm/swap_state.c:161 delete_from_swap_cache+0x72/0xe0 mm/swap_state.c:241 folio_free_swap+0x19f/0x1c0 mm/swapfile.c:1593 free_swap_cache+0x110/0x140 mm/swap_state.c:290 wp_page_copy mm/memory.c:3404 [inline] do_wp_page+0x18e2/0x22b0 mm/memory.c:3683 handle_pte_fault mm/memory.c:5396 [inline] __handle_mm_fault mm/memory.c:5523 [inline] handle_mm_fault+0xb9b/0x2a80 mm/memory.c:5688 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffffea0004c597e8 of 8 bytes by task 3091 on cpu 1: folio_mapping+0xd2/0x110 mm/util.c:797 folio_evictable mm/internal.h:353 [inline] lru_add_fn+0x8d/0x430 mm/swap.c:184 folio_batch_move_lru+0x20c/0x2c0 mm/swap.c:220 lru_add_drain_cpu+0x77/0x260 mm/swap.c:657 lru_add_drain+0x26/0x80 mm/swap.c:757 swap_cluster_readahead+0x364/0x3f0 mm/swap_state.c:694 shmem_swapin_cluster mm/shmem.c:1576 [inline] shmem_swapin_folio+0x246/0x760 mm/shmem.c:1885 shmem_get_folio_gfp+0x278/0xb70 mm/shmem.c:1991 shmem_fault+0x100/0x260 mm/shmem.c:2255 __do_fault+0xb6/0x200 mm/memory.c:4562 do_read_fault mm/memory.c:4926 [inline] do_fault mm/memory.c:5056 [inline] do_pte_missing mm/memory.c:3903 [inline] handle_pte_fault mm/memory.c:5380 [inline] __handle_mm_fault mm/memory.c:5523 [inline] handle_mm_fault+0xdeb/0x2a80 mm/memory.c:5688 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0x0000000000000c36 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3091 Comm: syz-fuzzer Tainted: G W 6.10.0-rc2-syzkaller-00010-g2ab795141095 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ==================================================================