================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237c2ac68 of 1 bytes by task 15512 on cpu 0: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x26d/0x2b0 mm/swap.c:1001 folios_put include/linux/mm.h:1537 [inline] folio_batch_move_lru+0x202/0x230 mm/swap.c:220 __folio_batch_add_and_move mm/swap.c:241 [inline] folio_add_lru+0x145/0x1f0 mm/swap.c:527 shmem_alloc_and_add_folio mm/shmem.c:1872 [inline] shmem_get_folio_gfp+0x7d6/0xd90 mm/shmem.c:2335 shmem_fault+0xfa/0x250 mm/shmem.c:2536 __do_fault+0xb6/0x200 mm/memory.c:4876 do_read_fault mm/memory.c:5282 [inline] do_fault mm/memory.c:5416 [inline] do_pte_missing mm/memory.c:3965 [inline] handle_pte_fault mm/memory.c:5751 [inline] __handle_mm_fault mm/memory.c:5894 [inline] handle_mm_fault+0xe7f/0x2a80 mm/memory.c:6062 faultin_page mm/gup.c:1187 [inline] __get_user_pages+0xf2c/0x2670 mm/gup.c:1485 populate_vma_page_range mm/gup.c:1923 [inline] __mm_populate+0x25b/0x3b0 mm/gup.c:2026 mm_populate include/linux/mm.h:3371 [inline] vm_mmap_pgoff+0x1d6/0x290 mm/util.c:593 ksys_mmap_pgoff+0xd0/0x330 mm/mmap.c:542 x64_sys_call+0x1884/0x2d60 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 0xffff888237c2ac68 of 1 bytes by task 15513 on cpu 1: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:786 [inline] __lru_add_drain_all+0x136/0x3f0 mm/swap.c:880 lru_cache_disable+0x1f/0x30 mm/swap.c:933 do_mbind mm/mempolicy.c:1307 [inline] kernel_mbind mm/mempolicy.c:1533 [inline] __do_sys_mbind mm/mempolicy.c:1607 [inline] __se_sys_mbind+0x4df/0x1160 mm/mempolicy.c:1603 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1603 x64_sys_call+0x2b4d/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:238 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: 0x05 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 15513 Comm: syz.3.4615 Not tainted 6.12.0-rc2-syzkaller-00006-g87d6aab2389e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================