tlb_finish_mmu+0x3b/0x70 mm/mmu_gather.c:361 exit_mmap+0x248/0x440 mm/mmap.c:3239 __mmput+0x3d/0x110 kernel/fork.c:1199 exit_mm+0xb5/0x110 kernel/exit.c:565 do_exit+0x24d/0xad0 kernel/exit.c:858 do_group_exit+0x97/0xa0 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+0xe/0x10 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:153! invalid opcode: 0000 [#1] PREEMPT SMP CPU: 0 PID: 1911 Comm: syz-executor.0 Not tainted 6.1.98-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:filemap_unaccount_folio+0x150/0x2b0 mm/filemap.c:153 Code: 5d c3 0f 0b 49 8b 3e e8 be 89 00 00 48 89 df 48 89 c6 5b 41 5e 5d e9 8f 0e 01 00 48 89 df 48 c7 c6 db 32 fd 82 e8 00 c0 05 00 <0f> 0b 48 89 d8 48 c1 e0 34 0f 85 dc fe ff ff 48 f7 03 00 00 01 00 RSP: 0018:ffffc90002c5faf0 EFLAGS: 00010086 RAX: 68c4fdfce3187d00 RBX: ffffea0004441dc0 RCX: 68c4fdfce3187d00 RDX: 0000000000000000 RSI: ffffffff82fc04fe RDI: ffffffff8304c1f2 RBP: ffffc90002c5fd48 R08: 0000000000000000 R09: ffffffff834c1120 R10: 00000000ffffffff R11: 00000000ffffdfff R12: ffffea0004441dc0 R13: 0000000000000000 R14: ffff8881037fe5b0 R15: 0000000000000000 FS: 000055555589b480(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7cb25a80c0 CR3: 0000000110c5f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __filemap_remove_folio+0x61/0x320 mm/filemap.c:222 filemap_remove_folio+0x4b/0xf0 mm/filemap.c:255 truncate_inode_folio+0x21/0x30 mm/truncate.c:195 shmem_undo_range+0x302/0xc10 mm/shmem.c:942 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x121/0x2e0 mm/shmem.c:1171 evict+0xc9/0x220 fs/inode.c:666 __dentry_kill+0x124/0x1f0 fs/dcache.c:607 dentry_kill+0x62/0x120 dput+0x61/0xa0 fs/dcache.c:914 __fput+0x10c/0x220 fs/file_table.c:328 task_work_run+0x79/0xa0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xa9/0xc0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x64/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x28/0x1f0 kernel/entry/common.c:303 do_syscall_64+0x47/0x80 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7cb247cd9a 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:00007ffef49c22d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f7cb247cd9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f7cb25ad980 R08: 00007f7cb2400000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 000000000000bf6e R13: 000000000000bf3c R14: 00007ffef49c2490 R15: 00007f7cb2434cb0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x150/0x2b0 mm/filemap.c:153 Code: 5d c3 0f 0b 49 8b 3e e8 be 89 00 00 48 89 df 48 89 c6 5b 41 5e 5d e9 8f 0e 01 00 48 89 df 48 c7 c6 db 32 fd 82 e8 00 c0 05 00 <0f> 0b 48 89 d8 48 c1 e0 34 0f 85 dc fe ff ff 48 f7 03 00 00 01 00 RSP: 0018:ffffc90002c5faf0 EFLAGS: 00010086 RAX: 68c4fdfce3187d00 RBX: ffffea0004441dc0 RCX: 68c4fdfce3187d00 RDX: 0000000000000000 RSI: ffffffff82fc04fe RDI: ffffffff8304c1f2 RBP: ffffc90002c5fd48 R08: 0000000000000000 R09: ffffffff834c1120 R10: 00000000ffffffff R11: 00000000ffffdfff R12: ffffea0004441dc0 R13: 0000000000000000 R14: ffff8881037fe5b0 R15: 0000000000000000 FS: 000055555589b480(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7cb25a80c0 CR3: 0000000110c5f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400