BUG: Bad page state in process syz.4.567 pfn:5c050 page:ffffea0001701400 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x5c050 flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002006 ffffea000162ec48 ffffc9000345f880 0000000000000000 raw: 0000000000000004 ffff8880606ab000 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 6471, ts 230328210579, free_ts 230326063046 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 do_read_cache_page+0x1da/0x1030 mm/filemap.c:3457 read_mapping_page include/linux/pagemap.h:515 [inline] __get_metapage+0x35d/0x1060 fs/jfs/jfs_metapage.c:621 dbAllocCtl+0xd4/0x9b0 fs/jfs/jfs_dmap.c:1881 dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1421 dbDiscardAG+0x2ca/0x8e0 fs/jfs/jfs_dmap.c:1676 jfs_ioc_trim+0x41e/0x680 fs/jfs/jfs_discard.c:106 jfs_ioctl+0x2a5/0x3a0 fs/jfs/ioctl.c:132 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 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+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] __invalidate_mapping_pages+0x4e4/0x5e0 mm/truncate.c:509 reconfigure_super+0x44f/0x880 fs/super.c:963 do_remount fs/namespace.c:2688 [inline] path_mount+0xd3e/0x1020 fs/namespace.c:3347 do_mount fs/namespace.c:3368 [inline] __do_sys_mount fs/namespace.c:3576 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3553 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Modules linked in: CPU: 0 PID: 6478 Comm: syz.4.567 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:652 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+0x383/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x2f3/0xef0 mm/truncate.c:329 jfs_mount_rw+0x277/0x5c0 fs/jfs/jfs_mount.c:236 jfs_remount+0x392/0x5a0 fs/jfs/super.c:459 reconfigure_super+0x219/0x880 fs/super.c:938 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:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f8c06ff5be9 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:00007f8c0523c038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f8c0721d090 RCX: 00007f8c06ff5be9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000005 RBP: 00007f8c07078e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8c0721d128 R14: 00007f8c0721d090 R15: 00007fff83880d78 BUG: Bad page state in process syz.4.567 pfn:58bb1 page:ffffea000162ec40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x58bb1 flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002006 ffffea000171adc8 ffffc9000345f880 0000000000000000 raw: 0000000000000003 ffff8880606ab0f8 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 6471, ts 230332438360, free_ts 230326058033 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 do_read_cache_page+0x1da/0x1030 mm/filemap.c:3457 read_mapping_page include/linux/pagemap.h:515 [inline] __get_metapage+0x35d/0x1060 fs/jfs/jfs_metapage.c:621 dbAdjCtl+0x144/0xa20 fs/jfs/jfs_dmap.c:2551 dbAllocDmap fs/jfs/jfs_dmap.c:2112 [inline] dbAllocDmapLev+0x209/0x3c0 fs/jfs/jfs_dmap.c:2056 dbAllocCtl+0x148/0x9b0 fs/jfs/jfs_dmap.c:1893 dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1421 dbDiscardAG+0x2ca/0x8e0 fs/jfs/jfs_dmap.c:1676 jfs_ioc_trim+0x41e/0x680 fs/jfs/jfs_discard.c:106 jfs_ioctl+0x2a5/0x3a0 fs/jfs/ioctl.c:132 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 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+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] __invalidate_mapping_pages+0x4e4/0x5e0 mm/truncate.c:509 reconfigure_super+0x44f/0x880 fs/super.c:963 do_remount fs/namespace.c:2688 [inline] path_mount+0xd3e/0x1020 fs/namespace.c:3347 do_mount fs/namespace.c:3368 [inline] __do_sys_mount fs/namespace.c:3576 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3553 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Modules linked in: CPU: 1 PID: 6478 Comm: syz.4.567 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:652 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+0x383/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x2f3/0xef0 mm/truncate.c:329 jfs_mount_rw+0x277/0x5c0 fs/jfs/jfs_mount.c:236 jfs_remount+0x392/0x5a0 fs/jfs/super.c:459 reconfigure_super+0x219/0x880 fs/super.c:938 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:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f8c06ff5be9 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:00007f8c0523c038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f8c0721d090 RCX: 00007f8c06ff5be9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000005 RBP: 00007f8c07078e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8c0721d128 R14: 00007f8c0721d090 R15: 00007fff83880d78