BUG: Bad page state in process syz-executor267 pfn:21f2f page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x21f2f flags: 0xfff8000000800c(referenced|uptodate|private|node=0|zone=1|lastcpupid=0xfff) page_type: 0xffffffff() raw: 00fff8000000800c dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000003 ffff88807dc05000 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 5069, tgid -169952384 (syz-executor267), ts 5069, free_ts 59947099025 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1ea/0x210 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0x3410/0x35b0 mm/page_alloc.c:3317 __alloc_pages+0x256/0x6c0 mm/page_alloc.c:4575 alloc_pages_mpol+0x3e8/0x680 mm/mempolicy.c:2264 alloc_pages mm/mempolicy.c:2335 [inline] folio_alloc+0x128/0x180 mm/mempolicy.c:2342 filemap_alloc_folio+0xdf/0x500 mm/filemap.c:984 do_read_cache_folio+0xed/0x820 mm/filemap.c:3711 do_read_cache_page+0x30/0x200 mm/filemap.c:3813 read_mapping_page include/linux/pagemap.h:888 [inline] __get_metapage+0x330/0x1050 fs/jfs/jfs_metapage.c:620 dbAdjCtl+0x138/0x9c0 fs/jfs/jfs_dmap.c:2481 dbAllocDmap fs/jfs/jfs_dmap.c:2042 [inline] dbAllocDmapLev+0x29c/0x4a0 fs/jfs/jfs_dmap.c:1986 dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1823 dbAllocAG+0x28f/0x10b0 fs/jfs/jfs_dmap.c:1364 dbDiscardAG+0x352/0xa10 fs/jfs/jfs_dmap.c:1613 jfs_ioc_trim+0x433/0x670 fs/jfs/jfs_discard.c:100 jfs_ioctl+0x2d0/0x3e0 fs/jfs/ioctl.c:131 page last free pid 5069 tgid 5069 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x97b/0xaa0 mm/page_alloc.c:2347 free_unref_folios+0x1f2/0xc10 mm/page_alloc.c:2536 folios_put_refs+0x93a/0xa60 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] mapping_try_invalidate+0x4d4/0x620 mm/truncate.c:526 reconfigure_super+0x5dd/0x880 fs/super.c:1094 vfs_cmd_reconfigure fs/fsopen.c:267 [inline] vfs_fsconfig_locked fs/fsopen.c:296 [inline] __do_sys_fsconfig fs/fsopen.c:476 [inline] __se_sys_fsconfig+0xab5/0xec0 fs/fsopen.c:349 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 5069 Comm: syz-executor267 Not tainted 6.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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:515 free_page_is_bad mm/page_alloc.c:968 [inline] free_pages_prepare mm/page_alloc.c:1133 [inline] free_unref_page_prepare+0xa46/0xaa0 mm/page_alloc.c:2347 free_unref_folios+0x1f2/0xc10 mm/page_alloc.c:2536 folios_put_refs+0x93a/0xa60 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:362 dbUnmount+0x115/0x190 fs/jfs/jfs_dmap.c:275 jfs_umount+0x238/0x3a0 fs/jfs/jfs_umount.c:87 jfs_put_super+0x8a/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x136/0x2d0 fs/super.c:641 kill_block_super+0x44/0x90 fs/super.c:1675 deactivate_locked_super+0xc4/0x130 fs/super.c:472 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1267 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa1b/0x27e0 kernel/exit.c:878 do_group_exit+0x207/0x2c0 kernel/exit.c:1027 __do_sys_exit_group kernel/exit.c:1038 [inline] __se_sys_exit_group kernel/exit.c:1036 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f48a5dafb89 Code: Unable to access opcode bytes at 0x7f48a5dafb5f. RSP: 002b:00007ffee84a0688 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f48a5dafb89 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007f48a5e32390 R08: ffffffffffffffb8 R09: 00005555644e5378 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f48a5e32390 R13: 0000000000000000 R14: 00007f48a5e33100 R15: 00007f48a5d7de50 BUG: Bad page state in process syz-executor267 pfn:2bb91 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x2bb91 flags: 0xfff8000000800c(referenced|uptodate|private|node=0|zone=1|lastcpupid=0xfff) page_type: 0xffffffff() raw: 00fff8000000800c dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000004 ffff88804337ae88 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 5069, tgid -170753726 (syz-executor267), ts 5069, free_ts 59947104865 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1ea/0x210 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0x3410/0x35b0 mm/page_alloc.c:3317 __alloc_pages+0x256/0x6c0 mm/page_alloc.c:4575 alloc_pages_mpol+0x3e8/0x680 mm/mempolicy.c:2264 alloc_pages mm/mempolicy.c:2335 [inline] folio_alloc+0x128/0x180 mm/mempolicy.c:2342 filemap_alloc_folio+0xdf/0x500 mm/filemap.c:984 do_read_cache_folio+0xed/0x820 mm/filemap.c:3711 do_read_cache_page+0x30/0x200 mm/filemap.c:3813 read_mapping_page include/linux/pagemap.h:888 [inline] __get_metapage+0x330/0x1050 fs/jfs/jfs_metapage.c:620 dbAllocCtl+0xd5/0x920 fs/jfs/jfs_dmap.c:1816 dbAllocAG+0x28f/0x10b0 fs/jfs/jfs_dmap.c:1364 dbDiscardAG+0x352/0xa10 fs/jfs/jfs_dmap.c:1613 jfs_ioc_trim+0x433/0x670 fs/jfs/jfs_discard.c:100 jfs_ioctl+0x2d0/0x3e0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 page last free pid 5069 tgid 5069 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x97b/0xaa0 mm/page_alloc.c:2347 free_unref_folios+0x1f2/0xc10 mm/page_alloc.c:2536 folios_put_refs+0x93a/0xa60 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] mapping_try_invalidate+0x4d4/0x620 mm/truncate.c:526 reconfigure_super+0x5dd/0x880 fs/super.c:1094 vfs_cmd_reconfigure fs/fsopen.c:267 [inline] vfs_fsconfig_locked fs/fsopen.c:296 [inline] __do_sys_fsconfig fs/fsopen.c:476 [inline] __se_sys_fsconfig+0xab5/0xec0 fs/fsopen.c:349 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 5069 Comm: syz-executor267 Tainted: G B 6.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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:515 free_page_is_bad mm/page_alloc.c:968 [inline] free_pages_prepare mm/page_alloc.c:1133 [inline] free_unref_page_prepare+0xa46/0xaa0 mm/page_alloc.c:2347 free_unref_folios+0x1f2/0xc10 mm/page_alloc.c:2536 folios_put_refs+0x93a/0xa60 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:362 dbUnmount+0x115/0x190 fs/jfs/jfs_dmap.c:275 jfs_umount+0x238/0x3a0 fs/jfs/jfs_umount.c:87 jfs_put_super+0x8a/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x136/0x2d0 fs/super.c:641 kill_block_super+0x44/0x90 fs/super.c:1675 deactivate_locked_super+0xc4/0x130 fs/super.c:472 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1267 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa1b/0x27e0 kernel/exit.c:878 do_group_exit+0x207/0x2c0 kernel/exit.c:1027 __do_sys_exit_group kernel/exit.c:1038 [inline] __se_sys_exit_group kernel/exit.c:1036 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f48a5dafb89 Code: Unable to access opcode bytes at 0x7f48a5dafb5f. RSP: 002b:00007ffee84a0688 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f48a5dafb89 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007f48a5e32390 R