netlink: 32 bytes leftover after parsing attributes in process `syz.0.0'. loop0: detected capacity change from 0 to 32768 XFS: ikeep mount option is deprecated. XFS: ikeep mount option is deprecated. XFS (loop0): Mounting V5 Filesystem bfdc47fc-10d8-4eed-a562-11a831b3f791 XFS (loop0): Ending clean mount XFS (loop0): Quotacheck needed: Please wait. XFS (loop0): Quotacheck: Done. BUG: Bad page state in process syz.0.0 pfn:55800 page: refcount:0 mapcount:0 mapping:ffff8880437e1388 index:0x0 pfn:0x55800 aops:xfs_address_space_operations ino:244a dentry name(?):"bus" flags: 0x4fff0000000000c(referenced|uptodate|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff0000000000c dead000000000100 dead000000000122 ffff8880437e1388 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_MOVABLE|__GFP_WRITE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5322, tgid 5321 (syz.0.0), ts 86323556621, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1710 prep_new_page mm/page_alloc.c:1718 [inline] get_page_from_freelist+0x21e0/0x22c0 mm/page_alloc.c:3680 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4970 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2301 alloc_frozen_pages_noprof mm/mempolicy.c:2372 [inline] alloc_pages_noprof+0xa9/0x190 mm/mempolicy.c:2392 folio_alloc_noprof+0x1e/0x30 mm/mempolicy.c:2402 filemap_alloc_folio_noprof+0xdf/0x470 mm/filemap.c:1007 __filemap_get_folio+0x3f2/0xaf0 mm/filemap.c:1969 iomap_get_folio fs/iomap/buffered-io.c:606 [inline] __iomap_get_folio fs/iomap/buffered-io.c:756 [inline] iomap_write_begin+0x660/0x1bc0 fs/iomap/buffered-io.c:821 iomap_write_iter fs/iomap/buffered-io.c:979 [inline] iomap_file_buffered_write+0x438/0x980 fs/iomap/buffered-io.c:1058 xfs_file_buffered_write+0x201/0x890 fs/xfs/xfs_file.c:981 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x54b/0xa90 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Modules linked in: CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted 6.15.0-syzkaller-08297-ge0797d3b91de #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:506 free_page_is_bad mm/page_alloc.c:945 [inline] free_pages_prepare mm/page_alloc.c:1246 [inline] __free_frozen_pages+0xdff/0xe50 mm/page_alloc.c:2717 __folio_put+0x21b/0x2c0 mm/swap.c:112 folio_put include/linux/mm.h:1580 [inline] truncate_inode_pages_range+0x72a/0xda0 mm/truncate.c:397 xfs_flush_unmap_range+0xdf/0xf0 fs/xfs/xfs_bmap_util.c:836 xfs_reflink_remap_prep+0x57f/0x720 fs/xfs/xfs_reflink.c:1717 xfs_file_remap_range+0x235/0x780 fs/xfs/xfs_file.c:1506 vfs_copy_file_range+0xd53/0x1310 fs/read_write.c:1591 __do_sys_copy_file_range fs/read_write.c:1677 [inline] __se_sys_copy_file_range+0x2fb/0x470 fs/read_write.c:1644 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2be0b8e969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2be19ec038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007f2be0db5fa0 RCX: 00007f2be0b8e969 RDX: 0000000000000009 RSI: 00002000000001c0 RDI: 000000000000000a RBP: 00007f2be0c10ab1 R08: ffffffffa003e45b R09: 0700000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2be0db5fa0 R15: 00007ffecfd76918