tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361 exit_mmap+0x3c3/0x9f0 mm/mmap.c:3239 __mmput+0x115/0x3c0 kernel/fork.c:1199 exit_mm+0x226/0x300 kernel/exit.c:565 do_exit+0x9f6/0x26a0 kernel/exit.c:858 do_group_exit+0x202/0x2b0 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+0x3b/0x40 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 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 KASAN CPU: 1 PID: 3926 Comm: syz-executor.0 Not tainted 6.1.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:filemap_unaccount_folio+0x5c2/0xa60 mm/filemap.c:153 Code: 07 38 c1 0f 8c 21 fe ff ff 48 89 ef e8 d7 17 2b 00 e9 14 fe ff ff e8 dd 9b d3 ff 4c 89 ef 48 c7 c6 e0 fd f4 8a e8 2e 5a 13 00 <0f> 0b e8 c7 9b d3 ff 4c 89 ef 48 c7 c6 60 03 f5 8a e8 18 5a 13 00 RSP: 0018:ffffc900049d7638 EFLAGS: 00010046 RAX: 6eab4575052f9b00 RBX: ffff8880747d8368 RCX: ffffc900049d7403 RDX: 0000000000000002 RSI: ffffffff8aec13e0 RDI: ffffffff8b3d5d20 RBP: ffffc900049d77d8 R08: dffffc0000000000 R09: fffffbfff1ce735e R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880747d8368 R13: ffffea0001993440 R14: ffffea0001993440 R15: ffffea0001993440 FS: 0000555556e9e480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f457fd33378 CR3: 000000007df1a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __filemap_remove_folio+0xc7/0xaa0 mm/filemap.c:222 filemap_remove_folio+0x105/0x2e0 mm/filemap.c:255 truncate_inode_folio+0x59/0x70 mm/truncate.c:195 shmem_undo_range+0x570/0x2390 mm/shmem.c:942 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x265/0xa60 mm/shmem.c:1171 evict+0x2a4/0x620 fs/inode.c:666 __dentry_kill+0x436/0x650 fs/dcache.c:611 dentry_kill+0xbb/0x290 dput+0xfb/0x1d0 fs/dcache.c:918 __fput+0x62e/0x8d0 fs/file_table.c:328 task_work_run+0x246/0x300 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faf7bc7cd9a 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:00007ffcd9848ff0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007faf7bc7cd9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007faf7bdad980 R08: 00007faf7bc00000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 0000000000012a91 R13: 0000000000012a5f R14: 00007ffcd98491b0 R15: 00007faf7bc34cb0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x5c2/0xa60 mm/filemap.c:153 Code: 07 38 c1 0f 8c 21 fe ff ff 48 89 ef e8 d7 17 2b 00 e9 14 fe ff ff e8 dd 9b d3 ff 4c 89 ef 48 c7 c6 e0 fd f4 8a e8 2e 5a 13 00 <0f> 0b e8 c7 9b d3 ff 4c 89 ef 48 c7 c6 60 03 f5 8a e8 18 5a 13 00 RSP: 0018:ffffc900049d7638 EFLAGS: 00010046 RAX: 6eab4575052f9b00 RBX: ffff8880747d8368 RCX: ffffc900049d7403 RDX: 0000000000000002 RSI: ffffffff8aec13e0 RDI: ffffffff8b3d5d20 RBP: ffffc900049d77d8 R08: dffffc0000000000 R09: fffffbfff1ce735e R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880747d8368 R13: ffffea0001993440 R14: ffffea0001993440 R15: ffffea0001993440 FS: 0000555556e9e480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f457fd33378 CR3: 000000007df1a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400