Kernel bug: kernel BUG in resv_map_release (3)
Subsystem: mm
Status: open

Crash report:
------------[ cut here ]------------
kernel BUG at mm/hugetlb.c:1160!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 6024 Comm: syz.0.25 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:resv_map_release mm/hugetlb.c:1160 [inline]
RIP: 0010:resv_map_release+0x1e2/0x280 mm/hugetlb.c:1145
Code: 5a 9d ff 48 85 db 75 1c e8 7b 5f 9d ff 48 8b 3c 24 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f e9 74 79 fa ff e8 5f 5f 9d ff 90 <0f> 0b 4c 89 f7 e8 04 ed 05 00 e9 38 ff ff ff 48 89 ef e8 07 ec 05
RSP: 0018:ffffc90003e2f8e0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff821fae1b
RDX: ffff888026662480 RSI: ffffffff821fae41 RDI: 0000000000000007
RBP: ffff88807eb01c60 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88807eb01c60
R13: ffff88807eb01c60 R14: ffff88807eb01c60 R15: ffff888140e99588
FS:  0000000000000000(0000) GS:ffff888124b08000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000a00000 CR3: 0000000028198000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 kref_put include/linux/kref.h:65 [inline]
 hugetlb_vm_op_close+0x494/0x5a0 mm/hugetlb.c:5415
 vma_close mm/internal.h:190 [inline]
 remove_vma+0x88/0x160 mm/vma.c:464
 exit_mmap+0x50a/0xb90 mm/mmap.c:1305
 __mmput+0x12a/0x410 kernel/fork.c:1133
 mmput+0x62/0x70 kernel/fork.c:1156
 exit_mm kernel/exit.c:582 [inline]
 do_exit+0x7c7/0x2bf0 kernel/exit.c:954
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1107
 get_signal+0x2671/0x26d0 kernel/signal.c:3034
 arch_do_signal_or_restart+0x8f/0x7c0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop+0x85/0x130 kernel/entry/common.c:40
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x426/0xfa0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f66f018f6c9
Code: Unable to access opcode bytes at 0x7f66f018f69f.
RSP: 002b:00007f66ef7fe0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007f66f03e6098 RCX: 00007f66f018f6c9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f66f03e609c
RBP: 00007f66f03e6090 R08: 00007f66f0f43000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f66f03e6128 R14: 00007fff466bb610 R15: 00007fff466bb6f8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:resv_map_release mm/hugetlb.c:1160 [inline]
RIP: 0010:resv_map_release+0x1e2/0x280 mm/hugetlb.c:1145
Code: 5a 9d ff 48 85 db 75 1c e8 7b 5f 9d ff 48 8b 3c 24 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f e9 74 79 fa ff e8 5f 5f 9d ff 90 <0f> 0b 4c 89 f7 e8 04 ed 05 00 e9 38 ff ff ff 48 89 ef e8 07 ec 05
RSP: 0018:ffffc90003e2f8e0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff821fae1b
RDX: ffff888026662480 RSI: ffffffff821fae41 RDI: 0000000000000007
RBP: ffff88807eb01c60 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88807eb01c60
R13: ffff88807eb01c60 R14: ffff88807eb01c60 R15: ffff888140e99588
FS:  0000000000000000(0000) GS:ffff888124a08000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000a00000 CR3: 00000000217b9000 CR4: 00000000003526f0