BUG: Bad page state in process syz.4.29 pfn:7d5c5 page:ffffea0001f57140 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2f pfn:0x7d5c5 flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002006 ffffea000156d508 ffffc9000497f980 0000000000000000 raw: 000000000000002f ffff8880733bc000 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 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 4478, tgid 4477 (syz.4.29), ts 92370505535, free_ts 91873712471 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5606 folio_alloc+0x1c/0x60 mm/mempolicy.c:2292 filemap_alloc_folio+0xdb/0x460 mm/filemap.c:999 __filemap_get_folio+0x697/0xdd0 mm/filemap.c:1993 pagecache_get_page+0x26/0x250 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:646 [inline] grab_cache_page include/linux/pagemap.h:778 [inline] __get_metapage+0x2a4/0xfa0 fs/jfs/jfs_metapage.c:613 diNewExt+0x9eb/0x2cb0 fs/jfs/jfs_imap.c:2275 diAllocExt fs/jfs/jfs_imap.c:1952 [inline] diAllocAG+0xde9/0x1c20 fs/jfs/jfs_imap.c:1669 diAlloc+0x1c9/0x1910 fs/jfs/jfs_imap.c:1590 ialloc+0x88/0x950 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x190/0xa70 fs/jfs/namei.c:225 vfs_mkdir+0x387/0x570 fs/namei.c:4106 do_mkdirat+0x1d0/0x430 fs/namei.c:4131 __do_sys_mkdir fs/namei.c:4151 [inline] __se_sys_mkdir fs/namei.c:4149 [inline] __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4149 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 __vunmap+0x856/0xa00 mm/vmalloc.c:2718 free_work+0x56/0x80 mm/vmalloc.c:97 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Modules linked in: CPU: 0 PID: 4525 Comm: syz.4.29 Not tainted 6.1.135-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:699 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+0x42a/0x9a0 mm/page_alloc.c:3384 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3525 release_pages+0x1f92/0x2200 mm/swap.c:1035 __pagevec_release+0x6d/0xe0 mm/swap.c:1055 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x2f6/0xff0 mm/truncate.c:372 jfs_remount+0x337/0x5a0 fs/jfs/super.c:451 reconfigure_super+0x219/0x880 fs/super.c:977 vfs_fsconfig_locked+0x18d/0x3f0 fs/fsopen.c:254 __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig+0x61b/0x750 fs/fsopen.c:314 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f642178e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6422678038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f64219b6080 RCX: 00007f642178e969 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000005 RBP: 00007f6421810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f64219b6080 R15: 00007ffd8500b6b8 BUG: Bad page state in process syz.4.29 pfn:55b54 page:ffffea000156d500 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2e pfn:0x55b54 flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002006 ffffea000156d548 ffffc9000497f980 0000000000000000 raw: 000000000000002e ffff88807e0a2e88 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 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 4478, tgid 4477 (syz.4.29), ts 92370454660, free_ts 91873897268 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5606 folio_alloc+0x1c/0x60 mm/mempolicy.c:2292 filemap_alloc_folio+0xdb/0x460 mm/filemap.c:999 __filemap_get_folio+0x697/0xdd0 mm/filemap.c:1993 pagecache_get_page+0x26/0x250 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:646 [inline] grab_cache_page include/linux/pagemap.h:778 [inline] __get_metapage+0x2a4/0xfa0 fs/jfs/jfs_metapage.c:613 diNewExt+0x9eb/0x2cb0 fs/jfs/jfs_imap.c:2275 diAllocExt fs/jfs/jfs_imap.c:1952 [inline] diAllocAG+0xde9/0x1c20 fs/jfs/jfs_imap.c:1669 diAlloc+0x1c9/0x1910 fs/jfs/jfs_imap.c:1590 ialloc+0x88/0x950 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x190/0xa70 fs/jfs/namei.c:225 vfs_mkdir+0x387/0x570 fs/namei.c:4106 do_mkdirat+0x1d0/0x430 fs/namei.c:4131 __do_sys_mkdir fs/namei.c:4151 [inline] __se_sys_mkdir fs/namei.c:4149 [inline] __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4149 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 __vunmap+0x856/0xa00 mm/vmalloc.c:2718 free_work+0x56/0x80 mm/vmalloc.c:97 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Modules linked in: CPU: 0 PID: 4525 Comm: syz.4.29 Tainted: G B 6.1.135-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:699 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+0x42a/0x9a0 mm/page_alloc.c:3384 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3525 release_pages+0x1f92/0x2200 mm/swap.c:1035 __pagevec_release+0x6d/0xe0 mm/swap.c:1055 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x2f6/0xff0 mm/truncate.c:372 jfs_remount+0x337/0x5a0 fs/jfs/super.c:451 reconfigure_super+0x219/0x880 fs/super.c:977 vfs_fsconfig_locked+0x18d/0x3f0 fs/fsopen.c:254 __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig+0x61b/0x750 fs/fsopen.c:314 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f642178e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6422678038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f64219b6080 RCX: 00007f642178e969 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000005 RBP: 00007f6421810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f64219b6080 R15: 00007ffd8500b6b8 BUG: Bad page state in process syz.4.29 pfn:55b55 page:ffffea000156d540 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2d pfn:0x55b55 flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002006 ffffea0001e78f48 ffffc9000497f980 0000000000000000 raw: 000000000000002d ffff88807e0a2d90 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 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 4478, tgid 4477 (syz.4.29), ts 92370215534, free_ts 91873908327 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5606 folio_alloc+0x1c/0x60 mm/mempolicy.c:2292 filemap_alloc_folio+0xdb/0x460 mm/filemap.c:999 __filemap_get_folio+0x697/0xdd0 mm/filemap.c:1993 pagecache_get_page+0x26/0x250 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:646 [inline] grab_cache_page include/linux/pagemap.h:778 [inline] __get_metapage+0x2a4/0xfa0 fs/jfs/jfs_metapage.c:613 diNewExt+0x9eb/0x2cb0 fs/jfs/jfs_imap.c:2275 diAllocExt fs/jfs/jfs_imap.c:1952 [inline] diAllocAG+0xde9/0x1c20 fs/jfs/jfs_imap.c:1669 diAlloc+0x1c9/0x1910 fs/jfs/jfs_imap.c:1590 ialloc+0x88/0x950 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x190/0xa70 fs/jfs/namei.c:225 vfs_mkdir+0x387/0x570 fs/namei.c:4106 do_mkdirat+0x1d0/0x430 fs/namei.c:4131 __do_sys_mkdir fs/namei.c:4151 [inline] __se_sys_mkdir fs/namei.c:4149 [inline] __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4149 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 __vunmap+0x856/0xa00 mm/vmalloc.c:2718 free_work+0x56/0x80 mm/vmalloc.c:97 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Modules linked in: CPU: 0 PID: 4525 Comm: syz.4.29 Tainted: G B 6.1.135-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:699 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+0x42a/0x9a0 mm/page_alloc.c:3384 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3525 release_pages+0x1f92/0x2200 mm/swap.c:1035 __pagevec_release+0x6d/0xe0 mm/swap.c:1055 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x2f6/0xff0 mm/truncate.c:372 jfs_remount+0x337/0x5a0 fs/jfs/super.c:451 reconfigure_super+0x219/0x880 fs/super.c:977 vfs_fsconfig_locked+0x18d/0x3f0 fs/fsopen.c:254 __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig+0x61b/0x750 fs/fsopen.c:314 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f642178e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6422678038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f64219b6080 RCX: 00007f642178e969 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000005 RBP: 00007f6421810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f64219b6080 R15: 00007ffd8500b6b8