------------[ cut here ]------------ page_counter underflow: -512 nr_pages=512 WARNING: mm/page_counter.c:61 at page_counter_cancel mm/page_counter.c:60 [inline], CPU#0: syz.2.5975/28586 WARNING: mm/page_counter.c:61 at page_counter_uncharge+0xd2/0x150 mm/page_counter.c:184, CPU#0: syz.2.5975/28586 Modules linked in: CPU: 0 UID: 0 PID: 28586 Comm: syz.2.5975 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 RIP: 0010:page_counter_cancel mm/page_counter.c:60 [inline] RIP: 0010:page_counter_uncharge+0xd8/0x150 mm/page_counter.c:184 Code: f7 e8 7c 88 f8 ff 4d 8b 36 4d 85 f6 74 6e e8 cf 3f 8e ff e9 6c ff ff ff e8 c5 3f 8e ff 48 8d 3d 2e ea df 0d 4c 89 fe 48 89 da <67> 48 0f b9 3a 4c 89 f7 be 08 00 00 00 e8 e6 8a f8 ff 4c 89 f0 48 RSP: 0018:ffffc90005297650 EFLAGS: 00010093 RAX: ffffffff82376eab RBX: 0000000000000200 RCX: ffff888055618000 RDX: 0000000000000200 RSI: fffffffffffffe00 RDI: ffffffff901758e0 RBP: fffffffffffffe00 R08: ffff888057b80387 R09: 1ffff1100af70070 R10: dffffc0000000000 R11: ffffed100af70071 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff888057b80380 R15: fffffffffffffe00 FS: 00007f436efd56c0(0000) GS:ffff88812545a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f436efd4ff8 CR3: 000000005abe8000 CR4: 00000000003526f0 Call Trace: __hugetlb_cgroup_uncharge_folio+0x15e/0x510 mm/hugetlb_cgroup.c:354 free_huge_folio+0xaef/0x11e0 mm/hugetlb.c:1782 folios_put_refs+0x553/0x8d0 mm/swap.c:983 folio_batch_release include/linux/pagevec.h:101 [inline] remove_inode_hugepages+0xf50/0x11a0 fs/hugetlbfs/inode.c:608 hugetlbfs_evict_inode+0xaf/0x260 fs/hugetlbfs/inode.c:623 evict+0x61e/0xb10 fs/inode.c:846 __dentry_kill+0x1a2/0x5e0 fs/dcache.c:670 finish_dput+0xc9/0x480 fs/dcache.c:879 __fput+0x691/0xa70 fs/file_table.c:477 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4370d9c799 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f436efd5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: 0000200000000000 RBX: 00007f4371016090 RCX: 00007f4370d9c799 RDX: 0000000000000003 RSI: 0000000000ff5000 RDI: 0000200000000000 RBP: 00007f4370e32c99 R08: ffffffffffffffff R09: 0000000000000000 R10: 00020000000ec071 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4371016128 R14: 00007f4371016090 R15: 00007ffd4b26feb8 ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 7c 88 jl 0xffffff8c 4: f8 clc 5: ff 4d 8b decl -0x75(%rbp) 8: 36 4d 85 f6 ss test %r14,%r14 c: 74 6e je 0x7c e: e8 cf 3f 8e ff call 0xff8e3fe2 13: e9 6c ff ff ff jmp 0xffffff84 18: e8 c5 3f 8e ff call 0xff8e3fe2 1d: 48 8d 3d 2e ea df 0d lea 0xddfea2e(%rip),%rdi # 0xddfea52 24: 4c 89 fe mov %r15,%rsi 27: 48 89 da mov %rbx,%rdx * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 4c 89 f7 mov %r14,%rdi 32: be 08 00 00 00 mov $0x8,%esi 37: e8 e6 8a f8 ff call 0xfff88b22 3c: 4c 89 f0 mov %r14,%rax 3f: 48 rex.W