__update_and_free_hugetlb_folio+0x1e3/0x420 mm/hugetlb.c:1653 update_and_free_hugetlb_folio+0xce/0x210 mm/hugetlb.c:1708 free_huge_folio+0x85b/0x1050 mm/hugetlb.c:1886 __folio_put+0x3be/0x450 mm/swap.c:105 folio_put include/linux/mm.h:1356 [inline] folio_putback_hugetlb+0x449/0x550 mm/hugetlb.c:7839 unmap_and_move_huge_page mm/migrate.c:1478 [inline] migrate_hugetlbs mm/migrate.c:1581 [inline] migrate_pages+0xab8/0x23b0 mm/migrate.c:2011 do_mbind+0x6f0/0xf30 mm/mempolicy.c:1542 kernel_mbind+0x1e3/0x1f0 mm/mempolicy.c:1685 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:154! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 10168 Comm: syz.3.981 Not tainted 6.16.0-rc6-syzkaller-00279-gbf61759db409 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:filemap_unaccount_folio+0xef/0x8c0 mm/filemap.c:154 Code: f7 fd c9 ff 89 ee 31 ff 4c 8d 6b 30 e8 2a f9 c9 ff 85 ed 7e 17 e8 e1 fd c9 ff 48 c7 c6 80 03 b9 8b 48 89 df e8 62 ba 11 00 90 <0f> 0b e8 ca fd c9 ff 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 RSP: 0018:ffffc9000484f3d0 EFLAGS: 00010046 RAX: 0000000000080000 RBX: ffffea00013d0000 RCX: ffffc90012a92000 RDX: 0000000000080000 RSI: ffffffff81f1eade RDI: ffff88802724a884 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888058b7e080 R13: ffffea00013d0030 R14: 00000000000006c0 R15: ffffea00013d0000 FS: 00007f5fb49786c0(0000) GS:ffff888124820000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8858d62f98 CR3: 0000000026169000 CR4: 00000000003526f0 Call Trace: __filemap_remove_folio mm/filemap.c:223 [inline] filemap_remove_folio+0xf1/0x250 mm/filemap.c:253 hugetlb_delete_from_page_cache fs/hugetlbfs/inode.c:334 [inline] remove_inode_single_folio fs/hugetlbfs/inode.c:539 [inline] remove_inode_hugepages+0x74a/0xed0 fs/hugetlbfs/inode.c:596 hugetlbfs_punch_hole fs/hugetlbfs/inode.c:719 [inline] hugetlbfs_fallocate+0xf3f/0x12e0 fs/hugetlbfs/inode.c:745 vfs_fallocate+0x608/0x10c0 fs/open.c:341 madvise_remove mm/madvise.c:1043 [inline] madvise_vma_behavior+0x21ca/0x2420 mm/madvise.c:1274 madvise_walk_vmas+0x1ce/0x2c0 mm/madvise.c:1541 madvise_do_behavior+0x15d/0x3f0 mm/madvise.c:1733 do_madvise+0x161/0x230 mm/madvise.c:1826 __do_sys_madvise mm/madvise.c:1835 [inline] __se_sys_madvise mm/madvise.c:1833 [inline] __x64_sys_madvise+0xa9/0x110 mm/madvise.c:1833 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5fb3b8e9a9 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:00007f5fb4978038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f5fb3db6320 RCX: 00007f5fb3b8e9a9 RDX: 0000000000000009 RSI: 0000000000600002 RDI: 0000200000000000 RBP: 00007f5fb3c10d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5fb3db6320 R15: 00007ffec73fe288 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0xef/0x8c0 mm/filemap.c:154 Code: f7 fd c9 ff 89 ee 31 ff 4c 8d 6b 30 e8 2a f9 c9 ff 85 ed 7e 17 e8 e1 fd c9 ff 48 c7 c6 80 03 b9 8b 48 89 df e8 62 ba 11 00 90 <0f> 0b e8 ca fd c9 ff 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 RSP: 0018:ffffc9000484f3d0 EFLAGS: 00010046 RAX: 0000000000080000 RBX: ffffea00013d0000 RCX: ffffc90012a92000 RDX: 0000000000080000 RSI: ffffffff81f1eade RDI: ffff88802724a884 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888058b7e080 R13: ffffea00013d0030 R14: 00000000000006c0 R15: ffffea00013d0000 FS: 00007f5fb49786c0(0000) GS:ffff888124820000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8858d62f98 CR3: 0000000026169000 CR4: 00000000003526f0