BUG: Bad page state in process syz.4.71 pfn:774af
page:ffffea0001dd2bc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2f pfn:0x774af
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0001dd2b88 ffffc900055af900 0000000000000000
raw: 000000000000002f ffff88802618fe88 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 4651, tgid 4650 (syz.4.71), ts 104381627724, free_ts 102382504015
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517
prep_new_page mm/page_alloc.c:2524 [inline]
get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4313
__alloc_pages+0x28d/0x770 mm/page_alloc.c:5590
folio_alloc+0x1a/0x50 mm/mempolicy.c:2292
filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:999
__filemap_get_folio+0x749/0xe80 mm/filemap.c:1993
pagecache_get_page+0x28/0x250 mm/folio-compat.c:110
find_or_create_page include/linux/pagemap.h:646 [inline]
grab_cache_page include/linux/pagemap.h:778 [inline]
__get_metapage+0x2b0/0x1040 fs/jfs/jfs_metapage.c:613
diNewExt+0xacb/0x37e0 fs/jfs/jfs_imap.c:2275
diAllocExt fs/jfs/jfs_imap.c:1952 [inline]
diAllocAG+0xbe4/0x1e50 fs/jfs/jfs_imap.c:1669
diAlloc+0x1ce/0x1630 fs/jfs/jfs_imap.c:1590
ialloc+0x8b/0x970 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x1c1/0xbb0 fs/jfs/namei.c:225
vfs_mkdir+0x3b6/0x590 fs/namei.c:4106
do_mkdirat+0x225/0x360 fs/namei.c:4131
__do_sys_mkdirat fs/namei.c:4146 [inline]
__se_sys_mkdirat fs/namei.c:4144 [inline]
__x64_sys_mkdirat+0x85/0x90 fs/namei.c:4144
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1444 [inline]
free_pcp_prepare mm/page_alloc.c:1494 [inline]
free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3510
release_pages+0x2836/0x2b40 mm/swap.c:1055
__pagevec_release+0x80/0xf0 mm/swap.c:1075
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
invalidate_mapping_pagevec+0x621/0x730 mm/truncate.c:542
btrfs_close_bdev fs/btrfs/volumes.c:1124 [inline]
btrfs_close_one_device fs/btrfs/volumes.c:1148 [inline]
close_fs_devices+0x41e/0x880 fs/btrfs/volumes.c:1190
btrfs_close_devices+0xc4/0x5c0 fs/btrfs/volumes.c:1205
close_ctree+0x75a/0xc5b fs/btrfs/disk-io.c:4774
generic_shutdown_super+0x130/0x340 fs/super.c:501
kill_anon_super+0x37/0x60 fs/super.c:1128
btrfs_kill_super+0x3d/0x50 fs/btrfs/super.c:2449
deactivate_locked_super+0xa0/0x110 fs/super.c:332
cleanup_mnt+0x490/0x520 fs/namespace.c:1186
task_work_run+0x246/0x300 kernel/task_work.c:203
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
Modules linked in:
CPU: 0 PID: 4665 Comm: syz.4.71 Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:699
free_page_is_bad_report mm/page_alloc.c:1281 [inline]
free_page_is_bad mm/page_alloc.c:1291 [inline]
free_pages_prepare mm/page_alloc.c:1437 [inline]
free_pcp_prepare mm/page_alloc.c:1494 [inline]
free_unref_page_prepare+0x56b/0x1120 mm/page_alloc.c:3369
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3510
release_pages+0x2836/0x2b40 mm/swap.c:1055
__pagevec_release+0x80/0xf0 mm/swap.c:1075
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x48a/0x1340 mm/truncate.c:372
jfs_remount+0x360/0x6a0 fs/jfs/super.c:451
reconfigure_super+0x43a/0x870 fs/super.c:977
do_remount fs/namespace.c:2712 [inline]
path_mount+0xe69/0x1090 fs/namespace.c:3378
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6eae981faa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f6eaf72be88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6eaf72bf10 RCX: 00007f6eae981faa
RDX: 00000000200003c0 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00000000200003c0 R08: 00007f6eaf72bf10 R09: 0000000001b6643c
R10: 0000000001b6643c R11: 0000000000000246 R12: 0000000020000100
R13: 00007f6eaf72bed0 R14: 0000000000000000 R15: 0000000020001d00
BUG: Bad page state in process syz.4.71 pfn:774ae
page:ffffea0001dd2b80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2e pfn:0x774ae
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0000a596c8 ffffc900055af900 0000000000000000
raw: 000000000000002e ffff88802618fd90 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 4651, tgid 4650 (syz.4.71), ts 104381573085, free_ts 102382513305
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517
prep_new_page mm/page_alloc.c:2524 [inline]
get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4313
__alloc_pages+0x28d/0x770 mm/page_alloc.c:5590
folio_alloc+0x1a/0x50 mm/mempolicy.c:2292
filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:999
__filemap_get_folio+0x749/0xe80 mm/filemap.c:1993
pagecache_get_page+0x28/0x250 mm/folio-compat.c:110
find_or_create_page include/linux/pagemap.h:646 [inline]
grab_cache_page include/linux/pagemap.h:778 [inline]
__get_metapage+0x2b0/0x1040 fs/jfs/jfs_metapage.c:613
diNewExt+0xacb/0x37e0 fs/jfs/jfs_imap.c:2275
diAllocExt fs/jfs/jfs_imap.c:1952 [inline]
diAllocAG+0xbe4/0x1e50 fs/jfs/jfs_imap.c:1669
diAlloc+0x1ce/0x1630 fs/jfs/jfs_imap.c:1590
ialloc+0x8b/0x970 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x1c1/0xbb0 fs/jfs/namei.c:225
vfs_mkdir+0x3b6/0x590 fs/namei.c:4106
do_mkdirat+0x225/0x360 fs/namei.c:4131
__do_sys_mkdirat fs/namei.c:4146 [inline]
__se_sys_mkdirat fs/namei.c:4144 [inline]
__x64_sys_mkdirat+0x85/0x90 fs/namei.c:4144
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1444 [inline]
free_pcp_prepare mm/page_alloc.c:1494 [inline]
free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3510
release_pages+0x2836/0x2b40 mm/swap.c:1055
__pagevec_release+0x80/0xf0 mm/swap.c:1075
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
invalidate_mapping_pagevec+0x621/0x730 mm/truncate.c:542
btrfs_close_bdev fs/btrfs/volumes.c:1124 [inline]
btrfs_close_one_device fs/btrfs/volumes.c:1148 [inline]
close_fs_devices+0x41e/0x880 fs/btrfs/volumes.c:1190
btrfs_close_devices+0xc4/0x5c0 fs/btrfs/volumes.c:1205
close_ctree+0x75a/0xc5b fs/btrfs/disk-io.c:4774
generic_shutdown_super+0x130/0x340 fs/super.c:501
kill_anon_super+0x37/0x60 fs/super.c:1128
btrfs_kill_super+0x3d/0x50 fs/btrfs/super.c:2449
deactivate_locked_super+0xa0/0x110 fs/super.c:332
cleanup_mnt+0x490/0x520 fs/namespace.c:1186
task_work_run+0x246/0x300 kernel/task_work.c:203
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
Modules linked in:
CPU: 1 PID: 4665 Comm: syz.4.71 Tainted: G B 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:699
free_page_is_bad_report mm/page_alloc.c:1281 [inline]
free_page_is_bad mm/page_alloc.c:1291 [inline]
free_pages_prepare mm/page_alloc.c:1437 [inline]
free_pcp_prepare mm/page_alloc.c:1494 [inline]
free_unref_page_prepare+0x56b/0x1120 mm/page_alloc.c:3369
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3510
release_pages+0x2836/0x2b40 mm/swap.c:1055
__pagevec_release+0x80/0xf0 mm/swap.c:1075
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x48a/0x1340 mm/truncate.c:372
jfs_remount+0x360/0x6a0 fs/jfs/super.c:451
reconfigure_super+0x43a/0x870 fs/super.c:977
do_remount fs/namespace.c:2712 [inline]
path_mount+0xe69/0x1090 fs/namespace.c:3378
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6eae981faa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f6eaf72be88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6eaf72bf10 RCX: 00007f6eae981faa
RDX: 00000000200003c0 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00000000200003c0 R08: 00007f6eaf72bf10 R09: 0000000001b6643c
R10: 0000000001b6643c R11: 0000000000000246 R12: 0000000020000100
R13: 00007f6eaf72bed0 R14: 0000000000000000 R15: 0000000020001d00
BUG: Bad page state in process syz.4.71 pfn:2965b
page:ffffea0000a596c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2d pfn:0x2965b
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea000091f3c8 ffffc900055af900 0000000000000000
raw: 000000000000002d ffff88802618fc98 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 4651, tgid 4650 (syz.4.71), ts 104381515591, free_ts 102729049876
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517
prep_new_page mm/page_alloc.c:2524 [inline]
get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4313
__alloc_pages+0x28d/0x770 mm/page_alloc.c:5590
folio_alloc+0x1a/0x50 mm/mempolicy.c:2292
filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:999
__filemap_get_folio+0x749/0xe80 mm/filemap.c:1993
pagecache_get_page+0x28/0x250 mm/folio-compat.c:110
find_or_create_page include/linux/pagemap.h:646 [inline]
grab_cache_page include/linux/pagemap.h:778 [inline]
__get_metapage+0x2b0/0x1040 fs/jfs/jfs_metapage.c:613
diNewExt+0xacb/0x37e0 fs/jfs/jfs_imap.c:2275
diAllocExt fs/jfs/jfs_imap.c:1952 [inline]
diAllocAG+0xbe4/0x1e50 fs/jfs/jfs_imap.c:1669
diAlloc+0x1ce/0x1630 fs/jfs/jfs_imap.c:1590
ialloc+0x8b/0x970 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x1c1/0xbb0 fs/jfs/namei.c:225
vfs_mkdir+0x3b6/0x590 fs/namei.c:4106
do_mkdirat+0x225/0x360 fs/namei.c:4131
__do_sys_mkdirat fs/namei.c:4146 [inline]
__se_sys_mkdirat fs/namei.c:4144 [inline]
__x64_sys_mkdirat+0x85/0x90 fs/namei.c:4144
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1444 [inline]
free_pcp_prepare mm/page_alloc.c:1494 [inline]
free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369
free_unref_page+0x33/0x3e0 mm/page_alloc.c:3464
qlink_free mm/kasan/quarantine.c:168 [inline]
qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
slab_alloc_node mm/slub.c:3398 [inline]
slab_alloc mm/slub.c:3406 [inline]
__kmem_cache_alloc_lru mm/slub.c:3413 [inline]
kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422
anon_vma_chain_alloc mm/rmap.c:141 [inline]
__anon_vma_prepare+0x64/0x400 mm/rmap.c:195
anon_vma_prepare include/linux/rmap.h:159 [inline]
do_anonymous_page mm/memory.c:4187 [inline]
handle_pte_fault mm/memory.c:5027 [inline]
__handle_mm_fault mm/memory.c:5171 [inline]
handle_mm_fault+0x4b26/0x5340 mm/memory.c:5292
do_user_addr_fault arch/x86/mm/fault.c:1340 [inline]
handle_page_fault arch/x86/mm/fault.c:1431 [inline]
exc_page_fault+0x26f/0x620 arch/x86/mm/fault.c:1487
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608
Modules linked in:
CPU: 1 PID: 4665 Comm: syz.4.71 Tainted: G B 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:699
free_page_is_bad_report mm/page_alloc.c:1281 [inline]
free_page_is_bad mm/page_alloc.c:1291 [inline]
free_pages_prepare mm/page_alloc.c:1437 [inline]
free_pcp_prepare mm/page_alloc.c:1494 [inline]
free_unref_page_prepare+0x56b/0x1120 mm/page_alloc.c:3369
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3510
release_pages+0x2836/0x2b40 mm/swap.c:1055
__pagevec_release+0x80/0xf0 mm/swap.c:1075
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x48a/0x1340 mm/truncate.c:372
jfs_remount+0x360/0x6a0 fs/jfs/super.c:451
reconfigure_super+0x43a/0x870 fs/super.c:977
do_remount fs/namespace.c:2712 [inline]
path_mount+0xe69/0x1090 fs/namespace.c:3378
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6eae981faa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f6eaf72be88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6eaf72bf10 RCX: 00007f6eae981faa
RDX: 00000000200003c0 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00000000200003c0 R08: 00007f6eaf72bf10 R09: 0000000001b6643c
R10: 0000000001b6643c R11: 0000000000000246 R12: 0000000020000100
R13: 00007f6eaf72bed0 R14: 0000000000000000 R15: 0000000020001d00