BUG: Bad page state in process syz-executor.4 pfn:7cc0d page:ffffea0001f30340 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x7cc0d flags: 0xfff8c000002046(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0xfff) raw: 00fff8c000002046 ffffea0001e15748 ffffc900053c7900 0000000000000000 raw: 0000000000000004 ffff8880620b35d0 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 10525, tgid 10524 (syz-executor.4), ts 372712526818, free_ts 372626463807 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5547 folio_alloc+0x1a/0x50 mm/mempolicy.c:2292 filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:971 do_read_cache_folio+0x2a7/0x810 mm/filemap.c:3562 do_read_cache_page+0x32/0x220 mm/filemap.c:3640 read_mapping_page include/linux/pagemap.h:791 [inline] __get_metapage+0x32c/0x1040 fs/jfs/jfs_metapage.c:620 dbAllocCtl+0xd5/0x920 fs/jfs/jfs_dmap.c:1816 dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1364 dbDiscardAG+0x34e/0xa10 fs/jfs/jfs_dmap.c:1613 jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:100 jfs_ioctl+0x2cc/0x3e0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1440 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3453 mm_free_pgd kernel/fork.c:741 [inline] __mmdrop+0xb2/0x470 kernel/fork.c:792 exit_mm+0x226/0x300 kernel/exit.c:563 do_exit+0x9f6/0x26a0 kernel/exit.c:856 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 __do_sys_exit_group kernel/exit.c:1030 [inline] __se_sys_exit_group kernel/exit.c:1028 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1028 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Modules linked in: CPU: 0 PID: 9657 Comm: syz-executor.4 Not tainted 6.1.87-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+0x1e3/0x2cb lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:699 free_page_is_bad_report mm/page_alloc.c:1277 [inline] free_page_is_bad mm/page_alloc.c:1287 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0x56b/0x1120 mm/page_alloc.c:3358 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499 release_pages+0x2836/0x2b40 mm/swap.c:1055 __pagevec_release+0x80/0xf0 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+0x48a/0x1340 mm/truncate.c:372 dbUnmount+0x111/0x180 fs/jfs/jfs_dmap.c:275 jfs_umount+0x1fe/0x370 fs/jfs/jfs_umount.c:89 jfs_put_super+0x86/0x180 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7a/0xe0 fs/super.c:1459 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fea7e47f1d7 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffceffb9a98 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fea7e47f1d7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffceffb9b50 RBP: 00007ffceffb9b50 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffceffbac10 R13: 00007fea7e4c93b9 R14: 0000000000058512 R15: 0000000000000003 BUG: Bad page state in process syz-executor.4 pfn:7855d page:ffffea0001e15740 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x7855d flags: 0xfff8c000002046(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0xfff) raw: 00fff8c000002046 ffffea00007eb788 ffffc900053c7900 0000000000000000 raw: 0000000000000003 ffff8880620b36c8 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 10525, tgid 10524 (syz-executor.4), ts 372729227828, free_ts 372625970389 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5547 folio_alloc+0x1a/0x50 mm/mempolicy.c:2292 filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:971 do_read_cache_folio+0x2a7/0x810 mm/filemap.c:3562 do_read_cache_page+0x32/0x220 mm/filemap.c:3640 read_mapping_page include/linux/pagemap.h:791 [inline] __get_metapage+0x32c/0x1040 fs/jfs/jfs_metapage.c:620 dbAdjCtl+0x138/0x9c0 fs/jfs/jfs_dmap.c:2481 dbAllocDmap fs/jfs/jfs_dmap.c:2042 [inline] dbAllocDmapLev+0x298/0x490 fs/jfs/jfs_dmap.c:1986 dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1823 dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1364 dbDiscardAG+0x34e/0xa10 fs/jfs/jfs_dmap.c:1613 jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:100 jfs_ioctl+0x2cc/0x3e0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1440 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3453 tlb_batch_list_free mm/mmu_gather.c:75 [inline] tlb_finish_mmu+0x119/0x1f0 mm/mmu_gather.c:364 exit_mmap+0x3c3/0x9f0 mm/mmap.c:3239 __mmput+0x115/0x3c0 kernel/fork.c:1199 exit_mm+0x226/0x300 kernel/exit.c:563 do_exit+0x9f6/0x26a0 kernel/exit.c:856 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 __do_sys_exit_group kernel/exit.c:1030 [inline] __se_sys_exit_group kernel/exit.c:1028 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1028 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Modules linked in: CPU: 1 PID: 9657 Comm: syz-executor.4 Tainted: G B 6.1.87-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+0x1e3/0x2cb lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:699 free_page_is_bad_report mm/page_alloc.c:1277 [inline] free_page_is_bad mm/page_alloc.c:1287 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0x56b/0x1120 mm/page_alloc.c:3358 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499 release_pages+0x2836/0x2b40 mm/swap.c:1055 __pagevec_release+0x80/0xf0 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+0x48a/0x1340 mm/truncate.c:372 dbUnmount+0x111/0x180 fs/jfs/jfs_dmap.c:275 jfs_umount+0x1fe/0x370 fs/jfs/jfs_umount.c:89 jfs_put_super+0x86/0x180 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7a/0xe0 fs/super.c:1459 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fea7e47f1d7 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffceffb9a98 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fea7e47f1d7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffceffb9b50 RBP: 00007ffceffb9b50 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffceffbac10 R13: 00007fea7e4c93b9 R14: 0000000000058512 R15: 0000000000000003 EXT4-fs (loop4): unmounting filesystem.