vms_clear_ptes+0x432/0x530 mm/vma.c:1144 vms_clean_up_area mm/vma.c:1156 [inline] __mmap_prepare mm/vma.c:2279 [inline] __mmap_region mm/vma.c:2444 [inline] mmap_region+0x1187/0x2fa0 mm/vma.c:2535 do_mmap+0xecc/0x13a0 mm/mmap.c:561 vm_mmap_pgoff+0x214/0x430 mm/util.c:575 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x110 arch/x86/entry/common.c:386 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e ------------[ cut here ]------------ kernel BUG at mm/filemap.c:154! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 14961 Comm: syz.4.2383 Not tainted 6.14.0-rc3-syzkaller-00060-g6537cfb395f3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:filemap_unaccount_folio+0x73d/0x7d0 mm/filemap.c:154 Code: ca c7 ff 48 89 df 48 c7 c6 40 d7 33 8c e8 5b 68 12 00 90 0f 0b e8 d3 ca c7 ff 48 89 df 48 c7 c6 20 d6 33 8c e8 44 68 12 00 90 <0f> 0b e8 bc ca c7 ff 48 89 df 48 c7 c6 40 d7 33 8c e8 2d 68 12 00 RSP: 0000:ffffc90003e37030 EFLAGS: 00010046 RAX: 1f7ddc99ee21ca00 RBX: ffffea0001369700 RCX: ffffc90003e36c03 RDX: 0000000000000002 RSI: ffffffff8c2ab6a0 RDI: ffffffff8c80ed80 RBP: 0000000000000000 R08: ffffffff903ce777 R09: 1ffffffff2079cee R10: dffffc0000000000 R11: fffffbfff2079cef R12: dffffc0000000000 R13: 1ffffd400026d2e1 R14: ffff88807e9ed888 R15: ffffea0001369708 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000080a14000 CR3: 000000005ed8a000 CR4: 00000000003526f0 Call Trace: __filemap_remove_folio+0xc7/0x670 mm/filemap.c:223 filemap_remove_folio+0xe1/0x1f0 mm/filemap.c:256 truncate_inode_folio+0x5d/0x70 mm/truncate.c:162 shmem_undo_range+0x44b/0x1820 mm/shmem.c:1108 shmem_truncate_range mm/shmem.c:1224 [inline] shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1352 evict+0x4e8/0x9a0 fs/inode.c:796 __dentry_kill+0x20d/0x630 fs/dcache.c:643 dput+0x19f/0x2b0 fs/dcache.c:885 __fput+0x60b/0x9f0 fs/file_table.c:472 task_work_run+0x24f/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2a/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x168c/0x1720 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 __do_fast_syscall_32+0xc4/0x110 arch/x86/entry/common.c:389 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf743d579 Code: Unable to access opcode bytes at 0xf743d54f. RSP: 002b:00000000f4ef660c EFLAGS: 00000206 ORIG_RAX: 00000000000000f0 RAX: fffffffffffffe00 RBX: 00000000f74650a8 RCX: 0000000000000080 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000f74650ac RBP: 0000000000000081 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x73d/0x7d0 mm/filemap.c:154 Code: ca c7 ff 48 89 df 48 c7 c6 40 d7 33 8c e8 5b 68 12 00 90 0f 0b e8 d3 ca c7 ff 48 89 df 48 c7 c6 20 d6 33 8c e8 44 68 12 00 90 <0f> 0b e8 bc ca c7 ff 48 89 df 48 c7 c6 40 d7 33 8c e8 2d 68 12 00 RSP: 0000:ffffc90003e37030 EFLAGS: 00010046 RAX: 1f7ddc99ee21ca00 RBX: ffffea0001369700 RCX: ffffc90003e36c03 RDX: 0000000000000002 RSI: ffffffff8c2ab6a0 RDI: ffffffff8c80ed80 RBP: 0000000000000000 R08: ffffffff903ce777 R09: 1ffffffff2079cee R10: dffffc0000000000 R11: fffffbfff2079cef R12: dffffc0000000000 R13: 1ffffd400026d2e1 R14: ffff88807e9ed888 R15: ffffea0001369708 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000080a14000 CR3: 000000005ed8a000 CR4: 00000000003526f0