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:7a7dc page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x5002c pfn:0x7a7dc flags: 0xfff0000000400d(locked|referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000400d dead000000000100 dead000000000122 0000000000000000 raw: 000000000005002c ffff88801cafc6c8 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 5185, tgid 5185 (syz-executor283), ts 138342783771, free_ts 138283454965 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 alloc_pages_noprof mm/mempolicy.c:2336 [inline] folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2343 filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1008 __filemap_get_folio+0x44e/0xc10 mm/filemap.c:1950 pagecache_get_page+0x2c/0x200 mm/folio-compat.c:87 find_or_create_page include/linux/pagemap.h:776 [inline] grab_cache_page include/linux/pagemap.h:892 [inline] __get_metapage+0x2b4/0x1050 fs/jfs/jfs_metapage.c:613 dtSplitRoot+0x2af/0x1930 fs/jfs/jfs_dtree.c:1907 dtSplitUp fs/jfs/jfs_dtree.c:990 [inline] dtInsert+0x12fa/0x6b00 fs/jfs/jfs_dtree.c:868 jfs_create+0x7ba/0xb90 fs/jfs/namei.c:137 lookup_open fs/namei.c:3505 [inline] open_last_lookups fs/namei.c:3574 [inline] path_openat+0x1a84/0x35f0 fs/namei.c:3810 do_filp_open+0x235/0x490 fs/namei.c:3840 do_sys_openat2+0x13e/0x1d0 fs/open.c:1413 do_sys_open fs/open.c:1428 [inline] __do_sys_openat fs/open.c:1444 [inline] __se_sys_openat fs/open.c:1439 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1439 page last free pid 5185 tgid 5185 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_folios+0xf12/0x19c0 mm/page_alloc.c:2637 folios_put_refs+0x93a/0xa60 mm/swap.c:1024 free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 unmap_region+0x2df/0x350 mm/mmap.c:2370 do_vmi_align_munmap+0x1122/0x18c0 mm/mmap.c:2683 do_vmi_munmap+0x261/0x2f0 mm/mmap.c:2759 __vm_munmap+0x1fc/0x400 mm/mmap.c:3038 __do_sys_munmap mm/mmap.c:3055 [inline] __se_sys_munmap mm/mmap.c:3052 [inline] __x64_sys_munmap+0x68/0x80 mm/mmap.c:3052 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 113 Comm: jfsCommit Not tainted 6.10.0-rc7-syzkaller-00266-g4d145e3f830b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 __folio_put+0x3b9/0x620 mm/swap.c:129 txUnlock+0x282/0xca0 fs/jfs/jfs_txnmgr.c:932 txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline] jfs_lazycommit+0x5f4/0xb80 fs/jfs/jfs_txnmgr.c:2733 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x5002c pfn:0x7a7dc flags: 0xfff0000000400d(locked|referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000400d dead000000000100 dead000000000122 0000000000000000 raw: 000000000005002c ffff88801cafc6c8 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 5185, tgid 5185 (syz-executor283), ts 138342783771, free_ts 138283454965 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 alloc_pages_noprof mm/mempolicy.c:2336 [inline] folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2343 filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1008 __filemap_get_folio+0x44e/0xc10 mm/filemap.c:1950 pagecache_get_page+0x2c/0x200 mm/folio-compat.c:87 find_or_create_page include/linux/pagemap.h:776 [inline] grab_cache_page include/linux/pagemap.h:892 [inline] __get_metapage+0x2b4/0x1050 fs/jfs/jfs_metapage.c:613 dtSplitRoot+0x2af/0x1930 fs/jfs/jfs_dtree.c:1907 dtSplitUp fs/jfs/jfs_dtree.c:990 [inline] dtInsert+0x12fa/0x6b00 fs/jfs/jfs_dtree.c:868 jfs_create+0x7ba/0xb90 fs/jfs/namei.c:137 lookup_open fs/namei.c:3505 [inline] open_last_lookups fs/namei.c:3574 [inline] path_openat+0x1a84/0x35f0 fs/namei.c:3810 do_filp_open+0x235/0x490 fs/namei.c:3840 do_sys_openat2+0x13e/0x1d0 fs/open.c:1413 do_sys_open fs/open.c:1428 [inline] __do_sys_openat fs/open.c:1444 [inline] __se_sys_openat fs/open.c:1439 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1439 page last free pid 5185 tgid 5185 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_folios+0xf12/0x19c0 mm/page_alloc.c:2637 folios_put_refs+0x93a/0xa60 mm/swap.c:1024 free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 unmap_region+0x2df/0x350 mm/mmap.c:2370 do_vmi_align_munmap+0x1122/0x18c0 mm/mmap.c:2683 do_vmi_munmap+0x261/0x2f0 mm/mmap.c:2759 __vm_munmap+0x1fc/0x400 mm/mmap.c:3038 __do_sys_munmap mm/mmap.c:3055 [inline] __se_sys_munmap mm/mmap.c:3052 [inline] __x64_sys_munmap+0x68/0x80 mm/mmap.c:3052 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1479! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 113 Comm: jfsCommit Tainted: G B 6.10.0-rc7-syzkaller-00266-g4d145e3f830b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:folio_get include/linux/mm.h:1479 [inline] RIP: 0010:get_page include/linux/mm.h:1485 [inline] RIP: 0010:put_metapage+0x265/0x310 fs/jfs/jfs_metapage.c:750 Code: 24 49 81 e5 ff 0f 00 00 74 22 e8 a6 37 71 fe e9 9c 00 00 00 e8 9c 37 71 fe 48 8b 3c 24 48 c7 c6 a0 c3 02 8c e8 1c 28 b8 fe 90 <0f> 0b 48 8b 1c 24 48 89 df be 08 00 00 00 e8 48 b8 d3 fe 48 c1 eb RSP: 0018:ffffc9000269fc98 EFLAGS: 00010246 RAX: 0587104a340d3a00 RBX: 000000000000007f RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c1f5520 RDI: 0000000000000001 RBP: ffff88801cafc6c8 R08: ffffffff8fac692f R09: 1ffffffff1f58d25 R10: dffffc0000000000 R11: fffffbfff1f58d26 R12: dffffc0000000000 R13: ffffea0001e9f734 R14: 1ffff1100395f8de R15: ffff88801cafc6f0 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555566676f8 CR3: 000000000e132000 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:2682 [inline] jfs_lazycommit+0x5f4/0xb80 fs/jfs/jfs_txnmgr.c:2733 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_get include/linux/mm.h:1479 [inline] RIP: 0010:get_page include/linux/mm.h:1485 [inline] RIP: 0010:put_metapage+0x265/0x310 fs/jfs/jfs_metapage.c:750 Code: 24 49 81 e5 ff 0f 00 00 74 22 e8 a6 37 71 fe e9 9c 00 00 00 e8 9c 37 71 fe 48 8b 3c 24 48 c7 c6 a0 c3 02 8c e8 1c 28 b8 fe 90 <0f> 0b 48 8b 1c 24 48 89 df be 08 00 00 00 e8 48 b8 d3 fe 48 c1 eb RSP: 0018:ffffc9000269fc98 EFLAGS: 00010246 RAX: 0587104a340d3a00 RBX: 000000000000007f RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c1f5520 RDI: 0000000000000001 RBP: ffff88801cafc6c8 R08: ffffffff8fac692f R09: 1ffffffff1f58d25 R10: dffffc0000000000 R11: fffffbfff1f58d26 R12: dffffc0000000000 R13: ffffea0001e9f734 R14: 1ffff1100395f8de R15: ffff88801cafc6f0 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555566676f8 CR3: 000000000e132000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400