================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folio_batch_move_lru write to 0xffff888237d29988 of 1 bytes by task 3104 on cpu 1: folio_batch_reinit include/linux/pagevec.h:48 [inline] folio_batch_move_lru+0x2bf/0x2f0 mm/swap.c:225 folio_batch_add_and_move mm/swap.c:234 [inline] folio_add_lru mm/swap.c:517 [inline] folio_add_lru_vma+0xf4/0x160 mm/swap.c:537 wp_page_copy mm/memory.c:3189 [inline] do_wp_page+0x10f8/0x1f40 mm/memory.c:3510 handle_pte_fault mm/memory.c:5054 [inline] __handle_mm_fault mm/memory.c:5179 [inline] handle_mm_fault+0xe5d/0x2dd0 mm/memory.c:5344 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2f7/0x6c0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 __put_user_8+0x11/0x20 arch/x86/lib/putuser.S:105 clear_rseq_cs kernel/rseq.c:257 [inline] rseq_ip_fixup kernel/rseq.c:291 [inline] __rseq_handle_notify_resume+0x2b9/0xbf0 kernel/rseq.c:329 rseq_handle_notify_resume include/linux/sched.h:2361 [inline] resume_user_mode_work include/linux/resume_user_mode.h:61 [inline] exit_to_user_mode_loop+0xcc/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x50/0x110 arch/x86/entry/common.c:88 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888237d29988 of 1 bytes by task 19568 on cpu 0: folio_batch_count include/linux/pagevec.h:53 [inline] cpu_needs_drain mm/swap.c:795 [inline] __lru_add_drain_all+0x137/0x420 mm/swap.c:889 lru_cache_disable+0x1f/0x20 mm/swap.c:942 do_pages_move mm/migrate.c:2183 [inline] kernel_move_pages mm/migrate.c:2445 [inline] __do_sys_move_pages mm/migrate.c:2459 [inline] __se_sys_move_pages+0x2ef/0x1560 mm/migrate.c:2454 __x64_sys_move_pages+0x78/0x90 mm/migrate.c:2454 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0f -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 19568 Comm: syz-executor.0 Not tainted 6.6.0-syzkaller-15601-g4bbdb725a36b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 ==================================================================