__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:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x521/0xdc0 mm/mmap.c:3280 __mmput+0x115/0x3c0 kernel/fork.c:1346 exit_mm+0x220/0x310 kernel/exit.c:569 do_exit+0x99e/0x27d0 kernel/exit.c:865 do_group_exit+0x207/0x2c0 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+0x3f/0x40 kernel/exit.c:1036 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x88/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e ------------[ cut here ]------------ kernel BUG at mm/filemap.c:162! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5448 Comm: syz-executor.0 Not tainted 6.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:filemap_unaccount_folio+0x709/0xc60 mm/filemap.c:162 Code: 48 25 ff 0f 00 00 0f 84 ec 00 00 00 e8 50 df ca ff e9 6f f9 ff ff e8 46 df ca ff 4c 89 ef 48 c7 c6 a0 5a 73 8b e8 a7 4a 11 00 <0f> 0b e8 30 df ca ff 4c 89 ef 48 c7 c6 40 5b 73 8b e8 91 4a 11 00 RSP: 0018:ffffc9000542f638 EFLAGS: 00010046 RAX: b71e60575cbce500 RBX: 0000000000000000 RCX: ffffc9000542f203 RDX: 0000000000000002 RSI: ffffffff8b6ab080 RDI: ffffffff8bbaca80 RBP: 0000000000000000 R08: ffffffff8f3f7c6f R09: 1ffffffff1e7ef8d R10: dffffc0000000000 R11: fffffbfff1e7ef8e R12: 1ffffd40003bee40 R13: ffffea0001df7200 R14: 1ffffd40003bee41 R15: ffffea0001df7208 FS: 000055557c3fe480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005626341be950 CR3: 0000000051756000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __filemap_remove_folio+0xc4/0x9e0 mm/filemap.c:231 filemap_remove_folio+0x109/0x2e0 mm/filemap.c:264 truncate_inode_folio+0x5d/0x70 mm/truncate.c:195 shmem_undo_range+0x45d/0x1de0 mm/shmem.c:1001 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x29e/0xa80 mm/shmem.c:1242 evict+0x2a8/0x630 fs/inode.c:667 __dentry_kill+0x200/0x610 fs/dcache.c:603 dput+0x19f/0x2b0 fs/dcache.c:845 __fput+0x678/0x8a0 fs/file_table.c:430 __do_sys_close fs/open.c:1556 [inline] __se_sys_close+0x166/0x230 fs/open.c:1541 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x88/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fa8f687cc5a 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:00007fff5d46cee0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fa8f687cc5a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fff5d46cfb8 R08: 00007fa8f6800000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 0000000000015001 R13: 00007fa8f69abf8c R14: 00007fa8f69abf80 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x709/0xc60 mm/filemap.c:162 Code: 48 25 ff 0f 00 00 0f 84 ec 00 00 00 e8 50 df ca ff e9 6f f9 ff ff e8 46 df ca ff 4c 89 ef 48 c7 c6 a0 5a 73 8b e8 a7 4a 11 00 <0f> 0b e8 30 df ca ff 4c 89 ef 48 c7 c6 40 5b 73 8b e8 91 4a 11 00 RSP: 0018:ffffc9000542f638 EFLAGS: 00010046 RAX: b71e60575cbce500 RBX: 0000000000000000 RCX: ffffc9000542f203 RDX: 0000000000000002 RSI: ffffffff8b6ab080 RDI: ffffffff8bbaca80 RBP: 0000000000000000 R08: ffffffff8f3f7c6f R09: 1ffffffff1e7ef8d R10: dffffc0000000000 R11: fffffbfff1e7ef8e R12: 1ffffd40003bee40 R13: ffffea0001df7200 R14: 1ffffd40003bee41 R15: ffffea0001df7208 FS: 000055557c3fe480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005626341be950 CR3: 0000000051756000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400