BUG: Bad page state in process syz-executor.4 pfn:7656f
page:ffffea0001d95bc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x7656f
flags: 0xfff8c000002046(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0xfff)
raw: 00fff8c000002046 ffffea00017518c8 ffffc9000313f900 0000000000000000
raw: 0000000000000004 ffff888018f84ba0 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 4857, tgid 4856 (syz-executor.4), ts 124486145980, free_ts 124474249832
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513
prep_new_page mm/page_alloc.c:2520 [inline]
get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279
__alloc_pages+0x28d/0x770 mm/page_alloc.c:5547
folio_alloc+0x1a/0x50 mm/mempolicy.c:2292
filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:971
do_read_cache_folio+0x2a7/0x810 mm/filemap.c:3562
do_read_cache_page+0x32/0x220 mm/filemap.c:3640
read_mapping_page include/linux/pagemap.h:791 [inline]
__get_metapage+0x32c/0x1040 fs/jfs/jfs_metapage.c:620
dbAllocCtl+0xd5/0x920 fs/jfs/jfs_dmap.c:1816
dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1364
dbDiscardAG+0x34e/0xa10 fs/jfs/jfs_dmap.c:1613
jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:100
jfs_ioctl+0x2cc/0x3e0 fs/jfs/ioctl.c:131
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
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
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1440 [inline]
free_pcp_prepare mm/page_alloc.c:1490 [inline]
free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358
free_unref_page+0x33/0x3e0 mm/page_alloc.c:3453
mm_free_pgd kernel/fork.c:741 [inline]
__mmdrop+0xb2/0x470 kernel/fork.c:792
exit_mm+0x226/0x300 kernel/exit.c:563
do_exit+0x9f6/0x26a0 kernel/exit.c:856
do_group_exit+0x202/0x2b0 kernel/exit.c:1019
get_signal+0x16f7/0x17d0 kernel/signal.c:2862
arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
Modules linked in:
CPU: 1 PID: 4330 Comm: syz-executor.4 Not tainted 6.1.87-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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:1277 [inline]
free_page_is_bad mm/page_alloc.c:1287 [inline]
free_pages_prepare mm/page_alloc.c:1433 [inline]
free_pcp_prepare mm/page_alloc.c:1490 [inline]
free_unref_page_prepare+0x56b/0x1120 mm/page_alloc.c:3358
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499
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
dbUnmount+0x111/0x180 fs/jfs/jfs_dmap.c:275
jfs_umount+0x1fe/0x370 fs/jfs/jfs_umount.c:89
jfs_put_super+0x86/0x180 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x340 fs/super.c:501
kill_block_super+0x7a/0xe0 fs/super.c:1459
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:179
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
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f83b227f1d7
Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff1f3af398 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f83b227f1d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff1f3af450
RBP: 00007fff1f3af450 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff1f3b0510
R13: 00007f83b22c93b9 R14: 000000000001e2bd R15: 0000000000000003
BUG: Bad page state in process syz-executor.4 pfn:5d463
page:ffffea00017518c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x5d463
flags: 0xfff8c000002046(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0xfff)
raw: 00fff8c000002046 ffffea0001e8bdc8 ffffc9000313f900 0000000000000000
raw: 0000000000000003 ffff888018f84c98 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 4857, tgid 4856 (syz-executor.4), ts 124495111082, free_ts 124469214927
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513
prep_new_page mm/page_alloc.c:2520 [inline]
get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279
__alloc_pages+0x28d/0x770 mm/page_alloc.c:5547
folio_alloc+0x1a/0x50 mm/mempolicy.c:2292
filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:971
do_read_cache_folio+0x2a7/0x810 mm/filemap.c:3562
do_read_cache_page+0x32/0x220 mm/filemap.c:3640
read_mapping_page include/linux/pagemap.h:791 [inline]
__get_metapage+0x32c/0x1040 fs/jfs/jfs_metapage.c:620
dbAdjCtl+0x138/0x9c0 fs/jfs/jfs_dmap.c:2481
dbAllocDmap fs/jfs/jfs_dmap.c:2042 [inline]
dbAllocDmapLev+0x298/0x490 fs/jfs/jfs_dmap.c:1986
dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1823
dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1364
dbDiscardAG+0x34e/0xa10 fs/jfs/jfs_dmap.c:1613
jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:100
jfs_ioctl+0x2cc/0x3e0 fs/jfs/ioctl.c:131
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1440 [inline]
free_pcp_prepare mm/page_alloc.c:1490 [inline]
free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499
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
f2fs_evict_inode+0x202/0x17b0 fs/f2fs/inode.c:753
evict+0x2a4/0x620 fs/inode.c:666
f2fs_put_super+0x65d/0xc00 fs/f2fs/super.c:1637
generic_shutdown_super+0x130/0x340 fs/super.c:501
kill_block_super+0x7a/0xe0 fs/super.c:1459
kill_f2fs_super+0x2ff/0x3c0 fs/f2fs/super.c:4652
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:179
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: 4330 Comm: syz-executor.4 Tainted: G B 6.1.87-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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:1277 [inline]
free_page_is_bad mm/page_alloc.c:1287 [inline]
free_pages_prepare mm/page_alloc.c:1433 [inline]
free_pcp_prepare mm/page_alloc.c:1490 [inline]
free_unref_page_prepare+0x56b/0x1120 mm/page_alloc.c:3358
free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499
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
dbUnmount+0x111/0x180 fs/jfs/jfs_dmap.c:275
jfs_umount+0x1fe/0x370 fs/jfs/jfs_umount.c:89
jfs_put_super+0x86/0x180 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x340 fs/super.c:501
kill_block_super+0x7a/0xe0 fs/super.c:1459
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:179
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
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f83b227f1d7
Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff1f3af398 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f83b227f1d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff1f3af450
RBP: 00007fff1f3af450 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff1f3b0510
R13: 00007f83b22c93b9 R14: 000000000001e2bd R15: 0000000000000003
EXT4-fs (loop4): unmounting filesystem.
EXT4-fs (loop4): unmounting filesystem.