BUG: Bad page state in process jfsCommit pfn:73770
page:ffffea0001cddc00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x73770
flags: 0xfff00000008009(locked|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000008009 dead000000000100 dead000000000122 0000000000000000
raw: 000000000000001c ffff888073579000 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 5030, tgid 5030 (syz-executor385), ts 63184822697, free_ts 15219889891
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
folio_alloc+0x1e/0x60 mm/mempolicy.c:2307
filemap_alloc_folio+0xde/0x500 mm/filemap.c:976
do_read_cache_folio+0xed/0x810 mm/filemap.c:3706
do_read_cache_page+0x30/0x210 mm/filemap.c:3808
read_mapping_page include/linux/pagemap.h:860 [inline]
__get_metapage+0x330/0x1040 fs/jfs/jfs_metapage.c:620
diRead+0x5f4/0xae0 fs/jfs/jfs_imap.c:364
jfs_iget+0x8c/0x3b0 fs/jfs/inode.c:35
jfs_fill_super+0x808/0xc50 fs/jfs/super.c:580
mount_bdev+0x237/0x300 fs/super.c:1629
legacy_get_tree+0xef/0x190 fs/fs_context.c:638
vfs_get_tree+0x8c/0x280 fs/super.c:1750
do_new_mount+0x28f/0xae0 fs/namespace.c:3335
do_mount fs/namespace.c:3675 [inline]
__do_sys_mount fs/namespace.c:3884 [inline]
__se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x8c3/0x9f0 mm/page_alloc.c:2312
free_unref_page+0x37/0x3f0 mm/page_alloc.c:2405
free_contig_range+0x9e/0x150 mm/page_alloc.c:6342
destroy_args+0x95/0x7c0 mm/debug_vm_pgtable.c:1028
debug_vm_pgtable+0x4ba/0x540 mm/debug_vm_pgtable.c:1408
do_one_initcall+0x23d/0x7d0 init/main.c:1232
do_initcall_level+0x157/0x210 init/main.c:1294
do_initcalls+0x3f/0x80 init/main.c:1310
kernel_init_freeable+0x429/0x5c0 init/main.c:1547
kernel_init+0x1d/0x2a0 init/main.c:1437
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
Modules linked in:
CPU: 0 PID: 108 Comm: jfsCommit Not tainted 6.6.0-rc5-syzkaller-00055-g1c8b86a3799f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:513
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1128 [inline]
free_unref_page_prepare+0x97c/0x9f0 mm/page_alloc.c:2312
free_unref_page+0x37/0x3f0 mm/page_alloc.c:2405
txUnlock+0x282/0xca0 fs/jfs/jfs_txnmgr.c:932
txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline]
jfs_lazycommit+0x5d4/0xb70 fs/jfs/jfs_txnmgr.c:2732
kthread+0x2d3/0x370 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
page:ffffea0001cddc00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x73770
flags: 0xfff00000008009(locked|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000008009 dead000000000100 dead000000000122 0000000000000000
raw: 000000000000001c ffff888073579000 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 5030, tgid 5030 (syz-executor385), ts 63184822697, free_ts 15219889891
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
folio_alloc+0x1e/0x60 mm/mempolicy.c:2307
filemap_alloc_folio+0xde/0x500 mm/filemap.c:976
do_read_cache_folio+0xed/0x810 mm/filemap.c:3706
do_read_cache_page+0x30/0x210 mm/filemap.c:3808
read_mapping_page include/linux/pagemap.h:860 [inline]
__get_metapage+0x330/0x1040 fs/jfs/jfs_metapage.c:620
diRead+0x5f4/0xae0 fs/jfs/jfs_imap.c:364
jfs_iget+0x8c/0x3b0 fs/jfs/inode.c:35
jfs_fill_super+0x808/0xc50 fs/jfs/super.c:580
mount_bdev+0x237/0x300 fs/super.c:1629
legacy_get_tree+0xef/0x190 fs/fs_context.c:638
vfs_get_tree+0x8c/0x280 fs/super.c:1750
do_new_mount+0x28f/0xae0 fs/namespace.c:3335
do_mount fs/namespace.c:3675 [inline]
__do_sys_mount fs/namespace.c:3884 [inline]
__se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x8c3/0x9f0 mm/page_alloc.c:2312
free_unref_page+0x37/0x3f0 mm/page_alloc.c:2405
free_contig_range+0x9e/0x150 mm/page_alloc.c:6342
destroy_args+0x95/0x7c0 mm/debug_vm_pgtable.c:1028
debug_vm_pgtable+0x4ba/0x540 mm/debug_vm_pgtable.c:1408
do_one_initcall+0x23d/0x7d0 init/main.c:1232
do_initcall_level+0x157/0x210 init/main.c:1294
do_initcalls+0x3f/0x80 init/main.c:1310
kernel_init_freeable+0x429/0x5c0 init/main.c:1547
kernel_init+0x1d/0x2a0 init/main.c:1437
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:1441!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 108 Comm: jfsCommit Tainted: G B 6.6.0-rc5-syzkaller-00055-g1c8b86a3799f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:folio_get include/linux/mm.h:1441 [inline]
RIP: 0010:get_page include/linux/mm.h:1447 [inline]
RIP: 0010:put_metapage+0x264/0x300 fs/jfs/jfs_metapage.c:750
Code: 2c 24 49 81 e5 ff 0f 00 00 74 21 e8 36 11 7c fe e9 9b 00 00 00 e8 2c 11 7c fe 48 8b 3c 24 48 c7 c6 e0 35 42 8b e8 bc f2 bd fe <0f> 0b 48 8b 1c 24 48 89 df be 08 00 00 00 e8 79 8f d6 fe 48 c1 eb
RSP: 0018:ffffc90002cd7c98 EFLAGS: 00010246
RAX: f9cf1121afbe5b00 RBX: 000000000000007f RCX: ffffffff816d7830
RDX: 0000000000000000 RSI: ffffffff8b5982c0 RDI: ffffffff8b598280
RBP: ffff888073579000 R08: ffffffff8e9a322f R09: 1ffffffff1d34645
R10: dffffc0000000000 R11: fffffbfff1d34646 R12: dffffc0000000000
R13: ffffea0001cddc34 R14: 1ffff1100e6af205 R15: ffff888073579028
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbb8ffec0f8 CR3: 000000002a75d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
txUnlock+0x42f/0xca0 fs/jfs/jfs_txnmgr.c:947
txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline]
jfs_lazycommit+0x5d4/0xb70 fs/jfs/jfs_txnmgr.c:2732
kthread+0x2d3/0x370 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_get include/linux/mm.h:1441 [inline]
RIP: 0010:get_page include/linux/mm.h:1447 [inline]
RIP: 0010:put_metapage+0x264/0x300 fs/jfs/jfs_metapage.c:750
Code: 2c 24 49 81 e5 ff 0f 00 00 74 21 e8 36 11 7c fe e9 9b 00 00 00 e8 2c 11 7c fe 48 8b 3c 24 48 c7 c6 e0 35 42 8b e8 bc f2 bd fe <0f> 0b 48 8b 1c 24 48 89 df be 08 00 00 00 e8 79 8f d6 fe 48 c1 eb
RSP: 0018:ffffc90002cd7c98 EFLAGS: 00010246
RAX: f9cf1121afbe5b00 RBX: 000000000000007f RCX: ffffffff816d7830
RDX: 0000000000000000 RSI: ffffffff8b5982c0 RDI: ffffffff8b598280
RBP: ffff888073579000 R08: ffffffff8e9a322f R09: 1ffffffff1d34645
R10: dffffc0000000000 R11: fffffbfff1d34646 R12: dffffc0000000000
R13: ffffea0001cddc34 R14: 1ffff1100e6af205 R15: ffff888073579028
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbb8ffec0f8 CR3: 000000002a75d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400