------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 3 PID: 6506 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210 lib/refcount.c:31 Modules linked in: CPU: 3 PID: 6506 Comm: syz-executor.0 Not tainted 6.9.0-rc1-syzkaller-00061-g8d025e2092e2 #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 d7 38 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 c8 ca 0f fd c6 05 fa fa 4c 0b 01 90 48 c7 c7 00 e5 8e 8b e8 b4 38 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 d2 f4 6a fd e9 44 fe ff ff RSP: 0018:ffffc90008a3edc8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149 RDX: ffff888025114880 RSI: ffffffff814fe156 RDI: 0000000000000001 RBP: ffff88801ecb9e3c R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88801ecb9e3c R13: 0000000000000000 R14: 0000000003c402b8 R15: ffff888016079958 FS: 000055556d976480(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 0000000012a9a000 CR4: 0000000000350ef0 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+0x1bd1/0x28a0 mm/migrate.c:1953 compact_zone+0x1f68/0x4280 mm/compaction.c:2659 compact_node+0x1a2/0x2d0 mm/compaction.c:2923 compact_nodes mm/compaction.c:2945 [inline] sysctl_compaction_handler mm/compaction.c:2996 [inline] sysctl_compaction_handler+0x145/0x220 mm/compaction.c:2983 proc_sys_call_handler+0x4cc/0x6f0 fs/proc/proc_sysctl.c:595 call_write_iter include/linux/fs.h:2108 [inline] iter_file_splice_write+0x906/0x10b0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x19b/0x6d0 fs/splice.c:1164 splice_direct_to_actor+0x346/0xa40 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x17e/0x250 fs/splice.c:1233 do_sendfile+0xaa8/0xdb0 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1356 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f6f7187dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffff44e0708 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f6f719abf80 RCX: 00007f6f7187dda9 RDX: 00000000200000c0 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f6f718ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000009 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000c27 R14: 00007f6f719abf80 R15: 00007f6f719abf80