BUG: Bad page state in process syz.1.108 pfn:5624d
page:ffffea0001589340 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x5624d
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea00015892c8 ffffc90003ba7700 0000000000000000
raw: 0000000000000004 ffff88805624c1f0 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 0x100c40(GFP_NOFS|__GFP_HARDWALL), pid 5059, ts 103341885369, free_ts 103339768507
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192
__alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
__page_cache_alloc+0xce/0x440 mm/filemap.c:1022
do_read_cache_page+0x1da/0x1030 mm/filemap.c:3457
read_mapping_page include/linux/pagemap.h:515 [inline]
__get_metapage+0x35d/0x1060 fs/jfs/jfs_metapage.c:621
dbAllocCtl+0xd4/0x9b0 fs/jfs/jfs_dmap.c:1881
dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1421
dbDiscardAG+0x2c5/0x8e0 fs/jfs/jfs_dmap.c:1676
jfs_ioc_trim+0x41e/0x680 fs/jfs/jfs_discard.c:106
jfs_ioctl+0x2b6/0x3c0 fs/jfs/ioctl.c:132
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396
kasan_depopulate_vmalloc_pte+0x67/0x80 mm/kasan/shadow.c:375
apply_to_pte_range mm/memory.c:2573 [inline]
apply_to_pmd_range mm/memory.c:2617 [inline]
apply_to_pud_range mm/memory.c:2653 [inline]
apply_to_p4d_range mm/memory.c:2689 [inline]
__apply_to_page_range+0x983/0xd10 mm/memory.c:2725
kasan_release_vmalloc+0x93/0xb0 mm/kasan/shadow.c:485
__purge_vmap_area_lazy+0xafc/0x1950 mm/vmalloc.c:1711
_vm_unmap_aliases+0x410/0x4a0 mm/vmalloc.c:2114
change_page_attr_set_clr+0x323/0xca0 arch/x86/mm/pat/set_memory.c:1740
change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline]
set_memory_ro+0x89/0xd0 arch/x86/mm/pat/set_memory.c:1943
bpf_jit_binary_lock_ro include/linux/filter.h:919 [inline]
bpf_int_jit_compile+0xc6d8/0xcd80 arch/x86/net/bpf_jit_comp.c:2478
bpf_prog_select_runtime+0x46f/0x7c0 kernel/bpf/core.c:1977
bpf_migrate_filter net/core/filter.c:1307 [inline]
bpf_prepare_filter+0x1020/0x11d0 net/core/filter.c:1355
bpf_prog_create_from_user+0x2ce/0x420 net/core/filter.c:1449
seccomp_prepare_filter kernel/seccomp.c:669 [inline]
seccomp_prepare_user_filter kernel/seccomp.c:706 [inline]
seccomp_set_mode_filter kernel/seccomp.c:1834 [inline]
do_seccomp+0x814/0x16c0 kernel/seccomp.c:1954
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
Modules linked in:
CPU: 1 PID: 5059 Comm: syz.1.108 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:652
check_free_page mm/page_alloc.c:1209 [inline]
free_pages_prepare mm/page_alloc.c:1334 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x383/0x6c0 mm/page_alloc.c:3317
free_unref_page_list+0x119/0x820 mm/page_alloc.c:3433
release_pages+0x186c/0x1be0 mm/swap.c:963
__pagevec_release+0x6d/0xe0 mm/swap.c:983
pagevec_release include/linux/pagevec.h:81 [inline]
truncate_inode_pages_range+0x362/0xfe0 mm/truncate.c:329
dbUnmount+0x105/0x170 fs/jfs/jfs_dmap.c:264
jfs_umount+0x1fa/0x360 fs/jfs/jfs_umount.c:89
jfs_put_super+0x88/0x190 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x300 fs/super.c:475
kill_block_super+0x7c/0xe0 fs/super.c:1427
deactivate_locked_super+0x93/0xf0 fs/super.c:335
cleanup_mnt+0x42d/0x4e0 fs/namespace.c:1148
task_work_run+0x125/0x1a0 kernel/task_work.c:188
get_signal+0x1222/0x12c0 kernel/signal.c:2672
arch_do_signal_or_restart+0xe7/0x12c0 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:154 [inline]
exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f2b83644dd9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2b8189e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007f2b838bdfa0 RCX: 00007f2b83644dd9
RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000004
RBP: 00007f2b836dad69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2b838be038 R14: 00007f2b838bdfa0 R15: 00007ffc45deffb8
BUG: Bad page state in process syz.1.108 pfn:5624b
page:ffffea00015892c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3 pfn:0x5624b
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea000171f008 ffffc90003ba7700 0000000000000000
raw: 0000000000000003 ffff88805624c2e8 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 0x100c40(GFP_NOFS|__GFP_HARDWALL), pid 5059, ts 103358496468, free_ts 103339749239
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192
__alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
__page_cache_alloc+0xce/0x440 mm/filemap.c:1022
do_read_cache_page+0x1da/0x1030 mm/filemap.c:3457
read_mapping_page include/linux/pagemap.h:515 [inline]
__get_metapage+0x35d/0x1060 fs/jfs/jfs_metapage.c:621
dbAdjCtl+0x144/0xa20 fs/jfs/jfs_dmap.c:2551
dbAllocDmap fs/jfs/jfs_dmap.c:2112 [inline]
dbAllocDmapLev+0x209/0x3c0 fs/jfs/jfs_dmap.c:2056
dbAllocCtl+0x148/0x9b0 fs/jfs/jfs_dmap.c:1893
dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1421
dbDiscardAG+0x2c5/0x8e0 fs/jfs/jfs_dmap.c:1676
jfs_ioc_trim+0x41e/0x680 fs/jfs/jfs_discard.c:106
jfs_ioctl+0x2b6/0x3c0 fs/jfs/ioctl.c:132
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396
kasan_depopulate_vmalloc_pte+0x67/0x80 mm/kasan/shadow.c:375
apply_to_pte_range mm/memory.c:2573 [inline]
apply_to_pmd_range mm/memory.c:2617 [inline]
apply_to_pud_range mm/memory.c:2653 [inline]
apply_to_p4d_range mm/memory.c:2689 [inline]
__apply_to_page_range+0x983/0xd10 mm/memory.c:2725
kasan_release_vmalloc+0x93/0xb0 mm/kasan/shadow.c:485
__purge_vmap_area_lazy+0xafc/0x1950 mm/vmalloc.c:1711
_vm_unmap_aliases+0x410/0x4a0 mm/vmalloc.c:2114
change_page_attr_set_clr+0x323/0xca0 arch/x86/mm/pat/set_memory.c:1740
change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline]
set_memory_ro+0x89/0xd0 arch/x86/mm/pat/set_memory.c:1943
bpf_jit_binary_lock_ro include/linux/filter.h:919 [inline]
bpf_int_jit_compile+0xc6d8/0xcd80 arch/x86/net/bpf_jit_comp.c:2478
bpf_prog_select_runtime+0x46f/0x7c0 kernel/bpf/core.c:1977
bpf_migrate_filter net/core/filter.c:1307 [inline]
bpf_prepare_filter+0x1020/0x11d0 net/core/filter.c:1355
bpf_prog_create_from_user+0x2ce/0x420 net/core/filter.c:1449
seccomp_prepare_filter kernel/seccomp.c:669 [inline]
seccomp_prepare_user_filter kernel/seccomp.c:706 [inline]
seccomp_set_mode_filter kernel/seccomp.c:1834 [inline]
do_seccomp+0x814/0x16c0 kernel/seccomp.c:1954
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
Modules linked in:
CPU: 0 PID: 5059 Comm: syz.1.108 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:652
check_free_page mm/page_alloc.c:1209 [inline]
free_pages_prepare mm/page_alloc.c:1334 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x383/0x6c0 mm/page_alloc.c:3317
free_unref_page_list+0x119/0x820 mm/page_alloc.c:3433
release_pages+0x186c/0x1be0 mm/swap.c:963
__pagevec_release+0x6d/0xe0 mm/swap.c:983
pagevec_release include/linux/pagevec.h:81 [inline]
truncate_inode_pages_range+0x362/0xfe0 mm/truncate.c:329
dbUnmount+0x105/0x170 fs/jfs/jfs_dmap.c:264
jfs_umount+0x1fa/0x360 fs/jfs/jfs_umount.c:89
jfs_put_super+0x88/0x190 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x300 fs/super.c:475
kill_block_super+0x7c/0xe0 fs/super.c:1427
deactivate_locked_super+0x93/0xf0 fs/super.c:335
cleanup_mnt+0x42d/0x4e0 fs/namespace.c:1148
task_work_run+0x125/0x1a0 kernel/task_work.c:188
get_signal+0x1222/0x12c0 kernel/signal.c:2672
arch_do_signal_or_restart+0xe7/0x12c0 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:154 [inline]
exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f2b83644dd9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2b8189e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007f2b838bdfa0 RCX: 00007f2b83644dd9
RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000004
RBP: 00007f2b836dad69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2b838be038 R14: 00007f2b838bdfa0 R15: 00007ffc45deffb8