BUG: Bad page state in process syz-executor pfn:39a01 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x39a01 head: order:0 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:-1 flags: 0xfff0000000004d(locked|referenced|uptodate|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0000e68001 ffffffffffffffff ffffffff00000000 raw: 0000000000000200 0000000000000000 00000000ffffffff 0000000000000000 head: 00fff0000000004d dead000000000100 dead000000000122 0000000000000000 head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 head: 00fff00000000000 ffffea0000e68001 ffffffffffffffff ffffffff00000000 head: 0000000000000200 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: nonzero pincount Modules linked in: CPU: 0 UID: 0 PID: 19573 Comm: syz-executor Tainted: G W 6.12.0-syzkaller-05480-gfcc79e1714e8 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xab/0xe0 lib/dump_stack.c:120 bad_page+0x6e/0x110 mm/page_alloc.c:501 free_tail_page_prepare+0xcb/0x1b0 mm/page_alloc.c:963 free_pages_prepare mm/page_alloc.c:1103 [inline] free_unref_page+0x487/0x550 mm/page_alloc.c:2657 __folio_put+0x15f/0x1e0 mm/swap.c:112 folio_put_refs include/linux/mm.h:1510 [inline] filemap_free_folio+0xa8/0xc0 mm/filemap.c:247 delete_from_page_cache_batch+0x44a/0x610 mm/filemap.c:351 truncate_inode_pages_range+0x1df/0x750 mm/truncate.c:342 evict+0x37a/0x3b0 fs/inode.c:798 dispose_list+0x66/0x80 fs/inode.c:845 evict_inodes+0x24b/0x260 fs/inode.c:893 generic_shutdown_super+0x4c/0x170 fs/super.c:627 kill_block_super+0x1d/0x50 fs/super.c:1710 xfs_kill_sb+0x15/0x30 fs/xfs/xfs_super.c:2056 deactivate_locked_super+0x4e/0x180 fs/super.c:473 deactivate_super fs/super.c:506 [inline] deactivate_super+0x9c/0xb0 fs/super.c:502 cleanup_mnt+0x121/0x210 fs/namespace.c:1373 task_work_run+0x8e/0xe0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x170/0x180 kernel/entry/common.c:218 do_syscall_64+0xab/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa746f7fb47 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdcea65168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fa746f7fb47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdcea65220 RBP: 00007ffdcea65220 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdcea662a0 R13: 00007fa746ff15fc R14: 000000000007c82e R15: 00007ffdcea662e0 BUG: Bad page state in process syz-executor pfn:39a00 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x39a00 head: order:0 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff0000000004d(locked|referenced|uptodate|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000004d dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 head: 00fff0000000004d dead000000000100 dead000000000122 0000000000000000 head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 head: 00fff00000000000 0000000000000000 ffffffffffffffff 0000000000000000 head: 0000000000000200 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 0 UID: 0 PID: 19573 Comm: syz-executor Tainted: G B W 6.12.0-syzkaller-05480-gfcc79e1714e8 #0 Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xab/0xe0 lib/dump_stack.c:120 bad_page+0x6e/0x110 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+0x32a/0x550 mm/page_alloc.c:2657 __folio_put+0x15f/0x1e0 mm/swap.c:112 folio_put_refs include/linux/mm.h:1510 [inline] filemap_free_folio+0xa8/0xc0 mm/filemap.c:247 delete_from_page_cache_batch+0x44a/0x610 mm/filemap.c:351 truncate_inode_pages_range+0x1df/0x750 mm/truncate.c:342 evict+0x37a/0x3b0 fs/inode.c:798 dispose_list+0x66/0x80 fs/inode.c:845 evict_inodes+0x24b/0x260 fs/inode.c:893 generic_shutdown_super+0x4c/0x170 fs/super.c:627 kill_block_super+0x1d/0x50 fs/super.c:1710 xfs_kill_sb+0x15/0x30 fs/xfs/xfs_super.c:2056 deactivate_locked_super+0x4e/0x180 fs/super.c:473 deactivate_super fs/super.c:506 [inline] deactivate_super+0x9c/0xb0 fs/super.c:502 cleanup_mnt+0x121/0x210 fs/namespace.c:1373 task_work_run+0x8e/0xe0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x170/0x180 kernel/entry/common.c:218 do_syscall_64+0xab/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa746f7fb47 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdcea65168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fa746f7fb47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdcea65220 RBP: 00007ffdcea65220 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdcea662a0 R13: 00007fa746ff15fc R14: 000000000007c82e R15: 00007ffdcea662e0 XFS (loop8): Unmounting Filesystem bfdc47fc-10d8-4eed-a562-11a831b3f791