__tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu+0x3a0/0x680 mm/mmu_gather.c:404 zap_pte_range mm/memory.c:1774 [inline] zap_pmd_range mm/memory.c:1827 [inline] zap_pud_range mm/memory.c:1856 [inline] zap_p4d_range mm/memory.c:1877 [inline] unmap_page_range+0x38fd/0x41c0 mm/memory.c:1898 unmap_single_vma mm/memory.c:1941 [inline] unmap_vmas+0x399/0x580 mm/memory.c:1985 exit_mmap+0x248/0xb50 mm/mmap.c:1284 __mmput+0x118/0x410 kernel/fork.c:1121 exit_mm+0x1da/0x2c0 kernel/exit.c:581 do_exit+0x648/0x22e0 kernel/exit.c:952 do_group_exit+0x21c/0x2d0 kernel/exit.c:1105 get_signal+0x125e/0x1310 kernel/signal.c:3034 arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop+0x75/0x110 kernel/entry/common.c:111 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:154! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 15120 Comm: syz.4.2838 Not tainted 6.16.0-rc7-syzkaller #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: c2 ca ff 48 89 df 48 c7 c6 00 2e 94 8b e8 e3 ee 0e 00 90 0f 0b e8 2b c2 ca ff 48 89 df 48 c7 c6 e0 2c 94 8b e8 cc ee 0e 00 90 <0f> 0b e8 14 c2 ca ff 48 89 df 48 c7 c6 00 2e 94 8b e8 b5 ee 0e 00 RSP: 0018:ffffc900163970e0 EFLAGS: 00010046 RAX: 9d94ff996a731400 RBX: ffffea0001000000 RCX: 9d94ff996a731400 RDX: 0000000000000005 RSI: ffffffff8db6f792 RDI: ffff888024aa3c00 RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfaa6c R12: 0000000000000040 R13: 1ffffd4000200000 R14: 1ffffd4000200001 R15: ffffea0001000008 FS: 00007fe8187f66c0(0000) GS:ffff888125c57000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000001c2030 CR3: 000000002442a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 3a810b1eb6134bdc DR6: 00000000ffff0ff0 DR7: 0000000000000400 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:0x7fe81a98e9a9 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:00007fe8187f6038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007fe81abb6160 RCX: 00007fe81a98e9a9 RDX: 0000000000000009 RSI: 0000000000600002 RDI: 0000200000000000 RBP: 00007fe81aa10d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fe81abb6160 R15: 00007ffc9cabc828 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x715/0x790 mm/filemap.c:154 Code: c2 ca ff 48 89 df 48 c7 c6 00 2e 94 8b e8 e3 ee 0e 00 90 0f 0b e8 2b c2 ca ff 48 89 df 48 c7 c6 e0 2c 94 8b e8 cc ee 0e 00 90 <0f> 0b e8 14 c2 ca ff 48 89 df 48 c7 c6 00 2e 94 8b e8 b5 ee 0e 00 RSP: 0018:ffffc900163970e0 EFLAGS: 00010046 RAX: 9d94ff996a731400 RBX: ffffea0001000000 RCX: 9d94ff996a731400 RDX: 0000000000000005 RSI: ffffffff8db6f792 RDI: ffff888024aa3c00 RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfaa6c R12: 0000000000000040 R13: 1ffffd4000200000 R14: 1ffffd4000200001 R15: ffffea0001000008 FS: 00007fe8187f66c0(0000) GS:ffff888125c57000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000001c2030 CR3: 000000002442a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 3a810b1eb6134bdc DR6: 00000000ffff0ff0 DR7: 0000000000000400