BUG: Bad page state in process syz-executor pfn:2d494 page:ffffea0000b52500 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x2d494 flags: 0xfff1800000820c(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff1800000820c ffffea0001c31e48 ffffc90004eff900 0000000000000000 raw: 0000000000000004 ffff8880236b4e88 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 7977, tgid 7976 (syz.4.431), ts 194787114177, free_ts 194703773247 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 folio_alloc+0x1e/0x30 mm/mempolicy.c:2291 filemap_alloc_folio+0xdf/0x470 mm/filemap.c:1004 do_read_cache_folio+0x36c/0x7e0 mm/filemap.c:3753 do_read_cache_page+0x32/0x250 mm/filemap.c:3855 read_mapping_page include/linux/pagemap.h:892 [inline] __get_metapage+0x31a/0xfa0 fs/jfs/jfs_metapage.c:620 dbAllocCtl+0xd4/0x9b0 fs/jfs/jfs_dmap.c:1807 dbAllocAG+0xb9c/0xf10 fs/jfs/jfs_dmap.c:1466 dbDiscardAG+0x2ce/0x8f0 fs/jfs/jfs_dmap.c:1602 jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:105 jfs_ioctl+0x2b9/0x3d0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/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:1154 [inline] free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2475 release_pages+0x1fa0/0x2220 mm/swap.c:1022 tlb_batch_pages_flush mm/mmu_gather.c:98 [inline] tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu+0x368/0x4f0 mm/mmu_gather.c:300 tlb_finish_mmu+0xc3/0x1d0 mm/mmu_gather.c:392 unmap_region+0x2ed/0x340 mm/mmap.c:2345 do_vmi_align_munmap+0xffe/0x1660 mm/mmap.c:2588 do_vmi_munmap+0x252/0x2d0 mm/mmap.c:2656 __vm_munmap+0x193/0x3c0 mm/mmap.c:2957 __do_sys_munmap mm/mmap.c:2974 [inline] __se_sys_munmap mm/mmap.c:2971 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:2971 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Modules linked in: CPU: 1 PID: 7421 Comm: syz-executor Not tainted 6.6.102-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:512 free_page_is_bad mm/page_alloc.c:961 [inline] free_pages_prepare mm/page_alloc.c:1146 [inline] free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2475 release_pages+0x1fa0/0x2220 mm/swap.c:1022 __folio_batch_release+0x71/0xe0 mm/swap.c:1042 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x358/0xf00 mm/truncate.c:371 dbUnmount+0x109/0x180 fs/jfs/jfs_dmap.c:264 jfs_umount+0x258/0x3c0 fs/jfs/jfs_umount.c:87 jfs_put_super+0x8c/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x134/0x2b0 fs/super.c:693 kill_block_super+0x44/0x90 fs/super.c:1660 deactivate_locked_super+0x97/0x100 fs/super.c:481 cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250 task_work_run+0x1ce/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 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:291 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f993eb8ff17 Code: a8 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 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffee6f382d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f993ec11c05 RCX: 00007f993eb8ff17 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffee6f38390 RBP: 00007ffee6f38390 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffee6f39420 R13: 00007f993ec11c05 R14: 000000000002f95b R15: 00007ffee6f39460 BUG: Bad page state in process syz-executor pfn:70c79 page:ffffea0001c31e40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x70c79 flags: 0xfff1800000820c(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff1800000820c ffffea00018e9fc8 ffffc90004eff900 0000000000000000 raw: 0000000000000003 ffff8880236b45d0 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 7977, tgid 7976 (syz.4.431), ts 194777249030, free_ts 194771688548 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 folio_alloc+0x1e/0x30 mm/mempolicy.c:2291 filemap_alloc_folio+0xdf/0x470 mm/filemap.c:1004 do_read_cache_folio+0x36c/0x7e0 mm/filemap.c:3753 do_read_cache_page+0x32/0x250 mm/filemap.c:3855 read_mapping_page include/linux/pagemap.h:892 [inline] __get_metapage+0x31a/0xfa0 fs/jfs/jfs_metapage.c:620 dbAllocAG+0x3dd/0xf10 fs/jfs/jfs_dmap.c:1369 dbDiscardAG+0x2ce/0x8f0 fs/jfs/jfs_dmap.c:1602 jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:105 jfs_ioctl+0x2b9/0x3d0 fs/jfs/ioctl.c:131 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/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:1154 [inline] free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 __slab_free+0x35e/0x410 mm/slub.c:3722 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xe0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4d0 mm/slab.h:767 slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x13e/0x260 mm/slub.c:3524 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa4/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1c3/0x3c0 security/tomoyo/file.c:771 security_file_open+0x62/0xa0 security/security.c:2854 do_dentry_open+0x380/0x1500 fs/open.c:916 do_open fs/namei.c:3632 [inline] path_openat+0x274b/0x3190 fs/namei.c:3789 do_filp_open+0x1c5/0x3d0 fs/namei.c:3816 do_sys_openat2+0x12c/0x1c0 fs/open.c:1419 Modules linked in: CPU: 0 PID: 7421 Comm: syz-executor Tainted: G B 6.6.102-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:512 free_page_is_bad mm/page_alloc.c:961 [inline] free_pages_prepare mm/page_alloc.c:1146 [inline] free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2475 release_pages+0x1fa0/0x2220 mm/swap.c:1022 __folio_batch_release+0x71/0xe0 mm/swap.c:1042 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x358/0xf00 mm/truncate.c:371 dbUnmount+0x109/0x180 fs/jfs/jfs_dmap.c:264 jfs_umount+0x258/0x3c0 fs/jfs/jfs_umount.c:87 jfs_put_super+0x8c/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x134/0x2b0 fs/super.c:693 kill_block_super+0x44/0x90 fs/super.c:1660 deactivate_locked_super+0x97/0x100 fs/super.c:481 cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250 task_work_run+0x1ce/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 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:291 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f993eb8ff17 Code: a8 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 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffee6f382d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f993ec11c05 RCX: 00007f993eb8ff17 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffee6f38390 RBP: 00007ffee6f38390 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffee6f39420 R13: 00007f993ec11c05 R14: 000000000002f95b R15: 00007ffee6f39460