hugetlb_acct_memory mm/hugetlb.c:4757 [inline] hugetlb_reserve_pages+0x42e/0x600 mm/hugetlb.c:6746 hugetlbfs_file_mmap+0x133/0x250 fs/hugetlbfs/inode.c:167 call_mmap include/linux/fs.h:1876 [inline] mmap_region+0x2ac/0xb20 mm/mmap.c:2754 do_mmap+0x38b/0x550 mm/mmap.c:1354 vm_mmap_pgoff+0xe1/0x1f0 mm/util.c:543 ksys_mmap_pgoff+0xe3/0x200 mm/mmap.c:1400 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page_owner free stack trace missing ------------[ cut here ]------------ kernel BUG at mm/page_alloc.c:1107! invalid opcode: 0000 [#1] PREEMPT SMP CPU: 1 PID: 1851 Comm: syz-executor.0 Not tainted 6.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:free_pages_prepare mm/page_alloc.c:1107 [inline] RIP: 0010:__free_pages_ok+0x51a/0x520 mm/page_alloc.c:1266 Code: e9 b1 fb ff ff 48 c7 c6 d8 55 14 82 e8 5f c9 fc ff 0f 0b 45 31 c0 e9 f2 fe ff ff 48 c7 c6 d0 8e 14 82 4c 89 ef e8 46 c9 fc ff <0f> 0b 0f 1f 40 00 48 85 ff 41 56 41 55 41 54 55 48 89 fd 53 75 0c RSP: 0018:ffffc90001b4bad0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000009 RCX: ffffc90001b4ba64 RDX: 0000000000000000 RSI: ffffffff820d76b5 RDI: ffffffff820f2a8e RBP: 0200000000000040 R08: 0000000000000000 R09: ffffffff82495ea0 R10: ffffc90001b4b958 R11: ffffffff82575ee8 R12: 0000000000000000 R13: ffffea0004640000 R14: ffff88823fffa000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa872ce6000 CR3: 0000000002447000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: release_pages+0x76/0x5b0 mm/swap.c:1008 __folio_batch_release+0x1a/0x30 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] remove_inode_hugepages+0x4a8/0x570 fs/hugetlbfs/inode.c:691 hugetlbfs_evict_inode+0x19/0x40 fs/hugetlbfs/inode.c:703 evict+0xc8/0x1c0 fs/inode.c:665 __dentry_kill+0xda/0x170 fs/dcache.c:607 __fput+0x13e/0x290 fs/file_table.c:392 task_work_run+0x55/0x80 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x36f/0xbc0 kernel/exit.c:874 do_group_exit+0x32/0xa0 kernel/exit.c:1024 get_signal+0xae4/0xb20 kernel/signal.c:2881 arch_do_signal_or_restart+0x39/0x280 arch/x86/kernel/signal.c:308 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0xc3/0x180 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:297 do_syscall_64+0x44/0x80 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa872bcaae9 Code: Unable to access opcode bytes at 0x7fa872bcaabf. RSP: 002b:00007fa87274d178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007fa872ce9f88 RCX: 00007fa872bcaae9 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007fa872ce9f8c RBP: 00007fa872ce9f80 R08: 0000000000000001 R09: 00007fa87274d6c0 R10: 0000000020000000 R11: 0000000000000246 R12: 00007fa872ce9f8c R13: 0000000000000006 R14: 00007ffd6a75f140 R15: 00007ffd6a75f228 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:free_pages_prepare mm/page_alloc.c:1107 [inline] RIP: 0010:__free_pages_ok+0x51a/0x520 mm/page_alloc.c:1266 Code: e9 b1 fb ff ff 48 c7 c6 d8 55 14 82 e8 5f c9 fc ff 0f 0b 45 31 c0 e9 f2 fe ff ff 48 c7 c6 d0 8e 14 82 4c 89 ef e8 46 c9 fc ff <0f> 0b 0f 1f 40 00 48 85 ff 41 56 41 55 41 54 55 48 89 fd 53 75 0c RSP: 0018:ffffc90001b4bad0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000009 RCX: ffffc90001b4ba64 RDX: 0000000000000000 RSI: ffffffff820d76b5 RDI: ffffffff820f2a8e RBP: 0200000000000040 R08: 0000000000000000 R09: ffffffff82495ea0 R10: ffffc90001b4b958 R11: ffffffff82575ee8 R12: 0000000000000000 R13: ffffea0004640000 R14: ffff88823fffa000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa872ce6000 CR3: 0000000002447000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400