------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 0 PID: 42 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210 lib/refcount.c:31 Modules linked in: CPU: 0 PID: 42 Comm: kcompactd0 Not tainted 6.9.0-rc4-syzkaller-00113-g2668e3ae2ef3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:refcount_warn_saturate+0x1ed/0x210 lib/refcount.c:31 Code: 8b e8 97 6f d3 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 c8 9a 10 fd c6 05 c1 63 09 0b 01 90 48 c7 c7 c0 ba 6e 8b e8 74 6f d3 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 e2 17 6d fd e9 44 fe ff ff RSP: 0018:ffffc9000068f350 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81512be9 RDX: ffff888018592440 RSI: ffffffff81512bf6 RDI: 0000000000000001 RBP: ffff88801140471c R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88801140471c R13: 0000000000000000 R14: 0000000000e001fc R15: ffff8880161a57c8 FS: 0000000000000000(0000) GS:ffff88802c200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559a7e480278 CR3: 000000001fc54000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_dec include/linux/refcount.h:336 [inline] refcount_dec include/linux/refcount.h:351 [inline] dec_stack_record_count mm/page_owner.c:228 [inline] __reset_page_owner+0x2ea/0x370 mm/page_owner.c:266 reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347 free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487 __folio_put_small mm/swap.c:119 [inline] __folio_put+0x166/0x1f0 mm/swap.c:142 folio_put include/linux/mm.h:1506 [inline] migrate_folio_done+0x27a/0x320 mm/migrate.c:1106 migrate_folio_move mm/migrate.c:1329 [inline] migrate_pages_batch+0x18a4/0x2c60 mm/migrate.c:1778 migrate_pages_sync mm/migrate.c:1844 [inline] migrate_pages+0x1bb2/0x2880 mm/migrate.c:1953 compact_zone+0x1f68/0x4280 mm/compaction.c:2659 compact_node+0x1a2/0x2d0 mm/compaction.c:2923 kcompactd+0x76e/0xde0 mm/compaction.c:3221 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244