update_and_free_hugetlb_folio+0x169/0x280 mm/hugetlb.c:1708 free_huge_folio+0xd72/0x1100 mm/hugetlb.c:-1 folios_put_refs+0x410/0x640 mm/swap.c:973 folio_batch_release include/linux/pagevec.h:101 [inline] remove_inode_hugepages+0xee3/0x1100 fs/hugetlbfs/inode.c:602 hugetlbfs_evict_inode+0xbf/0x230 fs/hugetlbfs/inode.c:617 evict+0x501/0x9c0 fs/inode.c:810 __dentry_kill+0x209/0x660 fs/dcache.c:669 dput+0x19f/0x2b0 fs/dcache.c:911 __fput+0x68e/0xa70 fs/file_table.c:473 task_work_run+0x1d1/0x260 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x6b5/0x22e0 kernel/exit.c:964 do_group_exit+0x21c/0x2d0 kernel/exit.c:1105 get_signal+0x1286/0x1340 kernel/signal.c:3034 arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:154! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 21667 Comm: syz.3.4141 Not tainted 6.16.0-rc6-syzkaller-00253-g4871b7cb27f4 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:filemap_unaccount_folio+0x715/0x790 mm/filemap.c:154 Code: c3 ca ff 48 89 df 48 c7 c6 80 2e 94 8b e8 93 f9 10 00 90 0f 0b e8 eb c2 ca ff 48 89 df 48 c7 c6 60 2d 94 8b e8 7c f9 10 00 90 <0f> 0b e8 d4 c2 ca ff 48 89 df 48 c7 c6 80 2e 94 8b e8 65 f9 10 00 RSP: 0000:ffffc900121cf0e0 EFLAGS: 00010046 RAX: 5725afd0826f0d00 RBX: ffffea0001180000 RCX: 5725afd0826f0d00 RDX: 0000000000000005 RSI: ffffffff8db83cac RDI: ffff88807ef80000 RBP: 0000000000000001 R08: ffff8880b8724293 R09: 1ffff110170e4852 R10: dffffc0000000000 R11: ffffed10170e4853 R12: 0000000000000040 R13: 1ffffd4000230000 R14: 1ffffd4000230001 R15: ffffea0001180008 FS: 00007f7d23d976c0(0000) GS:ffff888125d23000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7d23d96f98 CR3: 000000003c130000 CR4: 00000000003526f0 Call Trace: __filemap_remove_folio+0xc3/0x500 mm/filemap.c:223 filemap_remove_folio+0xe6/0x1f0 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+0x594/0x1100 fs/hugetlbfs/inode.c:596 hugetlbfs_punch_hole fs/hugetlbfs/inode.c:719 [inline] hugetlbfs_fallocate+0xbc7/0x1100 fs/hugetlbfs/inode.c:745 vfs_fallocate+0x6a0/0x830 fs/open.c:341 madvise_remove mm/madvise.c:1043 [inline] madvise_vma_behavior mm/madvise.c:1274 [inline] madvise_walk_vmas mm/madvise.c:1541 [inline] madvise_do_behavior+0x169d/0x2e70 mm/madvise.c:1733 do_madvise+0x174/0x220 mm/madvise.c:1826 __do_sys_madvise mm/madvise.c:1835 [inline] __se_sys_madvise mm/madvise.c:1833 [inline] __x64_sys_madvise+0xa7/0xc0 mm/madvise.c:1833 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7d22f8e9a9 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:00007f7d23d97038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f7d231b6400 RCX: 00007f7d22f8e9a9 RDX: 0000000000000009 RSI: 0000000000600002 RDI: 0000200000000000 RBP: 00007f7d23010d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f7d231b6400 R15: 00007f7d232dfa28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x715/0x790 mm/filemap.c:154 Code: c3 ca ff 48 89 df 48 c7 c6 80 2e 94 8b e8 93 f9 10 00 90 0f 0b e8 eb c2 ca ff 48 89 df 48 c7 c6 60 2d 94 8b e8 7c f9 10 00 90 <0f> 0b e8 d4 c2 ca ff 48 89 df 48 c7 c6 80 2e 94 8b e8 65 f9 10 00 RSP: 0000:ffffc900121cf0e0 EFLAGS: 00010046 RAX: 5725afd0826f0d00 RBX: ffffea0001180000 RCX: 5725afd0826f0d00 RDX: 0000000000000005 RSI: ffffffff8db83cac RDI: ffff88807ef80000 RBP: 0000000000000001 R08: ffff8880b8724293 R09: 1ffff110170e4852 R10: dffffc0000000000 R11: ffffed10170e4853 R12: 0000000000000040 R13: 1ffffd4000230000 R14: 1ffffd4000230001 R15: ffffea0001180008 FS: 00007f7d23d976c0(0000) GS:ffff888125d23000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7d23d96f98 CR3: 000000003c130000 CR4: 00000000003526f0