BUG: Bad page state in process jfsCommit pfn:588f1 page:ffffea0001623c40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2c pfn:0x588f1 flags: 0xfff0800000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff0800000820d dead000000000100 dead000000000122 0000000000000000 raw: 000000000000002c ffff8880589b6c98 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 14685, tgid 14684 (syz.1.1864), ts 1059131745110, free_ts 1058112046494 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_create+0x6a1/0xa40 fs/jfs/namei.c:137 lookup_open fs/namei.c:3496 [inline] open_last_lookups fs/namei.c:3564 [inline] path_openat+0x1277/0x3190 fs/namei.c:3794 do_filp_open+0x1c5/0x3d0 fs/namei.c:3824 do_sys_openat2+0x12c/0x1c0 fs/open.c:1419 do_sys_open fs/open.c:1434 [inline] __do_sys_creat fs/open.c:1512 [inline] __se_sys_creat fs/open.c:1506 [inline] __x64_sys_creat+0x90/0xb0 fs/open.c:1506 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 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 vfree+0x1a6/0x320 mm/vmalloc.c:2868 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:2788 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Modules linked in: CPU: 0 PID: 112 Comm: jfsCommit Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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+0x32/0x2e0 mm/page_alloc.c:2429 txUnlock+0x27e/0xcb0 fs/jfs/jfs_txnmgr.c:932 txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline] jfs_lazycommit+0x570/0xa60 fs/jfs/jfs_txnmgr.c:2732 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 page:ffffea0001623c40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2c pfn:0x588f1 flags: 0xfff0800000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff0800000820d dead000000000100 dead000000000122 0000000000000000 raw: 000000000000002c ffff8880589b6c98 00000000ffffffff 0000000000000000 page dumped because: VM_BUG_ON_FOLIO(((unsigned int) folio_ref_count(folio) + 127u <= 127u)) 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 14685, tgid 14684 (syz.1.1864), ts 1059131745110, free_ts 1058112046494 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_create+0x6a1/0xa40 fs/jfs/namei.c:137 lookup_open fs/namei.c:3496 [inline] open_last_lookups fs/namei.c:3564 [inline] path_openat+0x1277/0x3190 fs/namei.c:3794 do_filp_open+0x1c5/0x3d0 fs/namei.c:3824 do_sys_openat2+0x12c/0x1c0 fs/open.c:1419 do_sys_open fs/open.c:1434 [inline] __do_sys_creat fs/open.c:1512 [inline] __se_sys_creat fs/open.c:1506 [inline] __x64_sys_creat+0x90/0xb0 fs/open.c:1506 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 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 vfree+0x1a6/0x320 mm/vmalloc.c:2868 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:2788 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1458! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 112 Comm: jfsCommit Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:folio_get include/linux/mm.h:1458 [inline] RIP: 0010:get_page include/linux/mm.h:1464 [inline] RIP: 0010:put_metapage+0x253/0x340 fs/jfs/jfs_metapage.c:750 Code: 38 c1 0f 8c 32 ff ff ff 4c 89 ef e8 f7 29 dd fe e9 25 ff ff ff e8 bd ce 85 fe 48 8b 3c 24 48 c7 c6 80 f4 e3 8a e8 5d 94 c5 fe <0f> 0b f3 0f 1e fa 4c 8b 2c 24 4c 89 ee 48 81 e6 ff 0f 00 00 31 ff RSP: 0018:ffffc90002ce7cc0 EFLAGS: 00010246 RAX: 79eabaabf9dd7d00 RBX: ffff8880589b6c98 RCX: 79eabaabf9dd7d00 RDX: 0000000000000000 RSI: ffffffff8afc6ae0 RDI: ffffffff8afc6aa0 RBP: 000000000000007f R08: ffffffff8e4a8d6f R09: 1ffffffff1c951ad R10: dffffc0000000000 R11: fffffbfff1c951ae R12: ffff8880589b6cc0 R13: ffffea0001623c74 R14: 1ffff1100b136d98 R15: 1ffff1100b136da5 FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d06bd1c138 CR3: 000000002feaa000 CR4: 00000000003506e0 Call Trace: txUnlock+0x427/0xcb0 fs/jfs/jfs_txnmgr.c:947 txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline] jfs_lazycommit+0x570/0xa60 fs/jfs/jfs_txnmgr.c:2732 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_get include/linux/mm.h:1458 [inline] RIP: 0010:get_page include/linux/mm.h:1464 [inline] RIP: 0010:put_metapage+0x253/0x340 fs/jfs/jfs_metapage.c:750 Code: 38 c1 0f 8c 32 ff ff ff 4c 89 ef e8 f7 29 dd fe e9 25 ff ff ff e8 bd ce 85 fe 48 8b 3c 24 48 c7 c6 80 f4 e3 8a e8 5d 94 c5 fe <0f> 0b f3 0f 1e fa 4c 8b 2c 24 4c 89 ee 48 81 e6 ff 0f 00 00 31 ff RSP: 0018:ffffc90002ce7cc0 EFLAGS: 00010246 RAX: 79eabaabf9dd7d00 RBX: ffff8880589b6c98 RCX: 79eabaabf9dd7d00 RDX: 0000000000000000 RSI: ffffffff8afc6ae0 RDI: ffffffff8afc6aa0 RBP: 000000000000007f R08: ffffffff8e4a8d6f R09: 1ffffffff1c951ad R10: dffffc0000000000 R11: fffffbfff1c951ae R12: ffff8880589b6cc0 R13: ffffea0001623c74 R14: 1ffff1100b136d98 R15: 1ffff1100b136da5 FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d06bd1c138 CR3: 000000005a28a000 CR4: 00000000003506e0