folios_put_refs+0x76c/0x860 mm/swap.c:987 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:373 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:380 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:472 exit_mmap+0x52f/0xd50 mm/mmap.c:1270 __mmput+0x115/0x3c0 kernel/fork.c:1350 exit_mm+0x220/0x310 kernel/exit.c:570 do_exit+0x9b2/0x28e0 kernel/exit.c:925 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ WARNING: CPU: 1 PID: 10622 at ./include/linux/mm_inline.h:265 lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265 Modules linked in: CPU: 1 UID: 0 PID: 10622 Comm: syz-executor Not tainted 6.13.0-rc1-next-20241205-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265 Code: 44 89 c2 ff ba 01 00 00 00 e9 8b fa ff ff e8 35 89 c2 ff 4c 89 ff 48 c7 c6 c0 c8 13 8c e8 c6 41 0c 00 c6 05 f1 32 27 0e 01 90 <0f> 0b 90 e9 82 f6 ff ff 89 d9 80 e1 07 38 c1 0f 8c 19 f7 ff ff 48 RSP: 0000:ffffc900037573e0 EFLAGS: 00010046 RAX: 33e7150af62d2300 RBX: ffffea00012ff308 RCX: ffffc90003756f03 RDX: 0000000000000005 RSI: ffffffff8c0aa440 RDI: ffffffff8c5fbe80 RBP: ffffc900037574d8 R08: ffffffff9019d9b7 R09: 1ffffffff2033b36 R10: dffffc0000000000 R11: fffffbfff2033b37 R12: 0000000000000000 R13: 1ffffd400025fe60 R14: 0000020000000000 R15: ffffea00012ff300 FS: 000055556be55500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd9b5111520 CR3: 000000004640c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lruvec_add_folio include/linux/mm_inline.h:352 [inline] lru_add+0x704/0xdb0 mm/swap.c:154 folio_batch_move_lru+0x26b/0x420 mm/swap.c:168 __folio_batch_add_and_move+0x5bb/0xd70 mm/swap.c:196 wp_page_copy mm/memory.c:3504 [inline] do_wp_page+0x1cb1/0x49b0 mm/memory.c:3828 handle_pte_fault+0xfa5/0x5ee0 mm/memory.c:5888 __handle_mm_fault mm/memory.c:6015 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6183 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x459/0x8b0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7fd9b4f3eb87 Code: 00 00 00 80 3d b1 dc d3 00 00 0f 84 84 00 00 00 48 c7 c0 d8 ff ff ff c7 05 aa dc d3 00 00 00 00 00 64 48 8b 08 48 85 c9 74 0b <48> c7 81 80 08 00 00 01 00 00 00 48 c7 05 83 dc d3 00 00 00 00 00 RSP: 002b:00007ffeb2a14368 EFLAGS: 00010206 RAX: ffffffffffffffd8 RBX: 0000000000000000 RCX: 00007fd9b5110ca0 RDX: 0000000000000000 RSI: 0000000000000018 RDI: 000055556be557e0 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 000055556be557d0 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000002d277 R14: 000000000002d262 R15: 00007ffeb2a144f0