------------[ cut here ]------------ page_counter underflow: -512 nr_pages=512 WARNING: CPU: 0 PID: 25436 at mm/page_counter.c:60 page_counter_cancel+0x110/0x170 mm/page_counter.c:60 Modules linked in: CPU: 0 UID: 0 PID: 25436 Comm: syz.3.4625 Not tainted 6.15.0-rc6-syzkaller-00105-g088d13246a46 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:page_counter_cancel+0x110/0x170 mm/page_counter.c:60 Code: e8 f5 87 94 ff 45 84 ed 75 24 e8 0b 8d 94 ff c6 05 83 5c 47 0e 01 90 48 c7 c7 20 bc 9d 8b 4c 89 e2 48 89 ee e8 e1 6f 54 ff 90 <0f> 0b 90 90 e8 e7 8c 94 ff be 08 00 00 00 48 89 df e8 0a 1a f9 ff RSP: 0018:ffffc9000474f7d0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888147309380 RCX: ffffffff817a94a8 RDX: ffff88807e495a00 RSI: ffffffff817a94b5 RDI: 0000000000000001 RBP: fffffffffffffe00 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: fffffffffffea7f8 R12: 0000000000000200 R13: 0000000000000000 R14: 0000000000000001 R15: ffff888027711a50 FS: 00007fb39b13c6c0(0000) GS:ffff8881249ea000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff0f0e777e8 CR3: 0000000034346000 CR4: 00000000003526f0 Call Trace: page_counter_uncharge+0x32/0x70 mm/page_counter.c:184 hugetlb_cgroup_uncharge_counter+0xd6/0x410 mm/hugetlb_cgroup.c:427 hugetlb_vm_op_close+0x3eb/0x5a0 mm/hugetlb.c:5396 vma_close mm/internal.h:190 [inline] vms_clean_up_area mm/vma.c:1206 [inline] __mmap_prepare mm/vma.c:2340 [inline] __mmap_region+0x59b/0x27c0 mm/vma.c:2506 mmap_region+0x1ab/0x3f0 mm/vma.c:2597 do_mmap+0xd8e/0x11b0 mm/mmap.c:561 vm_mmap_pgoff+0x281/0x450 mm/util.c:579 ksys_mmap_pgoff+0x7d/0x5c0 mm/mmap.c:607 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb39a38e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb39b13c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fb39a5b5fa0 RCX: 00007fb39a38e969 RDX: 0000000000000003 RSI: 0000000002020009 RDI: 0000000000000000 RBP: 00007fb39a410ab1 R08: fffffffffffffffa R09: 0000000000008000 R10: 0800000000000eb1 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb39a5b5fa0 R15: 00007ffd6d8ba238