loop0: detected capacity change from 0 to 256 loop0: detected capacity change from 0 to 32768 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:53e01 page does not match folio page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x53e01 ksm flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 ffffea00014f8000 00000000ffffffff ffffffffffffffff raw: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: nonzero pincount page_owner tracks the page as allocated page last allocated via order 9, migratetype Movable, gfp_mask 0x153c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_MOVABLE|__GFP_WRITE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5319, tgid 5318 (syz.0.0), ts 76238054677, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1d8/0x230 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x21ce/0x22b0 mm/page_alloc.c:3688 __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:752 [inline] iomap_write_begin+0x4a3/0x18f0 fs/iomap/buffered-io.c:795 iomap_write_iter fs/iomap/buffered-io.c:952 [inline] iomap_file_buffered_write+0x3fe/0xd20 fs/iomap/buffered-io.c:1033 xfs_file_buffered_write+0x201/0x890 fs/xfs/xfs_file.c:910 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x548/0xa90 fs/read_write.c:684 ksys_write+0x145/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 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: 5319 Comm: syz.0.0 Not tainted 6.15.0-rc5-syzkaller-00038-g707df3375124 #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+0x15e/0x1a0 mm/page_alloc.c:505 free_tail_page_prepare+0x2c3/0x4f0 mm/page_alloc.c:-1 free_pages_prepare mm/page_alloc.c:1238 [inline] __free_frozen_pages+0x799/0xcd0 mm/page_alloc.c:2725 __folio_put+0x21b/0x2c0 mm/swap.c:112 delete_from_page_cache_batch+0x84c/0x9b0 mm/filemap.c:339 truncate_inode_pages_range+0x28a/0xda0 mm/truncate.c:376 xfs_fs_evict_inode+0x67/0x90 fs/xfs/xfs_super.c:778 evict+0x501/0x9c0 fs/inode.c:810 dispose_list fs/inode.c:852 [inline] evict_inodes+0x636/0x6c0 fs/inode.c:906 generic_shutdown_super+0x9a/0x2c0 fs/super.c:627 kill_block_super+0x44/0x90 fs/super.c:1710 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2220 deactivate_locked_super+0xb9/0x130 fs/super.c:473 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1435 task_work_run+0x1d1/0x260 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x8d6/0x2550 kernel/exit.c:953 do_group_exit+0x21c/0x2d0 kernel/exit.c:1102 get_signal+0x125e/0x1310 kernel/signal.c:3034 arch_do_signal_or_restart+0x95/0x780 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x8b/0x120 kernel/entry/common.c:218 do_syscall_64+0x103/0x210 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9e5c18e969 Code: Unable to access opcode bytes at 0x7f9e5c18e93f. RSP: 002b:00007f9e5cff60e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007f9e5c3b5fa8 RCX: 00007f9e5c18e969 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f9e5c3b5fac RBP: 00007f9e5c3b5fa0 R08: 7fffffffffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9e5c3b5fac R13: 0000000000000000 R14: 00007ffe47da1520 R15: 00007ffe47da1608 BUG: Bad page state in process syz.0.0 pfn:53e00 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x53e00 head: order:0 mapcount:0 entire_mapcount:1 nr_pages_mapped:0 pincount:0 flags: 0x4fff0800000004d(locked|referenced|uptodate|head|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff0800000004d dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 head: 04fff0800000004d dead000000000100 dead000000000122 0000000000000000 head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 head: 04fff00000000000 0000000000000000 00000000ffffffff 0000000000000000 head: ffffffffffffffff 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 9, migratetype Movable, gfp_mask 0x153c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_MOVABLE|__GFP_WRITE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5319, tgid 5318 (syz.0.0), ts 76238054677, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1d8/0x230 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x21ce/0x22b0 mm/page_alloc.c:3688 __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:752 [inline] iomap_write_begin+0x4a3/0x18f0 fs/iomap/buffered-io.c:795 iomap_write_iter fs/iomap/buffered-io.c:952 [inline] iomap_file_buffered_write+0x3fe/0xd20 fs/iomap/buffered-io.c:1033 xfs_file_buffered_write+0x201/0x890 fs/xfs/xfs_file.c:910 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x548/0xa90 fs/read_write.c:684 ksys_write+0x145/0x250 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 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: 5319 Comm: syz.0.0 Tainted: G B 6.15.0-rc5-syzkaller-00038-g707df3375124 #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x15e/0x1a0 mm/page_alloc.c:505 free_page_is_bad mm/page_alloc.c:948 [inline] free_pages_prepare mm/page_alloc.c:1254 [inline] __free_frozen_pages+0xc80/0xcd0 mm/page_alloc.c:2725 __folio_put+0x21b/0x2c0 mm/swap.c:112 delete_from_page_cache_batch+0x84c/0x9b0 mm/filemap.c:339 truncate_inode_pages_range+0x28a/0xda0 mm/truncate.c:376 xfs_fs_evict_inode+0x67/0x90 fs/xfs/xfs_super.c:778 evict+0x501/0x9c0 fs/inode.c:810 dispose_list fs/inode.c:852 [inline] evict_inodes+0x636/0x6c0 fs/inode.c:906 generic_shutdown_super+0x9a/0x2c0 fs/super.c:627 kill_block_super+0x44/0x90 fs/super.c:1710 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2220 deactivate_locked_super+0xb9/0x130 fs/super.c:473 cleanup_mnt+0x425/0x4c0 fs/namespace.c:1435 task_work_run+0x1d1/0x260 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x8d6/0x2550 kernel/exit.c:953 do_group_exit+0x21c/0x2d0 kernel/exit.c:1102 get_signal+0x125e/0x1310 kernel/signal.c:3034 arch_do_signal_or_restart+0x95/0x780 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x8b/0x120 kernel/entry/common.c:218 do_syscall_64+0x103/0x210 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9e5c18e969 Code: Unable to access opcode bytes at 0x7f9e5c18e93f. RSP: 002b:00007f9e5cff60e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007f9e5c3b5fa8 RCX: 00007f9e5c18e969 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f9e5c3b5fac RBP: 00007f9e5c3b5fa0 R08: 7fffffffffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9e5c3b5fac R13: 0000000000000000 R14: 00007ffe47da1520 R15: 00007ffe47da1608 XFS (loop0): Unmounting Filesystem bfdc47fc-10d8-4eed-a562-11a831b3f791