JFS: metapage_get_blocks failed BUG: Bad page state in process syz.0.678 pfn:60af4 page:ffffea000182bd00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x50030 pfn:0x60af4 flags: 0xfff0000000800c(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff0000000800c ffffea0001b00b88 ffffc9000c227960 0000000000000000 raw: 0000000000050030 ffff88802646dc98 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 11174, tgid 11145 (syz.0.678), ts 474507612713, free_ts 474494785986 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 folio_alloc+0x1e/0x30 mm/mempolicy.c:2291 filemap_alloc_folio+0xdf/0x470 mm/filemap.c:1004 __filemap_get_folio+0x3ee/0xbc0 mm/filemap.c:1962 pagecache_get_page+0x2a/0x250 mm/folio-compat.c:99 find_or_create_page include/linux/pagemap.h:755 [inline] grab_cache_page include/linux/pagemap.h:877 [inline] __get_metapage+0x2a8/0xfa0 fs/jfs/jfs_metapage.c:613 dtSplitRoot+0x203/0x16b0 fs/jfs/jfs_dtree.c:1910 dtSplitUp fs/jfs/jfs_dtree.c:993 [inline] dtInsert+0xeec/0x5f40 fs/jfs/jfs_dtree.c:871 jfs_mkdir+0x6c6/0xa30 fs/jfs/namei.c:270 vfs_mkdir+0x296/0x440 fs/namei.c:4113 do_mkdirat+0x1d4/0x440 fs/namei.c:4136 __do_sys_mkdirat fs/namei.c:4151 [inline] __se_sys_mkdirat fs/namei.c:4149 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4149 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1154 [inline] free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 xfs_buf_free_pages+0x15b/0x340 fs/xfs/xfs_buf.c:287 xfs_buf_free+0x100/0x2a0 fs/xfs/xfs_buf.c:316 xfs_buf_rele+0x1240/0x16d0 fs/xfs/xfs_buf.c:-1 xfs_buftarg_drain+0x4a3/0x620 fs/xfs/xfs_buf.c:1860 xfs_log_unmount+0x134/0x1c0 fs/xfs/xfs_log.c:1107 xfs_unmountfs+0x1c2/0x270 fs/xfs/xfs_mount.c:1100 xfs_fs_put_super+0x65/0x140 fs/xfs/xfs_super.c:1142 generic_shutdown_super+0x134/0x2b0 fs/super.c:693 kill_block_super+0x44/0x90 fs/super.c:1660 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2032 deactivate_locked_super+0x97/0x100 fs/super.c:481 cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250 task_work_run+0x1ce/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 Modules linked in: CPU: 1 PID: 11146 Comm: syz.0.678 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:512 free_page_is_bad mm/page_alloc.c:961 [inline] free_pages_prepare mm/page_alloc.c:1146 [inline] free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2475 release_pages+0x1fa0/0x2220 mm/swap.c:1022 __folio_batch_release+0x71/0xe0 mm/swap.c:1042 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x358/0xf00 mm/truncate.c:371 jfs_remount+0x33b/0x5b0 fs/jfs/super.c:451 reconfigure_super+0x21e/0x880 fs/super.c:1151 vfs_cmd_reconfigure fs/fsopen.c:267 [inline] vfs_fsconfig_locked+0x16c/0x320 fs/fsopen.c:296 __do_sys_fsconfig fs/fsopen.c:475 [inline] __se_sys_fsconfig+0x700/0x850 fs/fsopen.c:349 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f52f298ebe9 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:00007f52f37a3038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f52f2bc5fa0 RCX: 00007f52f298ebe9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000004 RBP: 00007f52f2a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f52f2bc6038 R14: 00007f52f2bc5fa0 R15: 00007fff0cee0cf8