BUG: Bad page state in process syz-executor.4 pfn:6de13 page:ffffea0001b784c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6de13 flags: 0xfff00000000001(locked|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000001 dead000000000100 dead000000000122 0000000000000000 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 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 4594, tgid 4593 (syz-executor.4), ts 99657612216, free_ts 99510642284 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2be/0x320 mm/page_alloc.c:2449 prep_new_page mm/page_alloc.c:2456 [inline] get_page_from_freelist+0x1290/0x3b70 mm/page_alloc.c:4198 __alloc_pages+0x1cb/0x520 mm/page_alloc.c:5426 folio_alloc+0x16/0x40 mm/mempolicy.c:2282 page_cache_ra_unbounded+0x177/0x470 mm/readahead.c:240 page_cache_sync_readahead include/linux/pagemap.h:1234 [inline] filemap_get_pages+0x272/0x1480 mm/filemap.c:2592 filemap_read+0x295/0x9e0 mm/filemap.c:2679 __kernel_read+0x3af/0x8e0 fs/read_write.c:440 integrity_kernel_read+0x6c/0x90 security/integrity/iint.c:199 ima_calc_file_hash_tfm+0x253/0x340 security/integrity/ima/ima_crypto.c:484 ima_calc_file_shash security/integrity/ima/ima_crypto.c:515 [inline] ima_calc_file_hash+0x12a/0x3b0 security/integrity/ima/ima_crypto.c:572 ima_collect_measurement+0x4bf/0x650 security/integrity/ima/ima_api.c:292 process_measurement+0x8bc/0x1420 security/integrity/ima/ima_main.c:337 ima_file_check+0xab/0x100 security/integrity/ima/ima_main.c:517 do_open fs/namei.c:3522 [inline] path_openat+0x1145/0x23b0 fs/namei.c:3653 do_filp_open+0x19d/0x3d0 fs/namei.c:3680 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1371 [inline] free_pcp_prepare+0x54f/0xd30 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3343 [inline] free_unref_page_list+0x173/0xf80 mm/page_alloc.c:3475 release_pages+0x6f5/0x1780 mm/swap.c:980 tlb_batch_pages_flush+0x85/0x160 mm/mmu_gather.c:58 tlb_flush_mmu_free mm/mmu_gather.c:255 [inline] tlb_flush_mmu mm/mmu_gather.c:262 [inline] tlb_finish_mmu+0x114/0x6c0 mm/mmu_gather.c:353 unmap_region+0x23f/0x300 mm/mmap.c:2671 __do_munmap+0x4fa/0x1010 mm/mmap.c:2882 __vm_munmap+0xd8/0x1b0 mm/mmap.c:2905 __do_sys_munmap mm/mmap.c:2930 [inline] __se_sys_munmap mm/mmap.c:2927 [inline] __x64_sys_munmap+0x54/0x80 mm/mmap.c:2927 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Modules linked in: CPU: 1 PID: 4594 Comm: syz-executor.4 Not tainted 5.19.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x5b/0x81 lib/dump_stack.c:106 bad_page.cold+0x9c/0xbd mm/page_alloc.c:642 check_free_page_bad mm/page_alloc.c:1206 [inline] check_free_page mm/page_alloc.c:1216 [inline] free_pages_prepare mm/page_alloc.c:1365 [inline] free_pcp_prepare+0x6cc/0xd30 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3343 [inline] free_unref_page+0x1d/0x6a0 mm/page_alloc.c:3438 read_pages+0x60d/0xcd0 mm/readahead.c:170 page_cache_ra_unbounded+0x257/0x470 mm/readahead.c:261 page_cache_sync_readahead include/linux/pagemap.h:1234 [inline] filemap_get_pages+0x272/0x1480 mm/filemap.c:2592 filemap_read+0x295/0x9e0 mm/filemap.c:2679 __kernel_read+0x3af/0x8e0 fs/read_write.c:440 integrity_kernel_read+0x6c/0x90 security/integrity/iint.c:199 ima_calc_file_hash_tfm+0x253/0x340 security/integrity/ima/ima_crypto.c:484 ima_calc_file_shash security/integrity/ima/ima_crypto.c:515 [inline] ima_calc_file_hash+0x12a/0x3b0 security/integrity/ima/ima_crypto.c:572 ima_collect_measurement+0x4bf/0x650 security/integrity/ima/ima_api.c:292 process_measurement+0x8bc/0x1420 security/integrity/ima/ima_main.c:337 ima_file_check+0xab/0x100 security/integrity/ima/ima_main.c:517 do_open fs/namei.c:3522 [inline] path_openat+0x1145/0x23b0 fs/namei.c:3653 do_filp_open+0x19d/0x3d0 fs/namei.c:3680 do_sys_openat2+0x11e/0x3f0 fs/open.c:1278 do_sys_open fs/open.c:1294 [inline] __do_sys_open fs/open.c:1302 [inline] __se_sys_open fs/open.c:1298 [inline] __x64_sys_open+0x101/0x1a0 fs/open.c:1298 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7ffa4c68c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007ffa4d478168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffa4c7abf80 RCX: 00007ffa4c68c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280 RBP: 00007ffa4c6e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcadba9d0f R14: 00007ffa4d478300 R15: 0000000000022000