blkno = 5002c, nblocks = 1 ERROR: (device loop0): dbUpdatePMap: blocks are outside the map ERROR: (device loop0): remounting filesystem as read-only BUG: Bad page state in process jfsCommit pfn:124990 page:00000000d34b16a3 refcount:0 mapcount:0 mapping:0000000000000000 index:0x24 pfn:0x124990 flags: 0x5ffc00000002047(locked|referenced|uptodate|workingset|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002047 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000024 ffff0000f4a77d90 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 0 PID: 93 Comm: jfsCommit Not tainted 6.1.127-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 bad_page+0x1a4/0x1c4 mm/page_alloc.c:699 free_page_is_bad_report mm/page_alloc.c:1281 [inline] free_page_is_bad mm/page_alloc.c:1291 [inline] free_pages_prepare mm/page_alloc.c:1452 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x3a0/0x1330 mm/page_alloc.c:3384 free_unref_page+0x80/0x420 mm/page_alloc.c:3479 __folio_put_small mm/swap.c:97 [inline] __folio_put+0xd0/0x12c mm/swap.c:120 folio_put include/linux/mm.h:1171 [inline] put_page include/linux/mm.h:1223 [inline] _metapage_homeok+0x130/0x21c fs/jfs/jfs_metapage.h:119 txUnlock+0x264/0xbb0 fs/jfs/jfs_txnmgr.c:932 txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline] jfs_lazycommit+0x490/0x988 fs/jfs/jfs_txnmgr.c:2732 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 page:00000000d34b16a3 refcount:0 mapcount:0 mapping:0000000000000000 index:0x24 pfn:0x124990 flags: 0x5ffc00000002047(locked|referenced|uptodate|workingset|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002047 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000024 ffff0000f4a77d90 00000000ffffffff 0000000000000000 page dumped because: VM_BUG_ON_FOLIO(((unsigned int) folio_ref_count(folio) + 127u <= 127u)) ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1135! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 93 Comm: jfsCommit Tainted: G B 6.1.127-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : folio_get include/linux/mm.h:1135 [inline] pc : get_page include/linux/mm.h:1141 [inline] pc : put_metapage+0x278/0x2c4 fs/jfs/jfs_metapage.c:721 lr : folio_get include/linux/mm.h:1135 [inline] lr : get_page include/linux/mm.h:1141 [inline] lr : put_metapage+0x278/0x2c4 fs/jfs/jfs_metapage.c:721 sp : ffff80001ef87ba0 x29: ffff80001ef87ba0 x28: dfff800000000000 x27: 1fffe0001e94efb7 x26: 1fffe0001e94efc4 x25: dfff800000000000 x24: 000000000000007f x23: fffffc0003926434 x22: fffffc0003926400 x21: ffff0000f4a77db8 x20: ffff0000f4a77e20 x19: ffff0000f4a77d90 x18: 1fffe000367a0176 x17: 635f6665725f6f69 x16: ffff80001232fa24 x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff800008835654 x8 : ffff0000c7471bc0 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001ef87418 x4 : ffff800015b731c0 x3 : ffff80000ab35c2c x2 : ffff0001b3d00cd0 x1 : 0000000100000000 x0 : 000000000000005c Call trace: folio_get include/linux/mm.h:1135 [inline] get_page include/linux/mm.h:1141 [inline] put_metapage+0x278/0x2c4 fs/jfs/jfs_metapage.c:721 txUnlock+0x3e4/0xbb0 fs/jfs/jfs_txnmgr.c:947 txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline] jfs_lazycommit+0x490/0x988 fs/jfs/jfs_txnmgr.c:2732 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 Code: b0046d81 910b8021 aa1603e0 97b79018 (d4210000) ---[ end trace 0000000000000000 ]---