tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0x105/0x220 mm/mmu_gather.c:261 zap_pte_range mm/memory.c:1523 [inline] zap_pmd_range mm/memory.c:1572 [inline] zap_pud_range mm/memory.c:1601 [inline] zap_p4d_range mm/memory.c:1622 [inline] unmap_page_range+0x1f53/0x2500 mm/memory.c:1643 unmap_vmas+0x260/0x390 mm/memory.c:1728 exit_mmap+0x20d/0x960 mm/mmap.c:3250 __mmput+0x118/0x3c0 kernel/fork.c:1205 exit_mm+0x1fe/0x2d0 kernel/exit.c:565 do_exit+0x905/0x2480 kernel/exit.c:867 do_group_exit+0x217/0x2d0 kernel/exit.c:1022 get_signal+0x1272/0x1350 kernel/signal.c:2871 arch_do_signal_or_restart+0xc4/0x1350 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:153! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 15430 Comm: syz.6.3622 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 RIP: 0010:filemap_unaccount_folio+0x5cf/0xa80 mm/filemap.c:153 Code: 07 38 c1 0f 8c 19 fe ff ff 4c 89 e7 e8 7a e1 27 00 e9 0c fe ff ff e8 b0 f6 d6 ff 48 89 df 48 c7 c6 a0 f7 94 8a e8 f1 0c 12 00 <0f> 0b e8 9a f6 d6 ff 48 89 df 48 c7 c6 00 fd 94 8a e8 db 0c 12 00 RSP: 0018:ffffc9000c537618 EFLAGS: 00010046 RAX: 0dd5bb71df4c7500 RBX: ffffea0000c68c00 RCX: 0dd5bb71df4c7500 RDX: 0000000000000002 RSI: ffffffff8a8c23a0 RDI: ffffffff8adf0c20 RBP: ffffc9000c537778 R08: ffffffff8e1fc32f R09: 1ffffffff1c3f865 R10: dffffc0000000000 R11: fffffbfff1c3f866 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff888076e209b8 R15: 1ffff920018a6ed4 FS: 000055558a0e5500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f275c1e8400 CR3: 0000000027ff8000 CR4: 00000000003526f0 Call Trace: __filemap_remove_folio+0xbc/0x8a0 mm/filemap.c:222 filemap_remove_folio+0xed/0x2c0 mm/filemap.c:255 truncate_inode_folio+0x59/0x70 mm/truncate.c:195 shmem_undo_range+0x533/0x20c0 mm/shmem.c:942 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x25b/0xa80 mm/shmem.c:1171 evict+0x4c9/0x8d0 fs/inode.c:705 __dentry_kill+0x431/0x650 fs/dcache.c:611 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xfa/0x1d0 fs/dcache.c:918 __fput+0x5e0/0x920 fs/file_table.c:328 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f275c19acb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe7bb48aa8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f275c417da0 RCX: 00007f275c19acb9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f275c417da0 R08: 0000000000000006 R09: 0000000000000000 R10: 00007f275c417cb0 R11: 0000000000000246 R12: 000000000007b986 R13: 00007f275c41609c R14: 000000000007b702 R15: 00007f275c416090 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x5cf/0xa80 mm/filemap.c:153 Code: 07 38 c1 0f 8c 19 fe ff ff 4c 89 e7 e8 7a e1 27 00 e9 0c fe ff ff e8 b0 f6 d6 ff 48 89 df 48 c7 c6 a0 f7 94 8a e8 f1 0c 12 00 <0f> 0b e8 9a f6 d6 ff 48 89 df 48 c7 c6 00 fd 94 8a e8 db 0c 12 00 RSP: 0018:ffffc9000c537618 EFLAGS: 00010046 RAX: 0dd5bb71df4c7500 RBX: ffffea0000c68c00 RCX: 0dd5bb71df4c7500 RDX: 0000000000000002 RSI: ffffffff8a8c23a0 RDI: ffffffff8adf0c20 RBP: ffffc9000c537778 R08: ffffffff8e1fc32f R09: 1ffffffff1c3f865 R10: dffffc0000000000 R11: fffffbfff1c3f866 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff888076e209b8 R15: 1ffff920018a6ed4 FS: 000055558a0e5500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f275c1e8400 CR3: 0000000027ff8000 CR4: 00000000003526f0