BUG: Bad page state in process kworker/u4:7 pfn:56000 page: refcount:0 mapcount:0 mapping:ffff888052c51b48 index:0x0 pfn:0x56000 aops:xfs_address_space_operations ino:244b dentry name(?):"bus" flags: 0x4fff0000000020c(referenced|uptodate|workingset|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff0000000020c dead000000000100 dead000000000122 ffff888052c51b48 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: non-NULL mapping page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x153c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE|__GFP_WRITE), pid 5318, tgid 5317 (syz.0.0), ts 69983474932, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2269 alloc_pages_noprof mm/mempolicy.c:2348 [inline] folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2355 filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1009 __filemap_get_folio+0x41f/0x940 mm/filemap.c:1951 iomap_get_folio fs/iomap/buffered-io.c:608 [inline] __iomap_get_folio fs/iomap/buffered-io.c:754 [inline] iomap_write_begin+0x4d3/0x1990 fs/iomap/buffered-io.c:797 iomap_write_iter fs/iomap/buffered-io.c:955 [inline] iomap_file_buffered_write+0x6ea/0x11c0 fs/iomap/buffered-io.c:1039 xfs_file_buffered_write+0x2de/0xac0 fs/xfs/xfs_file.c:792 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 1036 Comm: kworker/u4:7 Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: loop0 loop_workfn Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 bad_page+0x176/0x1d0 mm/page_alloc.c:501 free_page_is_bad mm/page_alloc.c:923 [inline] free_pages_prepare mm/page_alloc.c:1119 [inline] free_unref_page+0xfb1/0x1010 mm/page_alloc.c:2659 __folio_put+0x2b3/0x360 mm/swap.c:112 iomap_finish_folio_write fs/iomap/buffered-io.c:1533 [inline] iomap_finish_ioend+0x462/0x6b0 fs/iomap/buffered-io.c:1561 blk_update_request+0x5e5/0x1160 block/blk-mq.c:981 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1143 loop_handle_cmd drivers/block/loop.c:1926 [inline] loop_process_work+0x1bc8/0x21c0 drivers/block/loop.c:1944 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244