BUG: Bad page state in process syz.0.2554 pfn:113e6e page:0000000011bc41d6 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x113e6e flags: 0x5ffc60000002046(referenced|uptodate|workingset|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc60000002046 fffffc00039b9348 ffff800022667600 0000000000000000 raw: 0000000000000004 ffff0000d9649000 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 0 PID: 14340 Comm: syz.0.2554 Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 bad_page+0x1a4/0x1c4 mm/page_alloc.c:699 free_page_is_bad_report mm/page_alloc.c:1281 [inline] free_page_is_bad mm/page_alloc.c:1291 [inline] free_pages_prepare mm/page_alloc.c:1437 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0x348/0x1070 mm/page_alloc.c:3369 free_unref_page_list+0xec/0x9c0 mm/page_alloc.c:3510 release_pages+0x1254/0x14dc mm/swap.c:1055 __pagevec_release+0x94/0x10c mm/swap.c:1075 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x388/0xf10 mm/truncate.c:372 truncate_inode_pages+0x2c/0x3c mm/truncate.c:451 jfs_mount_rw+0x21c/0x57c fs/jfs/jfs_mount.c:236 jfs_remount+0x328/0x594 fs/jfs/super.c:454 legacy_reconfigure+0xfc/0x114 fs/fs_context.c:655 reconfigure_super+0x318/0x7a4 fs/super.c:977 vfs_fsconfig_locked fs/fsopen.c:254 [inline] __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig fs/fsopen.c:314 [inline] __arm64_sys_fsconfig+0xa1c/0xd18 fs/fsopen.c:314 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 BUG: Bad page state in process syz.0.2554 pfn:126e4d page:0000000044e78f2d refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x126e4d flags: 0x5ffc60000002046(referenced|uptodate|workingset|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc60000002046 fffffc00039b7048 ffff800022667600 0000000000000000 raw: 0000000000000003 ffff0000d96490f8 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 1 PID: 14340 Comm: syz.0.2554 Tainted: G B 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 bad_page+0x1a4/0x1c4 mm/page_alloc.c:699 free_page_is_bad_report mm/page_alloc.c:1281 [inline] free_page_is_bad mm/page_alloc.c:1291 [inline] free_pages_prepare mm/page_alloc.c:1437 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0x348/0x1070 mm/page_alloc.c:3369 free_unref_page_list+0xec/0x9c0 mm/page_alloc.c:3510 release_pages+0x1254/0x14dc mm/swap.c:1055 __pagevec_release+0x94/0x10c mm/swap.c:1075 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x388/0xf10 mm/truncate.c:372 truncate_inode_pages+0x2c/0x3c mm/truncate.c:451 jfs_mount_rw+0x21c/0x57c fs/jfs/jfs_mount.c:236 jfs_remount+0x328/0x594 fs/jfs/super.c:454 legacy_reconfigure+0xfc/0x114 fs/fs_context.c:655 reconfigure_super+0x318/0x7a4 fs/super.c:977 vfs_fsconfig_locked fs/fsopen.c:254 [inline] __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig fs/fsopen.c:314 [inline] __arm64_sys_fsconfig+0xa1c/0xd18 fs/fsopen.c:314 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585