================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237c2ab78 of 1 bytes by task 18007 on cpu 0: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x266/0x2b0 mm/swap.c:1033 folios_put include/linux/mm.h:1549 [inline] folio_batch_move_lru+0x202/0x230 mm/swap.c:222 folio_batch_add_and_move mm/swap.c:231 [inline] folio_add_lru+0x13e/0x1f0 mm/swap.c:526 shmem_alloc_and_add_folio mm/shmem.c:1843 [inline] shmem_get_folio_gfp+0x7ec/0xd80 mm/shmem.c:2188 shmem_fault+0x100/0x260 mm/shmem.c:2388 __do_fault+0xb6/0x200 mm/memory.c:4655 do_read_fault mm/memory.c:5061 [inline] do_fault mm/memory.c:5191 [inline] do_pte_missing mm/memory.c:3947 [inline] handle_pte_fault mm/memory.c:5521 [inline] __handle_mm_fault mm/memory.c:5664 [inline] handle_mm_fault+0xe8b/0x2a30 mm/memory.c:5832 faultin_page mm/gup.c:1194 [inline] __get_user_pages+0x499/0x10d0 mm/gup.c:1493 populate_vma_page_range mm/gup.c:1932 [inline] __mm_populate+0x25b/0x3b0 mm/gup.c:2035 mm_populate include/linux/mm.h:3430 [inline] vm_mmap_pgoff+0x1d6/0x290 mm/util.c:593 ksys_mmap_pgoff+0xd0/0x340 mm/mmap.c:1514 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 0xffff888237c2ab78 of 1 bytes by task 18013 on cpu 1: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:818 [inline] __lru_add_drain_all+0x12c/0x410 mm/swap.c:912 lru_cache_disable+0x1f/0x30 mm/swap.c:965 do_mbind mm/mempolicy.c:1305 [inline] kernel_mbind mm/mempolicy.c:1531 [inline] __do_sys_mbind mm/mempolicy.c:1605 [inline] __se_sys_mbind+0x4df/0x1160 mm/mempolicy.c:1601 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1601 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: 0x01 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 18013 Comm: syz.1.6297 Not tainted 6.11.0-rc6-syzkaller-00026-g88fac17500f4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ==================================================================