page last free pid 12179 tgid 12179 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xe40/0x18b0 mm/page_alloc.c:2707 folios_put_refs+0x76c/0x860 mm/swap.c:994 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x593/0x1820 mm/shmem.c:1112 shmem_truncate_range mm/shmem.c:1224 [inline] shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1352 evict+0x4e8/0x9a0 fs/inode.c:796 do_unlinkat+0x512/0x830 fs/namei.c:4596 __do_sys_unlink fs/namei.c:4637 [inline] __se_sys_unlink fs/namei.c:4635 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4635 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:154! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 12172 Comm: syz.1.6276 Not tainted 6.14.0-rc2-syzkaller #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: de c7 ff 48 89 df 48 c7 c6 a0 d3 13 8c e8 fb f3 11 00 90 0f 0b e8 a3 de c7 ff 48 89 df 48 c7 c6 80 d2 13 8c e8 e4 f3 11 00 90 <0f> 0b e8 8c de c7 ff 48 89 df 48 c7 c6 a0 d3 13 8c e8 cd f3 11 00 RSP: 0018:ffffc9000c497230 EFLAGS: 00010046 RAX: 1964ac6849f85500 RBX: ffffea00011688c0 RCX: ffffc9000c496e03 RDX: 0000000000000002 RSI: ffffffff8c0ab8c0 RDI: ffffffff8c608ac0 RBP: 0000000000000000 R08: ffffffff901b5c77 R09: 1ffffffff2036b8e R10: dffffc0000000000 R11: fffffbfff2036b8f R12: dffffc0000000000 R13: 1ffffd400022d119 R14: ffff88804d7d5f10 R15: ffffea00011688c8 FS: 00007f6578bfc6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f15f86a950 CR3: 000000004c978000 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 get_signal+0x15f7/0x1750 kernel/signal.c:2809 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_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6577d8cde9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6578bfc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: 0000400000000000 RBX: 00007f6577fa6080 RCX: 00007f6577d8cde9 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000400000000000 RBP: 00007f6577e0e2a0 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f6577fa6080 R15: 00007f65780cfa28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x73d/0x7d0 mm/filemap.c:154 Code: de c7 ff 48 89 df 48 c7 c6 a0 d3 13 8c e8 fb f3 11 00 90 0f 0b e8 a3 de c7 ff 48 89 df 48 c7 c6 80 d2 13 8c e8 e4 f3 11 00 90 <0f> 0b e8 8c de c7 ff 48 89 df 48 c7 c6 a0 d3 13 8c e8 cd f3 11 00 RSP: 0018:ffffc9000c497230 EFLAGS: 00010046 RAX: 1964ac6849f85500 RBX: ffffea00011688c0 RCX: ffffc9000c496e03 RDX: 0000000000000002 RSI: ffffffff8c0ab8c0 RDI: ffffffff8c608ac0 RBP: 0000000000000000 R08: ffffffff901b5c77 R09: 1ffffffff2036b8e R10: dffffc0000000000 R11: fffffbfff2036b8f R12: dffffc0000000000 R13: 1ffffd400022d119 R14: ffff88804d7d5f10 R15: ffffea00011688c8 FS: 00007f6578bfc6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f15f86a950 CR3: 000000004c978000 CR4: 00000000003526f0