BUG: Bad page state in process jfsCommit pfn:66c94 page:ffffea00019b2500 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2c pfn:0x66c94 flags: 0xfff00000002005(locked|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002005 dead000000000100 dead000000000122 0000000000000000 raw: 000000000000002c ffff888043d4d7c0 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 0x100c40(GFP_NOFS|__GFP_HARDWALL), pid 4907, ts 122302018809, free_ts 122274055432 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 pagecache_get_page+0x986/0xef0 mm/filemap.c:1940 find_or_create_page include/linux/pagemap.h:420 [inline] grab_cache_page include/linux/pagemap.h:502 [inline] __get_metapage+0x282/0x1060 fs/jfs/jfs_metapage.c:614 dtSplitRoot+0x1e5/0x1510 fs/jfs/jfs_dtree.c:1908 dtSplitUp fs/jfs/jfs_dtree.c:991 [inline] dtInsert+0xd90/0x5730 fs/jfs/jfs_dtree.c:869 jfs_create+0x69d/0xa50 fs/jfs/namei.c:137 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x11e1/0x2f30 fs/namei.c:3739 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_creat fs/open.c:1345 [inline] __se_sys_creat fs/open.c:1339 [inline] __x64_sys_creat+0x8c/0xb0 fs/open.c:1339 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x164/0x2e0 mm/mmu_gather.c:338 exit_mmap+0x3a6/0x5f0 mm/mmap.c:3214 __mmput+0x115/0x3b0 kernel/fork.c:1127 exec_mmap+0x4d1/0x5c0 fs/exec.c:1035 begin_new_exec+0x7e8/0x1160 fs/exec.c:1293 load_elf_binary+0x98e/0x2890 fs/binfmt_elf.c:1001 search_binary_handler fs/exec.c:1742 [inline] exec_binprm fs/exec.c:1783 [inline] bprm_execve+0xa92/0x17d0 fs/exec.c:1852 do_execveat_common+0x51e/0x6d0 fs/exec.c:1957 do_execve fs/exec.c:2027 [inline] __do_sys_execve fs/exec.c:2103 [inline] __se_sys_execve fs/exec.c:2098 [inline] __x64_sys_execve+0x8e/0xa0 fs/exec.c:2098 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Modules linked in: CPU: 0 PID: 276 Comm: jfsCommit Not tainted 5.15.187-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:652 check_free_page mm/page_alloc.c:1209 [inline] free_pages_prepare mm/page_alloc.c:1334 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x383/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 txUnlock+0x27e/0xcb0 fs/jfs/jfs_txnmgr.c:932 txLazyCommit fs/jfs/jfs_txnmgr.c:2716 [inline] jfs_lazycommit+0x583/0xb20 fs/jfs/jfs_txnmgr.c:2766 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 page:ffffea00019b2500 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2c pfn:0x66c94 flags: 0xfff00000002005(locked|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002005 dead000000000100 dead000000000122 0000000000000000 raw: 000000000000002c ffff888043d4d7c0 00000000ffffffff 0000000000000000 page dumped because: VM_BUG_ON_PAGE(((unsigned int) page_ref_count(page) + 127u <= 127u)) page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x100c40(GFP_NOFS|__GFP_HARDWALL), pid 4907, ts 122302018809, free_ts 122274055432 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 pagecache_get_page+0x986/0xef0 mm/filemap.c:1940 find_or_create_page include/linux/pagemap.h:420 [inline] grab_cache_page include/linux/pagemap.h:502 [inline] __get_metapage+0x282/0x1060 fs/jfs/jfs_metapage.c:614 dtSplitRoot+0x1e5/0x1510 fs/jfs/jfs_dtree.c:1908 dtSplitUp fs/jfs/jfs_dtree.c:991 [inline] dtInsert+0xd90/0x5730 fs/jfs/jfs_dtree.c:869 jfs_create+0x69d/0xa50 fs/jfs/namei.c:137 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x11e1/0x2f30 fs/namei.c:3739 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_creat fs/open.c:1345 [inline] __se_sys_creat fs/open.c:1339 [inline] __x64_sys_creat+0x8c/0xb0 fs/open.c:1339 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x164/0x2e0 mm/mmu_gather.c:338 exit_mmap+0x3a6/0x5f0 mm/mmap.c:3214 __mmput+0x115/0x3b0 kernel/fork.c:1127 exec_mmap+0x4d1/0x5c0 fs/exec.c:1035 begin_new_exec+0x7e8/0x1160 fs/exec.c:1293 load_elf_binary+0x98e/0x2890 fs/binfmt_elf.c:1001 search_binary_handler fs/exec.c:1742 [inline] exec_binprm fs/exec.c:1783 [inline] bprm_execve+0xa92/0x17d0 fs/exec.c:1852 do_execveat_common+0x51e/0x6d0 fs/exec.c:1957 do_execve fs/exec.c:2027 [inline] __do_sys_execve fs/exec.c:2103 [inline] __se_sys_execve fs/exec.c:2098 [inline] __x64_sys_execve+0x8e/0xa0 fs/exec.c:2098 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1213! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 276 Comm: jfsCommit Tainted: G B 5.15.187-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:get_page include/linux/mm.h:1213 [inline] RIP: 0010:put_metapage+0x278/0x280 fs/jfs/jfs_metapage.c:722 Code: 38 c1 0f 8c 00 ff ff ff 4c 89 ef e8 32 3b f0 fe e9 f3 fe ff ff e8 38 c2 aa fe 48 8b 3c 24 48 c7 c6 e0 2c 42 8a e8 b8 42 de fe <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 RSP: 0018:ffffc9000270fce0 EFLAGS: 00010246 RAX: 01e1b2ab7b999400 RBX: ffff888043d4d7c0 RCX: ffff88801dad1dc0 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: 000000000000007f R08: dffffc0000000000 R09: fffff520004e1e81 R10: fffff520004e1e81 R11: 1ffff920004e1e80 R12: ffff888043d4d7e8 R13: ffffea00019b2534 R14: 1ffff110087a9afd R15: 1ffff110087a9b0a FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055972d120950 CR3: 000000004ee1f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: txUnlock+0x427/0xcb0 fs/jfs/jfs_txnmgr.c:947 txLazyCommit fs/jfs/jfs_txnmgr.c:2716 [inline] jfs_lazycommit+0x583/0xb20 fs/jfs/jfs_txnmgr.c:2766 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Modules linked in: ---[ end trace afbda99ddcc1f445 ]--- RIP: 0010:get_page include/linux/mm.h:1213 [inline] RIP: 0010:put_metapage+0x278/0x280 fs/jfs/jfs_metapage.c:722 Code: 38 c1 0f 8c 00 ff ff ff 4c 89 ef e8 32 3b f0 fe e9 f3 fe ff ff e8 38 c2 aa fe 48 8b 3c 24 48 c7 c6 e0 2c 42 8a e8 b8 42 de fe <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 RSP: 0018:ffffc9000270fce0 EFLAGS: 00010246 RAX: 01e1b2ab7b999400 RBX: ffff888043d4d7c0 RCX: ffff88801dad1dc0 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: 000000000000007f R08: dffffc0000000000 R09: fffff520004e1e81 R10: fffff520004e1e81 R11: 1ffff920004e1e80 R12: ffff888043d4d7e8 R13: ffffea00019b2534 R14: 1ffff110087a9afd R15: 1ffff110087a9b0a FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055972d120950 CR3: 000000004ee1f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400