BUG: Bad page state in process syz-executor pfn:2d2ad
page:ffffea0000b4ab40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x2d2ad
flags: 0xfff1800000820c(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff1800000820c ffffea0000ae5cc8 ffffc9000475f900 0000000000000000
raw: 0000000000000004 ffff88802124e9b0 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 6369, tgid 6368 (syz.2.119), ts 100369924180, free_ts 100247944717
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581
prep_new_page mm/page_alloc.c:1588 [inline]
get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220
__alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500
folio_alloc+0x1e/0x30 mm/mempolicy.c:2289
filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1004
do_read_cache_folio+0x364/0x7d0 mm/filemap.c:3768
do_read_cache_page+0x32/0x250 mm/filemap.c:3870
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:1813
dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1353
dbDiscardAG+0x2c9/0x8e0 fs/jfs/jfs_dmap.c:1608
jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:105
jfs_ioctl+0x292/0x3b0 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:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
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:1181 [inline]
free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458
vfree+0x1a6/0x320 mm/vmalloc.c:2868
delayed_vfree_work+0x55/0x80 mm/vmalloc.c:2788
process_one_work kernel/workqueue.c:2653 [inline]
process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730
worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
Modules linked in:
CPU: 1 PID: 5765 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:539
free_page_is_bad mm/page_alloc.c:988 [inline]
free_pages_prepare mm/page_alloc.c:1173 [inline]
free_unref_page_prepare+0x85f/0x8c0 mm/page_alloc.c:2365
free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2504
release_pages+0x1f7a/0x2200 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+0x3b9/0xfb0 mm/truncate.c:396
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+0x43b/0x4d0 fs/namespace.c:1259
task_work_run+0x1d4/0x260 kernel/task_work.c:245
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+0xee/0x180 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/0xa0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc80f59d9d7
Code: a2 c7 05 1c fd 24 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 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 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffed0830168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fc80f632050 RCX: 00007fc80f59d9d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffed0830220
RBP: 00007ffed0830220 R08: 00007ffed0831220 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffed08312b0
R13: 00007fc80f632050 R14: 0000000000018890 R15: 00007ffed08312f0
BUG: Bad page state in process syz-executor pfn:2b973
page:ffffea0000ae5cc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x2b973
flags: 0xfff1800000820c(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff1800000820c ffffea0000c15048 ffffc9000475f900 0000000000000000
raw: 0000000000000003 ffff88802124eaa8 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 6369, tgid 6368 (syz.2.119), ts 100397649398, free_ts 100247834284
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581
prep_new_page mm/page_alloc.c:1588 [inline]
get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220
__alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500
folio_alloc+0x1e/0x30 mm/mempolicy.c:2289
filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1004
do_read_cache_folio+0x364/0x7d0 mm/filemap.c:3768
do_read_cache_page+0x32/0x250 mm/filemap.c:3870
read_mapping_page include/linux/pagemap.h:892 [inline]
__get_metapage+0x31a/0xfa0 fs/jfs/jfs_metapage.c:620
dbAdjCtl+0x144/0xa20 fs/jfs/jfs_dmap.c:2483
dbAllocDmap fs/jfs/jfs_dmap.c:2044 [inline]
dbAllocDmapLev+0x209/0x3c0 fs/jfs/jfs_dmap.c:1988
dbAllocCtl+0x148/0x9b0 fs/jfs/jfs_dmap.c:1825
dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1353
dbDiscardAG+0x2c9/0x8e0 fs/jfs/jfs_dmap.c:1608
jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:105
jfs_ioctl+0x292/0x3b0 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
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1181 [inline]
free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458
vfree+0x1a6/0x320 mm/vmalloc.c:2868
delayed_vfree_work+0x55/0x80 mm/vmalloc.c:2788
process_one_work kernel/workqueue.c:2653 [inline]
process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730
worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
Modules linked in:
CPU: 0 PID: 5765 Comm: syz-executor Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:539
free_page_is_bad mm/page_alloc.c:988 [inline]
free_pages_prepare mm/page_alloc.c:1173 [inline]
free_unref_page_prepare+0x85f/0x8c0 mm/page_alloc.c:2365
free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2504
release_pages+0x1f7a/0x2200 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+0x3b9/0xfb0 mm/truncate.c:396
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+0x43b/0x4d0 fs/namespace.c:1259
task_work_run+0x1d4/0x260 kernel/task_work.c:245
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+0xee/0x180 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/0xa0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc80f59d9d7
Code: a2 c7 05 1c fd 24 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 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 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffed0830168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fc80f632050 RCX: 00007fc80f59d9d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffed0830220
RBP: 00007ffed0830220 R08: 00007ffed0831220 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffed08312b0
R13: 00007fc80f632050 R14: 0000000000018890 R15: 00007ffed08312f0