tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361 unmap_region+0x29f/0x2f0 mm/mmap.c:2332 do_mas_align_munmap+0xec8/0x15f0 mm/mmap.c:2582 do_mas_munmap+0x246/0x2b0 mm/mmap.c:2640 __vm_munmap+0x268/0x370 mm/mmap.c:2917 __do_sys_munmap mm/mmap.c:2942 [inline] __se_sys_munmap mm/mmap.c:2939 [inline] __x64_sys_munmap+0x5c/0x70 mm/mmap.c:2939 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: 0 PID: 3548 Comm: syz-executor232 Not tainted 6.1.89-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/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 e7 21 2b 00 e9 14 fe ff ff e8 cd aa d3 ff 4c 89 ef 48 c7 c6 a0 fd f4 8a e8 5e 5a 13 00 <0f> 0b e8 b7 aa d3 ff 4c 89 ef 48 c7 c6 20 03 f5 8a e8 48 5a 13 00 RSP: 0018:ffffc90003b9f638 EFLAGS: 00010046 RAX: 7a96001ae7d0f100 RBX: ffff88801e413c38 RCX: ffffc90003b9f403 RDX: 0000000000000002 RSI: ffffffff8aec1340 RDI: ffffffff8b3d42e0 RBP: ffffc90003b9f7d8 R08: dffffc0000000000 R09: fffffbfff1ce6fde R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801e413c38 R13: ffffea0001c08d40 R14: ffffea0001c08d40 R15: ffffea0001c08d40 FS: 00005555567d7380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcc4816e0e0 CR3: 000000001eab1000 CR4: 00000000003506f0 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:607 dentry_kill+0xbb/0x290 dput+0xfb/0x1d0 fs/dcache.c:914 __fput+0x5e4/0x890 fs/file_table.c:328 task_work_run+0x246/0x300 kernel/task_work.c:179 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:0x7fcc480f6ad0 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:00007ffe736a8dd8 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fcc480f6ad0 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000000004 RBP: 00007ffe736a8df0 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000008013 R11: 0000000000000202 R12: 00007fcc4816a5f0 R13: 00007ffe736a8fd8 R14: 0000000000000001 R15: 0000000000000001 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 e7 21 2b 00 e9 14 fe ff ff e8 cd aa d3 ff 4c 89 ef 48 c7 c6 a0 fd f4 8a e8 5e 5a 13 00 <0f> 0b e8 b7 aa d3 ff 4c 89 ef 48 c7 c6 20 03 f5 8a e8 48 5a 13 00 RSP: 0018:ffffc90003b9f638 EFLAGS: 00010046 RAX: 7a96001ae7d0f100 RBX: ffff88801e413c38 RCX: ffffc90003b9f403 RDX: 0000000000000002 RSI: ffffffff8aec1340 RDI: ffffffff8b3d42e0 RBP: ffffc90003b9f7d8 R08: dffffc0000000000 R09: fffffbfff1ce6fde R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801e413c38 R13: ffffea0001c08d40 R14: ffffea0001c08d40 R15: ffffea0001c08d40 FS: 00005555567d7380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcc4816e0e0 CR3: 000000001eab1000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400