tlb_batch_pages_flush+0x9a/0x190 mm/mmu_gather.c:98 tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu mm/mmu_gather.c:300 [inline] tlb_finish_mmu+0x14b/0x6f0 mm/mmu_gather.c:392 exit_mmap+0x38b/0xa70 mm/mmap.c:3321 __mmput+0x12a/0x4d0 kernel/fork.c:1349 mmput+0x62/0x70 kernel/fork.c:1371 exit_mm kernel/exit.c:567 [inline] do_exit+0x9ad/0x2ae0 kernel/exit.c:858 do_group_exit+0xd4/0x2a0 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b ------------[ cut here ]------------ kernel BUG at mm/filemap.c:152! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5071 Comm: syz-executor404 Not tainted 6.7.0-rc2-syzkaller-00029-g9b6de136b5f0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:filemap_unaccount_folio+0x631/0x880 mm/filemap.c:152 Code: 85 6b 01 00 00 8b 6b 5c 31 ff 89 ee e8 c8 ab d1 ff 85 ed 7e 17 e8 4f b0 d1 ff 48 c7 c6 00 57 d7 8a 48 89 df e8 80 6a 10 00 90 <0f> 0b e8 38 b0 d1 ff 48 8d 6b 58 be 04 00 00 00 48 89 ef e8 c7 46 RSP: 0018:ffffc900039a7840 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea0001f3d3c0 RCX: ffffc900039a76a0 RDX: ffff88801ebad940 RSI: ffffffff81b5d9f0 RDI: ffffffff8b2f0e80 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff1e326aa R10: ffffffff8f193557 R11: 0000000000000001 R12: ffff8880273f3828 R13: 0000000000000001 R14: 0000000000000000 R15: ffffea0001f3d3d8 FS: 0000555556c5c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1ba39810e0 CR3: 0000000078de2000 CR4: 0000000000350ef0 Call Trace: __filemap_remove_folio+0x10d/0x740 mm/filemap.c:221 filemap_remove_folio+0xca/0x210 mm/filemap.c:254 truncate_inode_folio+0x49/0x70 mm/truncate.c:195 shmem_undo_range+0x35d/0x1030 mm/shmem.c:1000 shmem_truncate_range mm/shmem.c:1096 [inline] shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1224 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1775 [inline] iput.part.0+0x560/0x7b0 fs/inode.c:1801 iput+0x5c/0x80 fs/inode.c:1791 dentry_unlink_inode+0x292/0x430 fs/dcache.c:401 __dentry_kill+0x3b8/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:733 [inline] dput+0x7eb/0xd90 fs/dcache.c:913 __fput+0x3b9/0xbb0 fs/file_table.c:402 __fput_sync+0x47/0x50 fs/file_table.c:475 __do_sys_close fs/open.c:1590 [inline] __se_sys_close fs/open.c:1575 [inline] __x64_sys_close+0x87/0xf0 fs/open.c:1575 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f1ba3909ad0 Code: ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 80 3d d1 85 07 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c RSP: 002b:00007ffd0af87d58 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1ba3909ad0 RDX: 0000000000000000 RSI: 0000000000002000 RDI: 0000000000000004 RBP: 00007ffd0af87d70 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000202 R12: 00007f1ba397d5f0 R13: 00007ffd0af87f58 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x631/0x880 mm/filemap.c:152 Code: 85 6b 01 00 00 8b 6b 5c 31 ff 89 ee e8 c8 ab d1 ff 85 ed 7e 17 e8 4f b0 d1 ff 48 c7 c6 00 57 d7 8a 48 89 df e8 80 6a 10 00 90 <0f> 0b e8 38 b0 d1 ff 48 8d 6b 58 be 04 00 00 00 48 89 ef e8 c7 46 RSP: 0018:ffffc900039a7840 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea0001f3d3c0 RCX: ffffc900039a76a0 RDX: ffff88801ebad940 RSI: ffffffff81b5d9f0 RDI: ffffffff8b2f0e80 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff1e326aa R10: ffffffff8f193557 R11: 0000000000000001 R12: ffff8880273f3828 R13: 0000000000000001 R14: 0000000000000000 R15: ffffea0001f3d3d8 FS: 0000555556c5c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1ba39810e0 CR3: 0000000078de2000 CR4: 0000000000350ef0