blkno = 5002c, nblocks = 1 ERROR: (device loop6): dbUpdatePMap: blocks are outside the map ERROR: (device loop6): remounting filesystem as read-only BUG: Bad page state in process jfsCommit pfn:19399 page:ffffea000064e640 refcount:0 mapcount:0 mapping:0000000000000000 index:0x5002c pfn:0x19399 flags: 0xfff00000002005(locked|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002005 dead000000000100 dead000000000122 0000000000000000 raw: 000000000005002c ffff88807ea4f000 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 8015, ts 191272199420, free_ts 191188369586 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5464 __page_cache_alloc+0xd4/0x4a0 mm/filemap.c:1022 pagecache_get_page+0xa91/0x1010 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+0x2a4/0x1070 fs/jfs/jfs_metapage.c:614 dtSplitRoot+0x2ab/0x1920 fs/jfs/jfs_dtree.c:1907 dtSplitUp fs/jfs/jfs_dtree.c:990 [inline] dtInsert+0x12f6/0x6b00 fs/jfs/jfs_dtree.c:868 jfs_link+0x371/0x6b0 fs/jfs/namei.c:825 vfs_link+0x65e/0x810 fs/namei.c:4557 do_linkat+0x5c8/0x9d0 fs/namei.c:4628 __do_sys_linkat fs/namei.c:4656 [inline] __se_sys_linkat fs/namei.c:4653 [inline] __x64_sys_linkat+0xd9/0xf0 fs/namei.c:4653 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 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+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page_list+0x1f7/0x8e0 mm/page_alloc.c:3433 release_pages+0x1bb9/0x1f40 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+0x177/0x320 mm/mmu_gather.c:338 exit_mmap+0x3cd/0x670 mm/mmap.c:3188 __mmput+0x112/0x3b0 kernel/fork.c:1127 exit_mm+0x688/0x7f0 kernel/exit.c:550 do_exit+0x626/0x2480 kernel/exit.c:861 do_group_exit+0x144/0x310 kernel/exit.c:996 __do_sys_exit_group kernel/exit.c:1007 [inline] __se_sys_exit_group kernel/exit.c:1005 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1005 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Modules linked in: CPU: 1 PID: 274 Comm: jfsCommit Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:652 check_free_page_bad mm/page_alloc.c:1199 [inline] 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+0x48d/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 txUnlock+0x282/0xca0 fs/jfs/jfs_txnmgr.c:932 txLazyCommit fs/jfs/jfs_txnmgr.c:2716 [inline] jfs_lazycommit+0x5cd/0xc30 fs/jfs/jfs_txnmgr.c:2766 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 page:ffffea000064e640 refcount:0 mapcount:0 mapping:0000000000000000 index:0x5002c pfn:0x19399 flags: 0xfff00000002005(locked|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002005 dead000000000100 dead000000000122 0000000000000000 raw: 000000000005002c ffff88807ea4f000 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 8015, ts 191272199420, free_ts 191188369586 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5464 __page_cache_alloc+0xd4/0x4a0 mm/filemap.c:1022 pagecache_get_page+0xa91/0x1010 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+0x2a4/0x1070 fs/jfs/jfs_metapage.c:614 dtSplitRoot+0x2ab/0x1920 fs/jfs/jfs_dtree.c:1907 dtSplitUp fs/jfs/jfs_dtree.c:990 [inline] dtInsert+0x12f6/0x6b00 fs/jfs/jfs_dtree.c:868 jfs_link+0x371/0x6b0 fs/jfs/namei.c:825 vfs_link+0x65e/0x810 fs/namei.c:4557 do_linkat+0x5c8/0x9d0 fs/namei.c:4628 __do_sys_linkat fs/namei.c:4656 [inline] __se_sys_linkat fs/namei.c:4653 [inline] __x64_sys_linkat+0xd9/0xf0 fs/namei.c:4653 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 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+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page_list+0x1f7/0x8e0 mm/page_alloc.c:3433 release_pages+0x1bb9/0x1f40 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+0x177/0x320 mm/mmu_gather.c:338 exit_mmap+0x3cd/0x670 mm/mmap.c:3188 __mmput+0x112/0x3b0 kernel/fork.c:1127 exit_mm+0x688/0x7f0 kernel/exit.c:550 do_exit+0x626/0x2480 kernel/exit.c:861 do_group_exit+0x144/0x310 kernel/exit.c:996 __do_sys_exit_group kernel/exit.c:1007 [inline] __se_sys_exit_group kernel/exit.c:1005 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1005 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 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: 0 PID: 274 Comm: jfsCommit Tainted: G B 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:get_page include/linux/mm.h:1213 [inline] RIP: 0010:put_metapage+0x283/0x290 fs/jfs/jfs_metapage.c:722 Code: 03 38 c1 0f 8c f8 fe ff ff 4c 89 ff e8 66 6a e5 fe e9 eb fe ff ff e8 2c 92 9b fe 4c 89 e7 48 c7 c6 e0 64 c1 8a e8 3d e4 d1 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 RSP: 0018:ffffc90002677cc0 EFLAGS: 00010246 RAX: 7897a83d01f84b00 RBX: 000000000000007f RCX: ffff88801e593b80 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: ffff88807ea4f000 R08: ffffffff81d10e84 R09: ffffed10172067a8 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea000064e640 R13: ffff88807ea4f028 R14: 1ffff1100fd49e05 R15: ffffea000064e674 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563d10efd008 CR3: 000000005cd54000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: txUnlock+0x42f/0xca0 fs/jfs/jfs_txnmgr.c:947 txLazyCommit fs/jfs/jfs_txnmgr.c:2716 [inline] jfs_lazycommit+0x5cd/0xc30 fs/jfs/jfs_txnmgr.c:2766 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Modules linked in: ---[ end trace 79587984c016ee20 ]--- RIP: 0010:get_page include/linux/mm.h:1213 [inline] RIP: 0010:put_metapage+0x283/0x290 fs/jfs/jfs_metapage.c:722 Code: 03 38 c1 0f 8c f8 fe ff ff 4c 89 ff e8 66 6a e5 fe e9 eb fe ff ff e8 2c 92 9b fe 4c 89 e7 48 c7 c6 e0 64 c1 8a e8 3d e4 d1 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 RSP: 0018:ffffc90002677cc0 EFLAGS: 00010246 RAX: 7897a83d01f84b00 RBX: 000000000000007f RCX: ffff88801e593b80 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: ffff88807ea4f000 R08: ffffffff81d10e84 R09: ffffed10172067a8 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea000064e640 R13: ffff88807ea4f028 R14: 1ffff1100fd49e05 R15: ffffea000064e674 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563d10efd008 CR3: 000000002a8c8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400