BUG: Bad page state in process jfsCommit pfn:75d93
page:ffffea0001d764c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x75d93
flags: 0xfff0000000800d(locked|referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff0000000800d dead000000000100 dead000000000122 0000000000000000
raw: 000000000000001c ffff888078e4d9b0 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 5041, tgid 5034 (syz-executor388), ts 68890756815, free_ts 57556269723
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:662
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
pipe_buf_release include/linux/pipe_fs_i.h:203 [inline]
pipe_read+0x6e6/0x1300 fs/pipe.c:324
call_read_iter include/linux/fs.h:1950 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x795/0xb00 fs/read_write.c:470
ksys_read+0x1a0/0x2c0 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Modules linked in:
CPU: 0 PID: 109 Comm: jfsCommit Not tainted 6.6.0-rc7-syzkaller #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:ffffea0001d764c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x75d93
flags: 0xfff0000000800d(locked|referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff0000000800d dead000000000100 dead000000000122 0000000000000000
raw: 000000000000001c ffff888078e4d9b0 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 5041, tgid 5034 (syz-executor388), ts 68890756815, free_ts 57556269723
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:662
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
pipe_buf_release include/linux/pipe_fs_i.h:203 [inline]
pipe_read+0x6e6/0x1300 fs/pipe.c:324
call_read_iter include/linux/fs.h:1950 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x795/0xb00 fs/read_write.c:470
ksys_read+0x1a0/0x2c0 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:1441!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 109 Comm: jfsCommit Tainted: G B 6.6.0-rc7-syzkaller #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 b6 0e 7c fe e9 9b 00 00 00 e8 ac 0e 7c fe 48 8b 3c 24 48 c7 c6 60 35 42 8b e8 5c f5 bd fe <0f> 0b 48 8b 1c 24 48 89 df be 08 00 00 00 e8 19 92 d6 fe 48 c1 eb
RSP: 0018:ffffc90002c4fc98 EFLAGS: 00010246
RAX: 11b663bae7acd700 RBX: 000000000000007f RCX: ffffffff816d7b40
RDX: 0000000000000000 RSI: ffffffff8b598240 RDI: ffffffff8b598200
RBP: ffff888078e4d9b0 R08: ffffffff8e99a86f R09: 1ffffffff1d3350d
R10: dffffc0000000000 R11: fffffbfff1d3350e R12: dffffc0000000000
R13: ffffea0001d764f4 R14: 1ffff1100f1c9b3b R15: ffff888078e4d9d8
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd1158f9d0 CR3: 0000000025737000 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 b6 0e 7c fe e9 9b 00 00 00 e8 ac 0e 7c fe 48 8b 3c 24 48 c7 c6 60 35 42 8b e8 5c f5 bd fe <0f> 0b 48 8b 1c 24 48 89 df be 08 00 00 00 e8 19 92 d6 fe 48 c1 eb
RSP: 0018:ffffc90002c4fc98 EFLAGS: 00010246
RAX: 11b663bae7acd700 RBX: 000000000000007f RCX: ffffffff816d7b40
RDX: 0000000000000000 RSI: ffffffff8b598240 RDI: ffffffff8b598200
RBP: ffff888078e4d9b0 R08: ffffffff8e99a86f R09: 1ffffffff1d3350d
R10: dffffc0000000000 R11: fffffbfff1d3350e R12: dffffc0000000000
R13: ffffea0001d764f4 R14: 1ffff1100f1c9b3b R15: ffff888078e4d9d8
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3106a95000 CR3: 0000000075ea2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400