BUG: Bad page state in process jfsCommit pfn:116bb7 page:0000000059a88ef9 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x116bb7 flags: 0x5ffc00000002005(locked|uptodate|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002005 dead000000000100 dead000000000122 0000000000000000 raw: 000000000000001c ffff0000d2e219b0 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 1 PID: 248 Comm: jfsCommit Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 bad_page+0x188/0x1a8 mm/page_alloc.c:652 check_free_page_bad+0xf4/0x16c mm/page_alloc.c:1199 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+0x744/0xaa0 mm/page_alloc.c:3317 free_unref_page+0x78/0x1fc mm/page_alloc.c:3396 __put_single_page mm/swap.c:98 [inline] __put_page+0xf8/0x134 mm/swap.c:129 put_page include/linux/mm.h:1247 [inline] _metapage_homeok+0x138/0x288 fs/jfs/jfs_metapage.h:119 txUnlock+0x220/0xb78 fs/jfs/jfs_txnmgr.c:932 txLazyCommit fs/jfs/jfs_txnmgr.c:2716 [inline] jfs_lazycommit+0x470/0x9bc fs/jfs/jfs_txnmgr.c:2766 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 page:0000000059a88ef9 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x116bb7 flags: 0x5ffc00000002005(locked|uptodate|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002005 dead000000000100 dead000000000122 0000000000000000 raw: 000000000000001c ffff0000d2e219b0 00000000ffffffff 0000000000000000 page dumped because: VM_BUG_ON_PAGE(((unsigned int) page_ref_count(page) + 127u <= 127u)) ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1213! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 248 Comm: jfsCommit Tainted: G B 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : get_page include/linux/mm.h:1213 [inline] pc : put_metapage+0x280/0x2e4 fs/jfs/jfs_metapage.c:722 lr : get_page include/linux/mm.h:1213 [inline] lr : put_metapage+0x280/0x2e4 fs/jfs/jfs_metapage.c:722 sp : ffff80001bfc7bc0 x29: ffff80001bfc7bc0 x28: ffff80001af0bbf8 x27: 1fffe0001a5c433b x26: 1fffe0001a5c4348 x25: dfff800000000000 x24: 000000000000007f x23: fffffc00035aedf4 x22: fffffc00035aedc0 x21: ffff0000d2e219d8 x20: ffff0000d2e21a40 x19: ffff0000d2e219b0 x18: 0000000000000002 x17: 0000000040000000 x16: ffff8000111bc798 x15: 0000000000000002 x14: 0000000000ff0100 x13: ffffffffffffffff x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : 0fe96514ce0bf800 x8 : 0fe96514ce0bf800 x7 : 0000000000000000 x6 : ffff80000824599c x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000a723764 x2 : ffff0001a10e6d50 x1 : 0000000100000000 x0 : 0000000000000059 Call trace: get_page include/linux/mm.h:1213 [inline] put_metapage+0x280/0x2e4 fs/jfs/jfs_metapage.c:722 txUnlock+0x398/0xb78 fs/jfs/jfs_txnmgr.c:947 txLazyCommit fs/jfs/jfs_txnmgr.c:2716 [inline] jfs_lazycommit+0x470/0x9bc fs/jfs/jfs_txnmgr.c:2766 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 Code: f003f541 91358021 aa1603e0 97bdcea2 (d4210000) ---[ end trace e21c03a3742069cc ]---