BUG: Bad page state in process syz-executor pfn:58ffc
page:ffffea000163ff00 refcount:0 mapcount:0 mapping:ffff8880550b87c8 index:0x2 pfn:0x58ffc
aops:z_erofs_cache_aops ino:0
flags: 0xfff00000000001(locked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000001 dead000000000100 dead000000000122 ffff8880550b87c8
raw: 0000000000000002 0000000000000000 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 0x192840(GFP_NOWAIT|__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 27979, tgid 27978 (syz.2.9394), ts 1214210195768, free_ts 1214173804341
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554
prep_new_page mm/page_alloc.c:1561 [inline]
get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191
__alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457
z_erofs_bind_cache fs/erofs/zdata.c:605 [inline]
z_erofs_pcluster_begin fs/erofs/zdata.c:889 [inline]
z_erofs_do_read_page+0x20c0/0x3680 fs/erofs/zdata.c:1024
z_erofs_pcluster_readmore+0x2cf/0x450 fs/erofs/zdata.c:1833
z_erofs_read_folio+0x208/0x540 fs/erofs/zdata.c:1853
filemap_read_folio+0x167/0x760 mm/filemap.c:2420
do_read_cache_folio+0x470/0x7e0 mm/filemap.c:3789
erofs_bread+0x16f/0x630 fs/erofs/data.c:48
erofs_find_target_block fs/erofs/namei.c:103 [inline]
erofs_namei+0x28c/0xf00 fs/erofs/namei.c:177
erofs_lookup+0x135/0x310 fs/erofs/namei.c:206
lookup_open fs/namei.c:3474 [inline]
open_last_lookups fs/namei.c:3564 [inline]
path_openat+0x10b8/0x3190 fs/namei.c:3794
do_filp_open+0x1c5/0x3d0 fs/namei.c:3824
do_sys_openat2+0x12c/0x1c0 fs/open.c:1419
do_sys_open fs/open.c:1434 [inline]
__do_sys_creat fs/open.c:1512 [inline]
__se_sys_creat fs/open.c:1506 [inline]
__x64_sys_creat+0x90/0xb0 fs/open.c:1506
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1154 [inline]
free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429
vfree+0x1a6/0x320 mm/vmalloc.c:2868
delayed_vfree_work+0x55/0x80 mm/vmalloc.c:2788
process_one_work kernel/workqueue.c:2634 [inline]
process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
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: 5800 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:512
free_page_is_bad mm/page_alloc.c:961 [inline]
free_pages_prepare mm/page_alloc.c:1146 [inline]
free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429
detach_page_private include/linux/pagemap.h:539 [inline]
erofs_try_to_free_all_cached_pages+0x295/0x600 fs/erofs/zdata.c:657
erofs_try_to_release_workgroup fs/erofs/utils.c:132 [inline]
erofs_shrink_workstation+0x118/0x290 fs/erofs/utils.c:161
erofs_shrinker_unregister+0x5d/0x170 fs/erofs/utils.c:198
erofs_put_super+0x4e/0x150 fs/erofs/super.c:812
generic_shutdown_super+0x134/0x2b0 fs/super.c:693
kill_block_super+0x44/0x90 fs/super.c:1660
erofs_kill_sb+0x4c/0x140 fs/erofs/super.c:794
deactivate_locked_super+0x97/0x100 fs/super.c:481
cleanup_mnt+0x429/0x4c0 fs/namespace.c:1259
task_work_run+0x1ce/0x250 kernel/task_work.c:239
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
exit_to_user_mode_prepare+0xf6/0x180 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f51c51909f7
Code: a8 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 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffdf8597708 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f51c5211d7d RCX: 00007f51c51909f7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdf85977c0
RBP: 00007ffdf85977c0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdf8598850
R13: 00007f51c5211d7d R14: 00000000001288bf R15: 00007ffdf8598890
BUG: Bad page state in process syz-executor pfn:7c847
page:ffffea0001f211c0 refcount:0 mapcount:0 mapping:ffff8880550b87c8 index:0x3 pfn:0x7c847
aops:z_erofs_cache_aops ino:0
flags: 0xfff00000000001(locked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000001 dead000000000100 dead000000000122 ffff8880550b87c8
raw: 0000000000000003 0000000000000000 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 0x192840(GFP_NOWAIT|__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 27979, tgid 27978 (syz.2.9394), ts 1214210216922, free_ts 1214173783907
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554
prep_new_page mm/page_alloc.c:1561 [inline]
get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191
__alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457
z_erofs_bind_cache fs/erofs/zdata.c:605 [inline]
z_erofs_pcluster_begin fs/erofs/zdata.c:889 [inline]
z_erofs_do_read_page+0x20c0/0x3680 fs/erofs/zdata.c:1024
z_erofs_pcluster_readmore+0x2cf/0x450 fs/erofs/zdata.c:1833
z_erofs_read_folio+0x208/0x540 fs/erofs/zdata.c:1853
filemap_read_folio+0x167/0x760 mm/filemap.c:2420
do_read_cache_folio+0x470/0x7e0 mm/filemap.c:3789
erofs_bread+0x16f/0x630 fs/erofs/data.c:48
erofs_find_target_block fs/erofs/namei.c:103 [inline]
erofs_namei+0x28c/0xf00 fs/erofs/namei.c:177
erofs_lookup+0x135/0x310 fs/erofs/namei.c:206
lookup_open fs/namei.c:3474 [inline]
open_last_lookups fs/namei.c:3564 [inline]
path_openat+0x10b8/0x3190 fs/namei.c:3794
do_filp_open+0x1c5/0x3d0 fs/namei.c:3824
do_sys_openat2+0x12c/0x1c0 fs/open.c:1419
do_sys_open fs/open.c:1434 [inline]
__do_sys_creat fs/open.c:1512 [inline]
__se_sys_creat fs/open.c:1506 [inline]
__x64_sys_creat+0x90/0xb0 fs/open.c:1506
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1154 [inline]
free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429
vfree+0x1a6/0x320 mm/vmalloc.c:2868
delayed_vfree_work+0x55/0x80 mm/vmalloc.c:2788
process_one_work kernel/workqueue.c:2634 [inline]
process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
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: 5800 Comm: syz-executor Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:512
free_page_is_bad mm/page_alloc.c:961 [inline]
free_pages_prepare mm/page_alloc.c:1146 [inline]
free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429
detach_page_private include/linux/pagemap.h:539 [inline]
erofs_try_to_free_all_cached_pages+0x295/0x600 fs/erofs/zdata.c:657
erofs_try_to_release_workgroup fs/erofs/utils.c:132 [inline]
erofs_shrink_workstation+0x118/0x290 fs/erofs/utils.c:161
erofs_shrinker_unregister+0x5d/0x170 fs/erofs/utils.c:198
erofs_put_super+0x4e/0x150 fs/erofs/super.c:812
generic_shutdown_super+0x134/0x2b0 fs/super.c:693
kill_block_super+0x44/0x90 fs/super.c:1660
erofs_kill_sb+0x4c/0x140 fs/erofs/super.c:794
deactivate_locked_super+0x97/0x100 fs/super.c:481
cleanup_mnt+0x429/0x4c0 fs/namespace.c:1259
task_work_run+0x1ce/0x250 kernel/task_work.c:239
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
exit_to_user_mode_prepare+0xf6/0x180 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f51c51909f7
Code: a8 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 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffdf8597708 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f51c5211d7d RCX: 00007f51c51909f7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdf85977c0
RBP: 00007ffdf85977c0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdf8598850
R13: 00007f51c5211d7d R14: 00000000001288bf R15: 00007ffdf8598890
BUG: Bad page state in process syz-executor pfn:5c43b
page:ffffea0001710ec0 refcount:0 mapcount:0 mapping:ffff8880550b87c8 index:0x4 pfn:0x5c43b
aops:z_erofs_cache_aops ino:0
flags: 0xfff00000000001(locked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000001 dead000000000100 dead000000000122 ffff8880550b87c8
raw: 0000000000000004 0000000000000000 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 0x192840(GFP_NOWAIT|__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 27979, tgid 27978 (syz.2.9394), ts 1214210239687, free_ts 1213922993805
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554
prep_new_page mm/page_alloc.c:1561 [inline]
get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191
__alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457
z_erofs_bind_cache fs/erofs/zdata.c:605 [inline]
z_erofs_pcluster_begin fs/erofs/zdata.c:889 [inline]
z_erofs_do_read_page+0x20c0/0x3680 fs/erofs/zdata.c:1024
z_erofs_pcluster_readmore+0x2cf/0x450 fs/erofs/zdata.c:1833
z_erofs_read_folio+0x208/0x540 fs/erofs/zdata.c:1853
filemap_read_folio+0x167/0x760 mm/filemap.c:2420
do_read_cache_folio+0x470/0x7e0 mm/filemap.c:3789
erofs_bread+0x16f/0x630 fs/erofs/data.c:48
erofs_find_target_block fs/erofs/namei.c:103 [inline]
erofs_namei+0x28c/0xf00 fs/erofs/namei.c:177
erofs_lookup+0x135/0x310 fs/erofs/namei.c:206
lookup_open fs/namei.c:3474 [inline]
open_last_lookups fs/namei.c:3564 [inline]
path_openat+0x10b8/0x3190 fs/namei.c:3794
do_filp_open+0x1c5/0x3d0 fs/namei.c:3824
do_sys_openat2+0x12c/0x1c0 fs/open.c:1419
do_sys_open fs/open.c:1434 [inline]
__do_sys_creat fs/open.c:1512 [inline]
__se_sys_creat fs/open.c:1506 [inline]
__x64_sys_creat+0x90/0xb0 fs/open.c:1506
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1154 [inline]
free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429
discard_slab mm/slub.c:2127 [inline]
__unfreeze_partials+0x1cf/0x210 mm/slub.c:2667
put_cpu_partial+0x17c/0x250 mm/slub.c:2743
__slab_free+0x31d/0x410 mm/slub.c:3700
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x75/0xe0 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook+0x6e/0x4d0 mm/slab.h:767
slab_alloc_node mm/slub.c:3495 [inline]
__kmem_cache_alloc_node+0x13e/0x260 mm/slub.c:3534
kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098
kmalloc include/linux/slab.h:600 [inline]
kzalloc include/linux/slab.h:721 [inline]
bpf_raw_tp_link_attach+0x23a/0x560 kernel/bpf/syscall.c:3729
bpf_raw_tracepoint_open+0x197/0x210 kernel/bpf/syscall.c:3771
__sys_bpf+0x364/0x800 kernel/bpf/syscall.c:5515
__do_sys_bpf kernel/bpf/syscall.c:5577 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5575 [inline]
__x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5575
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
Modules linked in:
CPU: 0 PID: 5800 Comm: syz-executor Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:512
free_page_is_bad mm/page_alloc.c:961 [inline]
free_pages_prepare mm/page_alloc.c:1146 [inline]
free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336
free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429
detach_page_private include/linux/pagemap.h:539 [inline]
erofs_try_to_free_all_cached_pages+0x295/0x600 fs/erofs/zdata.c:657
erofs_try_to_release_workgroup fs/erofs/utils.c:132 [inline]
erofs_shrink_workstation+0x118/0x290 fs/erofs/utils.c:161
erofs_shrinker_unregister+0x5d/0x170 fs/erofs/utils.c:198
erofs_put_super+0x4e/0x150 fs/erofs/super.c:812
generic_shutdown_super+0x134/0x2b0 fs/super.c:693
kill_block_super+0x44/0x90 fs/super.c:1660
erofs_kill_sb+0x4c/0x140 fs/erofs/super.c:794
deactivate_locked_super+0x97/0x100 fs/super.c:481
cleanup_mnt+0x429/0x4c0 fs/namespace.c:1259
task_work_run+0x1ce/0x250 kernel/task_work.c:239
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
exit_to_user_mode_prepare+0xf6/0x180 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f51c51909f7
Code: a8 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 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffdf8597708 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f51c5211d7d RCX: 00007f51c51909f7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdf85977c0
RBP: 00007ffdf85977c0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdf8598850
R13: 00007f51c5211d7d R14: 00000000001288bf R15: 00007ffdf8598890