BUG: Bad page state in process syz-executor636 pfn:11cc9e page: refcount:0 mapcount:0 mapping:ffff88812bb219b8 index:0x0 pfn:0x11cc9e aops:v9fs_addr_operations ino:2 dentry name(?):"/" flags: 0x4000000000000001(locked|zone=1) raw: 4000000000000001 dead000000000100 dead000000000122 ffff88812bb219b8 raw: 0000000000000000 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 Movable, gfp_mask 0x141cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_WRITE), pid 23118, tgid 23118 (syz-executor636), ts 407412586644, free_ts 407339726311 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x249/0x3a0 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1562 [inline] get_page_from_freelist+0x3d40/0x3de0 mm/page_alloc.c:3507 __alloc_pages_noprof+0x23a/0x4e0 mm/page_alloc.c:4793 __folio_alloc_noprof+0x14/0x80 mm/page_alloc.c:4825 __folio_alloc_node_noprof include/linux/gfp.h:280 [inline] folio_alloc_noprof include/linux/gfp.h:322 [inline] filemap_alloc_folio_noprof include/linux/pagemap.h:668 [inline] __filemap_get_folio+0x373/0x620 mm/filemap.c:1952 netfs_grab_folio_for_write fs/netfs/buffered_write.c:47 [inline] netfs_perform_write+0x4ad/0x1da0 fs/netfs/buffered_write.c:172 netfs_buffered_write_iter_locked+0xa3/0x1c0 fs/netfs/buffered_write.c:447 netfs_file_write_iter+0x189/0x440 fs/netfs/buffered_write.c:486 v9fs_file_write_iter+0xac/0xe0 fs/9p/vfs_file.c:407 do_iter_readv_writev+0x4f5/0x6a0 fs/read_write.c:-1 vfs_writev+0x44c/0xcc0 fs/read_write.c:1064 do_pwritev fs/read_write.c:1165 [inline] __do_sys_pwritev2 fs/read_write.c:1224 [inline] __se_sys_pwritev2+0x1ad/0x2b0 fs/read_write.c:1215 __x64_sys_pwritev2+0xc3/0xf0 fs/read_write.c:1215 x64_sys_call+0x2938/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:329 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 23112 tgid 23112 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1123 [inline] free_unref_folios+0xb3a/0x1200 mm/page_alloc.c:2735 folios_put_refs+0x4c9/0x5c0 mm/swap.c:993 free_pages_and_swap_cache+0x3f7/0x460 mm/swap_state.c:335 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x424/0x6d0 mm/mmu_gather.c:373 tlb_finish_mmu+0xcf/0x1d0 mm/mmu_gather.c:465 exit_mmap+0x3bb/0x920 mm/mmap.c:1952 __mmput+0x93/0x320 kernel/fork.c:1354 mmput+0x51/0x80 kernel/fork.c:1376 exit_mm kernel/exit.c:571 [inline] do_exit+0x8fa/0x2380 kernel/exit.c:935 do_group_exit+0x215/0x2e0 kernel/exit.c:1089 __do_sys_exit_group kernel/exit.c:1100 [inline] __se_sys_exit_group kernel/exit.c:1098 [inline] __x64_sys_exit_group+0x43/0x50 kernel/exit.c:1098 x64_sys_call+0x2ed2/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Modules linked in: CPU: 1 UID: 0 PID: 23118 Comm: syz-executor636 Not tainted syzkaller #0 399d9660b152083158bb9bc53e028f7a6c2281f4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x10c/0x190 lib/dump_stack.c:120 dump_stack+0x19/0x20 lib/dump_stack.c:129 bad_page+0x169/0x1c0 mm/page_alloc.c:501 free_page_is_bad_report+0x129/0x1d0 mm/page_alloc.c:909 free_page_is_bad mm/page_alloc.c:919 [inline] free_pages_prepare mm/page_alloc.c:1115 [inline] free_unref_page+0xb7e/0xbe0 mm/page_alloc.c:2688 __folio_put+0x24f/0x2a0 mm/swap.c:112 folio_put include/linux/mm.h:1478 [inline] netfs_perform_write+0x1916/0x1da0 fs/netfs/buffered_write.c:403 netfs_buffered_write_iter_locked+0xa3/0x1c0 fs/netfs/buffered_write.c:447 netfs_file_write_iter+0x189/0x440 fs/netfs/buffered_write.c:486 v9fs_file_write_iter+0xac/0xe0 fs/9p/vfs_file.c:407 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x669/0xe40 fs/read_write.c:683 ksys_write+0x141/0x250 fs/read_write.c:736 __do_sys_write fs/read_write.c:748 [inline] __se_sys_write fs/read_write.c:745 [inline] __x64_sys_write+0x7f/0x90 fs/read_write.c:745 x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f87482a0f79 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd06c9a218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f87482a0f79 RDX: 0000000000000018 RSI: 0000200000000380 RDI: 0000000000000006 RBP: 0000200000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000006 R11: 0000000000000246 R12: 00002000000003c0 R13: 00007f87482ea04e R14: 0000000000000001 R15: 0000000000000001