__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136 tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0xe9/0x590 mm/mmu_gather.c:373 zap_pte_range mm/memory.c:1683 [inline] zap_pmd_range mm/memory.c:1722 [inline] zap_pud_range mm/memory.c:1751 [inline] zap_p4d_range mm/memory.c:1772 [inline] unmap_page_range+0x1c44/0x3c10 mm/memory.c:1793 unmap_single_vma+0x194/0x2b0 mm/memory.c:1839 unmap_vmas+0x22f/0x490 mm/memory.c:1883 exit_mmap+0x1c1/0xb90 mm/mmap.c:3267 __mmput+0x12a/0x4d0 kernel/fork.c:1346 mmput+0x62/0x70 kernel/fork.c:1368 exit_mm kernel/exit.c:569 [inline] do_exit+0x999/0x2c10 kernel/exit.c:865 do_group_exit+0xd3/0x2a0 kernel/exit.c:1027 __do_sys_exit_group kernel/exit.c:1038 [inline] __se_sys_exit_group kernel/exit.c:1036 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1036 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:162! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 1 PID: 8587 Comm: syz-executor.5 Not tainted 6.9.0-rc6-syzkaller-00046-g18daea77cca6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:filemap_unaccount_folio+0x5ab/0x7f0 mm/filemap.c:162 Code: 04 84 d2 75 4b 8b 6b 5c 31 ff 89 ee e8 5e a0 ce ff 85 ed 7e 45 e8 75 a5 ce ff 48 c7 c6 00 b0 37 8b 48 89 df e8 46 18 11 00 90 <0f> 0b 48 89 ef e8 8b 94 2a 00 e9 28 fb ff ff 48 89 ef e8 7e 94 2a RSP: 0018:ffffc9000348f708 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea00015c2140 RCX: ffffc9000348f5b0 RDX: ffff888025c29e00 RSI: ffffffff81c0627a RDI: ffffffff8b8f81e0 RBP: ffffea00015c2170 R08: 0000000000000000 R09: fffffbfff1f8039a R10: ffffffff8fc01cd7 R11: 0000000000000003 R12: ffff888078064bd8 R13: 0000000000000000 R14: 000000000003d7cc R15: ffffea00015c2158 FS: 000055555f104480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e324000 CR3: 000000005d02e000 CR4: 0000000000350ef0 Call Trace: __filemap_remove_folio+0x115/0x760 mm/filemap.c:231 filemap_remove_folio+0xc8/0x210 mm/filemap.c:264 truncate_inode_folio+0x49/0x70 mm/truncate.c:195 shmem_undo_range+0x378/0x1170 mm/shmem.c:1001 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x3a3/0xbb0 mm/shmem.c:1242 evict+0x2f0/0x6c0 fs/inode.c:667 iput_final fs/inode.c:1741 [inline] iput.part.0+0x5a8/0x7f0 fs/inode.c:1767 iput+0x5c/0x80 fs/inode.c:1757 dentry_unlink_inode+0x295/0x440 fs/dcache.c:400 __dentry_kill+0x1d0/0x600 fs/dcache.c:603 dput.part.0+0x4b1/0x9b0 fs/dcache.c:845 dput+0x1f/0x30 fs/dcache.c:835 __fput+0x3bc/0xb80 fs/file_table.c:430 __fput_sync+0x47/0x50 fs/file_table.c:507 __do_sys_close fs/open.c:1556 [inline] __se_sys_close fs/open.c:1541 [inline] __x64_sys_close+0x86/0x100 fs/open.c:1541 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f508107cd9a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007fff95d88b20 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f508107cd9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f50811ad980 R08: 00007f5081000000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 000000000005b211 R13: 000000000005b1df R14: 00007fff95d88ce0 R15: 00007f5081034cb0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x5ab/0x7f0 mm/filemap.c:162 Code: 04 84 d2 75 4b 8b 6b 5c 31 ff 89 ee e8 5e a0 ce ff 85 ed 7e 45 e8 75 a5 ce ff 48 c7 c6 00 b0 37 8b 48 89 df e8 46 18 11 00 90 <0f> 0b 48 89 ef e8 8b 94 2a 00 e9 28 fb ff ff 48 89 ef e8 7e 94 2a RSP: 0018:ffffc9000348f708 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea00015c2140 RCX: ffffc9000348f5b0 RDX: ffff888025c29e00 RSI: ffffffff81c0627a RDI: ffffffff8b8f81e0 RBP: ffffea00015c2170 R08: 0000000000000000 R09: fffffbfff1f8039a R10: ffffffff8fc01cd7 R11: 0000000000000003 R12: ffff888078064bd8 R13: 0000000000000000 R14: 000000000003d7cc R15: ffffea00015c2158 FS: 000055555f104480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e324000 CR3: 000000005d02e000 CR4: 0000000000350ef0