BUG: Bad page state in process kworker/u4:15 pfn:75309
page:ffffea0001d4c240 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3e pfn:0x75309
flags: 0xfff1800000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff1800000820d dead000000000100 dead000000000122 0000000000000000
raw: 000000000000003e ffff88802a99ce88 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 6008, tgid 5993 (syz.2.34), ts 80240923835, free_ts 79003517578
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
__filemap_get_folio+0x3ea/0xbb0 mm/filemap.c:1962
pagecache_get_page+0x2a/0x250 mm/folio-compat.c:99
find_or_create_page include/linux/pagemap.h:755 [inline]
grab_cache_page include/linux/pagemap.h:877 [inline]
__get_metapage+0x2a8/0xfa0 fs/jfs/jfs_metapage.c:613
xtSplitRoot+0x104/0x1030 fs/jfs/jfs_xtree.c:1227
xtSplitUp+0x368/0x1f70 fs/jfs/jfs_xtree.c:770
xtInsert+0x41b/0xe70 fs/jfs/jfs_xtree.c:593
extAlloc+0xa23/0xf90 fs/jfs/jfs_extent.c:145
jfs_get_block+0x359/0xad0 fs/jfs/inode.c:254
get_more_blocks fs/direct-io.c:647 [inline]
do_direct_IO fs/direct-io.c:935 [inline]
__blockdev_direct_IO+0x1775/0x3500 fs/direct-io.c:1248
blockdev_direct_IO include/linux/fs.h:3047 [inline]
jfs_direct_IO+0x11b/0x220 fs/jfs/inode.c:337
generic_file_direct_write+0x1d4/0x3e0 mm/filemap.c:3956
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: 5951 Comm: kworker/u4:15 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Workqueue: writeback wb_workfn (flush-7:2)
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+0x32/0x2e0 mm/page_alloc.c:2458
txUnlock+0x27e/0xcb0 fs/jfs/jfs_txnmgr.c:933
txCommit+0x4ddb/0x5290 fs/jfs/jfs_txnmgr.c:1336
jfs_commit_inode+0x2f0/0x520 fs/jfs/inode.c:114
jfs_write_inode+0x145/0x220 fs/jfs/inode.c:138
write_inode fs/fs-writeback.c:1483 [inline]
__writeback_single_inode+0x705/0xec0 fs/fs-writeback.c:1700
writeback_sb_inodes+0x7cd/0xf50 fs/fs-writeback.c:1926
wb_writeback+0x46a/0xbf0 fs/fs-writeback.c:2105
wb_do_writeback fs/fs-writeback.c:2252 [inline]
wb_workfn+0x400/0xe60 fs/fs-writeback.c:2292
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
page:ffffea0001d4c240 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3e pfn:0x75309
flags: 0xfff1800000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff1800000820d dead000000000100 dead000000000122 0000000000000000
raw: 000000000000003e ffff88802a99ce88 00000000ffffffff 0000000000000000
page dumped because: VM_BUG_ON_FOLIO(((unsigned int) folio_ref_count(folio) + 127u <= 127u))
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 6008, tgid 5993 (syz.2.34), ts 80240923835, free_ts 79003517578
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
__filemap_get_folio+0x3ea/0xbb0 mm/filemap.c:1962
pagecache_get_page+0x2a/0x250 mm/folio-compat.c:99
find_or_create_page include/linux/pagemap.h:755 [inline]
grab_cache_page include/linux/pagemap.h:877 [inline]
__get_metapage+0x2a8/0xfa0 fs/jfs/jfs_metapage.c:613
xtSplitRoot+0x104/0x1030 fs/jfs/jfs_xtree.c:1227
xtSplitUp+0x368/0x1f70 fs/jfs/jfs_xtree.c:770
xtInsert+0x41b/0xe70 fs/jfs/jfs_xtree.c:593
extAlloc+0xa23/0xf90 fs/jfs/jfs_extent.c:145
jfs_get_block+0x359/0xad0 fs/jfs/inode.c:254
get_more_blocks fs/direct-io.c:647 [inline]
do_direct_IO fs/direct-io.c:935 [inline]
__blockdev_direct_IO+0x1775/0x3500 fs/direct-io.c:1248
blockdev_direct_IO include/linux/fs.h:3047 [inline]
jfs_direct_IO+0x11b/0x220 fs/jfs/inode.c:337
generic_file_direct_write+0x1d4/0x3e0 mm/filemap.c:3956
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
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:1458!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5951 Comm: kworker/u4:15 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Workqueue: writeback wb_workfn (flush-7:2)
RIP: 0010:folio_get include/linux/mm.h:1458 [inline]
RIP: 0010:get_page include/linux/mm.h:1464 [inline]
RIP: 0010:put_metapage+0x253/0x340 fs/jfs/jfs_metapage.c:750
Code: 38 c1 0f 8c 32 ff ff ff 4c 89 ef e8 57 78 d9 fe e9 25 ff ff ff e8 5d 3c 81 fe 48 8b 3c 24 48 c7 c6 80 07 04 8b e8 7d aa c1 fe <0f> 0b 4c 8b 2c 24 4c 89 ee 48 81 e6 ff 0f 00 00 31 ff e8 76 40 81
RSP: 0018:ffffc9000520f100 EFLAGS: 00010246
RAX: 4c980e6efbb68a00 RBX: ffff88802a99ce88 RCX: 4c980e6efbb68a00
RDX: 0000000000000000 RSI: ffffffff8b1c8980 RDI: ffffffff8b1c8940
RBP: 000000000000007f R08: ffffffff8e8b02af R09: 1ffffffff1d16055
R10: dffffc0000000000 R11: fffffbfff1d16056 R12: ffff88802a99ceb0
R13: ffffea0001d4c274 R14: 1ffff110055339d6 R15: 1ffff110055339e3
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc151f212c0 CR3: 0000000061b9d000 CR4: 00000000003506f0
Call Trace:
txUnlock+0x427/0xcb0 fs/jfs/jfs_txnmgr.c:948
txCommit+0x4ddb/0x5290 fs/jfs/jfs_txnmgr.c:1336
jfs_commit_inode+0x2f0/0x520 fs/jfs/inode.c:114
jfs_write_inode+0x145/0x220 fs/jfs/inode.c:138
write_inode fs/fs-writeback.c:1483 [inline]
__writeback_single_inode+0x705/0xec0 fs/fs-writeback.c:1700
writeback_sb_inodes+0x7cd/0xf50 fs/fs-writeback.c:1926
wb_writeback+0x46a/0xbf0 fs/fs-writeback.c:2105
wb_do_writeback fs/fs-writeback.c:2252 [inline]
wb_workfn+0x400/0xe60 fs/fs-writeback.c:2292
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:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_get include/linux/mm.h:1458 [inline]
RIP: 0010:get_page include/linux/mm.h:1464 [inline]
RIP: 0010:put_metapage+0x253/0x340 fs/jfs/jfs_metapage.c:750
Code: 38 c1 0f 8c 32 ff ff ff 4c 89 ef e8 57 78 d9 fe e9 25 ff ff ff e8 5d 3c 81 fe 48 8b 3c 24 48 c7 c6 80 07 04 8b e8 7d aa c1 fe <0f> 0b 4c 8b 2c 24 4c 89 ee 48 81 e6 ff 0f 00 00 31 ff e8 76 40 81
RSP: 0018:ffffc9000520f100 EFLAGS: 00010246
RAX: 4c980e6efbb68a00 RBX: ffff88802a99ce88 RCX: 4c980e6efbb68a00
RDX: 0000000000000000 RSI: ffffffff8b1c8980 RDI: ffffffff8b1c8940
RBP: 000000000000007f R08: ffffffff8e8b02af R09: 1ffffffff1d16055
R10: dffffc0000000000 R11: fffffbfff1d16056 R12: ffff88802a99ceb0
R13: ffffea0001d4c274 R14: 1ffff110055339d6 R15: 1ffff110055339e3
FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ce01b63138 CR3: 0000000074f74000 CR4: 00000000003506e0