BUG: Bad page state in process syz.3.4 pfn:5e453
page:ffffea00017914c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x12b pfn:0x5e453
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0001791208 ffffc9000325f980 0000000000000000
raw: 000000000000012b ffff8880232b95d0 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 4248, ts 66264276079, free_ts 65975194948
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:5466
__page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022
pagecache_get_page+0x986/0xef0 mm/filemap.c:1940
find_or_create_page include/linux/pagemap.h:420 [inline]
grab_cache_page include/linux/pagemap.h:502 [inline]
__get_metapage+0x282/0x1060 fs/jfs/jfs_metapage.c:614
xtSplitPage+0x238/0x1c10 fs/jfs/jfs_xtree.c:985
xtSplitUp+0x293/0x1c20 fs/jfs/jfs_xtree.c:782
xtInsert+0x455/0xbb0 fs/jfs/jfs_xtree.c:604
extAlloc+0x9f6/0xf30 fs/jfs/jfs_extent.c:148
jfs_get_block+0x343/0xab0 fs/jfs/inode.c:258
get_more_blocks fs/direct-io.c:673 [inline]
do_direct_IO fs/direct-io.c:959 [inline]
do_blockdev_direct_IO fs/direct-io.c:1276 [inline]
__blockdev_direct_IO+0x146d/0x3c90 fs/direct-io.c:1368
blockdev_direct_IO include/linux/fs.h:3344 [inline]
jfs_direct_IO+0x119/0x220 fs/jfs/inode.c:343
generic_file_direct_write+0x22c/0x490 mm/filemap.c:3687
__generic_file_write_iter+0x2b1/0x4e0 mm/filemap.c:3869
generic_file_write_iter+0xa6/0x1b0 mm/filemap.c:3944
do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1
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
tlb_batch_pages_flush mm/mmu_gather.c:49 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:240 [inline]
tlb_flush_mmu mm/mmu_gather.c:247 [inline]
tlb_finish_mmu+0x164/0x2e0 mm/mmu_gather.c:338
unmap_region+0x315/0x360 mm/mmap.c:2657
__do_munmap+0x9d3/0xdc0 mm/mmap.c:2887
__vm_munmap+0x137/0x230 mm/mmap.c:2940
__do_sys_munmap mm/mmap.c:2966 [inline]
__se_sys_munmap mm/mmap.c:2962 [inline]
__x64_sys_munmap+0x67/0x70 mm/mmap.c:2962
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: 4248 Comm: syz.3.4 Not tainted 5.15.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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_remount+0x337/0x5a0 fs/jfs/super.c:456
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:0x7f704dcd0969
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:00007f704bb38038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af
RAX: ffffffffffffffda RBX: 00007f704def7fa0 RCX: 00007f704dcd0969
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007f704dd52ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f704def7fa0 R15: 00007ffdd1471358
BUG: Bad page state in process syz.3.4 pfn:5e448
page:ffffea0001791200 refcount:0 mapcount:0 mapping:0000000000000000 index:0x34 pfn:0x5e448
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0001797dc8 ffffc9000325f980 0000000000000000
raw: 0000000000000034 ffff8880232b93e0 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 4248, ts 66239858648, free_ts 65975207549
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:5466
__page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022
pagecache_get_page+0x986/0xef0 mm/filemap.c:1940
find_or_create_page include/linux/pagemap.h:420 [inline]
grab_cache_page include/linux/pagemap.h:502 [inline]
__get_metapage+0x282/0x1060 fs/jfs/jfs_metapage.c:614
xtSplitRoot+0xd9/0xdd0 fs/jfs/jfs_xtree.c:1238
xtSplitUp+0x2b2/0x1c20 fs/jfs/jfs_xtree.c:781
xtInsert+0x455/0xbb0 fs/jfs/jfs_xtree.c:604
extAlloc+0x9f6/0xf30 fs/jfs/jfs_extent.c:148
jfs_get_block+0x343/0xab0 fs/jfs/inode.c:258
get_more_blocks fs/direct-io.c:673 [inline]
do_direct_IO fs/direct-io.c:959 [inline]
do_blockdev_direct_IO fs/direct-io.c:1276 [inline]
__blockdev_direct_IO+0x146d/0x3c90 fs/direct-io.c:1368
blockdev_direct_IO include/linux/fs.h:3344 [inline]
jfs_direct_IO+0x119/0x220 fs/jfs/inode.c:343
generic_file_direct_write+0x22c/0x490 mm/filemap.c:3687
__generic_file_write_iter+0x2b1/0x4e0 mm/filemap.c:3869
generic_file_write_iter+0xa6/0x1b0 mm/filemap.c:3944
do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1
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
tlb_batch_pages_flush mm/mmu_gather.c:49 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:240 [inline]
tlb_flush_mmu mm/mmu_gather.c:247 [inline]
tlb_finish_mmu+0x164/0x2e0 mm/mmu_gather.c:338
unmap_region+0x315/0x360 mm/mmap.c:2657
__do_munmap+0x9d3/0xdc0 mm/mmap.c:2887
__vm_munmap+0x137/0x230 mm/mmap.c:2940
__do_sys_munmap mm/mmap.c:2966 [inline]
__se_sys_munmap mm/mmap.c:2962 [inline]
__x64_sys_munmap+0x67/0x70 mm/mmap.c:2962
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: 4248 Comm: syz.3.4 Tainted: G B 5.15.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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_remount+0x337/0x5a0 fs/jfs/super.c:456
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:0x7f704dcd0969
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:00007f704bb38038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af
RAX: ffffffffffffffda RBX: 00007f704def7fa0 RCX: 00007f704dcd0969
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007f704dd52ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f704def7fa0 R15: 00007ffdd1471358
BUG: Bad page state in process syz.3.4 pfn:5e5f7
page:ffffea0001797dc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x5e5f7
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea00017969c8 ffffc9000325f980 0000000000000000
raw: 000000000000001c ffff8880232b9d90 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 4248, ts 66164792524, free_ts 19077101627
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:5466
__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
diRead+0x6f7/0xbb0 fs/jfs/jfs_imap.c:367
jfs_iget+0x89/0x3c0 fs/jfs/inode.c:35
jfs_fill_super+0x735/0xaf0 fs/jfs/super.c:585
mount_bdev+0x287/0x3c0 fs/super.c:1400
legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1530
do_new_mount+0x24a/0xa40 fs/namespace.c:3014
do_mount fs/namespace.c:3357 [inline]
__do_sys_mount fs/namespace.c:3565 [inline]
__se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542
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+0x94/0x280 mm/page_alloc.c:3396
free_contig_range+0x96/0xf0 mm/page_alloc.c:9385
destroy_args+0xef/0x8b0 mm/debug_vm_pgtable.c:1018
debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1331
do_one_initcall+0x1ee/0x680 init/main.c:1302
do_initcall_level+0x137/0x1f0 init/main.c:1375
do_initcalls+0x4b/0x90 init/main.c:1391
kernel_init_freeable+0x3ce/0x560 init/main.c:1615
kernel_init+0x19/0x1b0 init/main.c:1506
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Modules linked in:
CPU: 0 PID: 4248 Comm: syz.3.4 Tainted: G B 5.15.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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_remount+0x337/0x5a0 fs/jfs/super.c:456
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:0x7f704dcd0969
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:00007f704bb38038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af
RAX: ffffffffffffffda RBX: 00007f704def7fa0 RCX: 00007f704dcd0969
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007f704dd52ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f704def7fa0 R15: 00007ffdd1471358