reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3464 free_contig_range+0x9a/0x150 mm/page_alloc.c:9550 destroy_args+0xfe/0x997 mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x416/0x46b mm/debug_vm_pgtable.c:1354 do_one_initcall+0x265/0x8f0 init/main.c:1298 do_initcall_level+0x157/0x207 init/main.c:1371 do_initcalls+0x49/0x86 init/main.c:1387 kernel_init_freeable+0x45c/0x60f init/main.c:1626 kernel_init+0x19/0x290 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:153! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7000 Comm: syz.2.633 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 07 23 2b 00 e9 14 fe ff ff e8 0d 9a d3 ff 4c 89 ef 48 c7 c6 e0 fe 14 8b e8 5e 5b 13 00 <0f> 0b e8 f7 99 d3 ff 4c 89 ef 48 c7 c6 60 04 15 8b e8 48 5b 13 00 RSP: 0018:ffffc9001b79f578 EFLAGS: 00010046 RAX: a8c8a393d10eca00 RBX: ffff888076899658 RCX: ffffc9001b79f303 RDX: 0000000000000002 RSI: ffffffff8b0c1340 RDI: ffffffff8b5e6200 RBP: ffffc9001b79f718 R08: dffffc0000000000 R09: fffffbfff1d35ef6 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888076899658 R13: ffffea0001382e00 R14: ffffea0001382e00 R15: ffffea0001382e00 FS: 0000555561b3e500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c40602c CR3: 000000007814e000 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+0x529/0x930 fs/inode.c:701 __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:0x7f99b257ff19 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:00007ffe71f4b058 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 000000000003456a RCX: 00007f99b257ff19 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f99b2747ba0 R08: 0000000000000001 R09: 00007ffe71f4b33f R10: 00007f99b2200000 R11: 0000000000000246 R12: 00000000000345b9 R13: 00007f99b2745fa0 R14: 0000000000000032 R15: ffffffffffffffff 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 07 23 2b 00 e9 14 fe ff ff e8 0d 9a d3 ff 4c 89 ef 48 c7 c6 e0 fe 14 8b e8 5e 5b 13 00 <0f> 0b e8 f7 99 d3 ff 4c 89 ef 48 c7 c6 60 04 15 8b e8 48 5b 13 00 RSP: 0018:ffffc9001b79f578 EFLAGS: 00010046 RAX: a8c8a393d10eca00 RBX: ffff888076899658 RCX: ffffc9001b79f303 RDX: 0000000000000002 RSI: ffffffff8b0c1340 RDI: ffffffff8b5e6200 RBP: ffffc9001b79f718 R08: dffffc0000000000 R09: fffffbfff1d35ef6 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888076899658 R13: ffffea0001382e00 R14: ffffea0001382e00 R15: ffffea0001382e00 FS: 0000555561b3e500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c40602c CR3: 000000007814e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400