BUG: Bad page state in process syz.5.2972 pfn:7720f page:ffffea0001dc83c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x24 pfn:0x7720f flags: 0xfff0000000821c(referenced|uptodate|dirty|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff0000000821c ffffea00013cedc8 ffffea0001a9ae88 0000000000000000 raw: 0000000000000024 ffff88805f2902e8 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 15623, tgid 15622 (syz.2.2961), ts 895036403583, free_ts 895035577603 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 folio_alloc+0x1e/0x30 mm/mempolicy.c:2289 filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1004 do_read_cache_folio+0x381/0x7f0 mm/filemap.c:3764 do_read_cache_page+0x32/0x260 mm/filemap.c:3866 read_mapping_page include/linux/pagemap.h:892 [inline] __get_metapage+0x31d/0xfa0 fs/jfs/jfs_metapage.c:620 diRead+0x6ec/0xbb0 fs/jfs/jfs_imap.c:367 jfs_iget+0x90/0x440 fs/jfs/inode.c:35 jfs_lookup+0x221/0x420 fs/jfs/namei.c:1469 __lookup_slow+0x2a1/0x400 fs/namei.c:1707 lookup_slow+0x53/0x70 fs/namei.c:1724 walk_component+0x2ad/0x3e0 fs/namei.c:2015 lookup_last fs/namei.c:2472 [inline] path_lookupat+0x148/0x420 fs/namei.c:2496 filename_lookup+0x22d/0x580 fs/namei.c:2525 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1182 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459 tlb_batch_list_free mm/mmu_gather.c:115 [inline] tlb_finish_mmu+0x13e/0x220 mm/mmu_gather.c:428 unmap_region+0x311/0x370 mm/mmap.c:2357 do_vmi_align_munmap+0x1057/0x16a0 mm/mmap.c:2600 do_vmi_munmap+0x252/0x2d0 mm/mmap.c:2668 __vm_munmap+0x19e/0x3c0 mm/mmap.c:2969 __do_sys_munmap mm/mmap.c:2986 [inline] __se_sys_munmap mm/mmap.c:2983 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:2983 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Modules linked in: CPU: 0 PID: 15654 Comm: syz.5.2972 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:539 free_page_is_bad mm/page_alloc.c:988 [inline] free_pages_prepare mm/page_alloc.c:1173 [inline] free_unref_page_prepare+0x884/0x8f0 mm/page_alloc.c:2366 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2505 release_pages+0x208a/0x2300 mm/swap.c:1022 folios_put include/linux/mm.h:1548 [inline] folio_batch_move_lru+0x571/0x660 mm/swap.c:216 folio_add_lru+0x41c/0xce0 mm/swap.c:509 wp_page_copy mm/memory.c:3164 [inline] do_wp_page+0x1d29/0x34d0 mm/memory.c:3469 handle_pte_fault mm/memory.c:5063 [inline] __handle_mm_fault mm/memory.c:5190 [inline] handle_mm_fault+0x1300/0x4a40 mm/memory.c:5355 do_user_addr_fault+0x736/0x12d0 arch/x86/mm/fault.c:1371 handle_page_fault arch/x86/mm/fault.c:1463 [inline] exc_page_fault+0x64/0x100 arch/x86/mm/fault.c:1516 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0010:__put_user_nocheck_4+0x7/0x10 arch/x86/lib/putuser.S:98 Code: 01 ca c3 f3 0f 1e fa 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb 89 01 31 c9 0f 01 ca c3 90 90 90 90 90 90 90 f3 0f 1e fa 0f 01 cb <89> 01 31 c9 0f 01 ca c3 90 f3 0f 1e fa 48 89 cb 48 c1 fb 3f 48 09 RSP: 0018:ffffc9000de6f8d8 EFLAGS: 00050202 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000200000b40030 RDX: ffff88807e598000 RSI: 0000000000000002 RDI: 00000000ffffffff RBP: ffffc9000de6fa70 R08: ffffc9000de6f6a7 R09: 1ffff92001bcded4 R10: dffffc0000000000 R11: fffff52001bcded5 R12: 0000000000000002 R13: 0000000000000000 R14: 000000000002cf95 R15: 0000200000b40000 ____sys_recvmsg+0x3a9/0x5d0 net/socket.c:2827 ___sys_recvmsg+0x214/0x590 net/socket.c:2856 do_recvmmsg+0x377/0x810 net/socket.c:2950 __sys_recvmmsg net/socket.c:3029 [inline] __do_sys_recvmmsg net/socket.c:3052 [inline] __se_sys_recvmmsg net/socket.c:3045 [inline] __x64_sys_recvmmsg+0x199/0x250 net/socket.c:3045 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f27e2b9f559 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:00007f27e0dd5028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f27e2e26090 RCX: 00007f27e2b9f559 RDX: 0000000004000087 RSI: 0000200000001ac0 RDI: 0000000000000005 RBP: 00007f27e2c36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f27e2e26128 R14: 00007f27e2e26090 R15: 00007ffda4cb79e8 ---------------- Code disassembly (best guess): 0: 01 ca add %ecx,%edx 2: c3 ret 3: f3 0f 1e fa endbr64 7: 48 89 cb mov %rcx,%rbx a: 48 c1 fb 3f sar $0x3f,%rbx e: 48 09 d9 or %rbx,%rcx 11: 0f 01 cb stac 14: 89 01 mov %eax,(%rcx) 16: 31 c9 xor %ecx,%ecx 18: 0f 01 ca clac 1b: c3 ret 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: f3 0f 1e fa endbr64 27: 0f 01 cb stac * 2a: 89 01 mov %eax,(%rcx) <-- trapping instruction 2c: 31 c9 xor %ecx,%ecx 2e: 0f 01 ca clac 31: c3 ret 32: 90 nop 33: f3 0f 1e fa endbr64 37: 48 89 cb mov %rcx,%rbx 3a: 48 c1 fb 3f sar $0x3f,%rbx 3e: 48 rex.W 3f: 09 .byte 0x9