BUG: Bad page map in process syz-executor.0 pte:fffffce838120 pmd:22758067 page:ffffea0000c5f1c0 refcount:9 mapcount:-1 mapping:ffff88802b7dcbd0 index:0x3 pfn:0x317c7 head:ffffea0000c5f100 order:2 entire_mapcount:0 nr_pages_mapped:8388607 pincount:0 memcg:ffff88805fc0e000 aops:xfs_address_space_operations ino:244a dentry name:"bus" flags: 0xfff9800000826c(referenced|uptodate|lru|workingset|private|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0000c5f101 dead000000000122 dead000000000400 raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000 head: 00fff9800000826c ffffea0001510ec8 ffffea0000c5f208 ffff88802b7dcbd0 head: 0000000000000000 ffff888020a49e80 00000009ffffffff ffff88805fc0e000 page dumped because: bad pte page_owner tracks the page as allocated page last allocated via order 2, migratetype Movable, gfp_mask 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 14741, tgid 14740 (syz-executor.0), ts 294368092417, free_ts 294063975159 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3183 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4439 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2298 folio_alloc+0x1e/0x60 mm/mempolicy.c:2308 filemap_alloc_folio+0x3bb/0x490 mm/filemap.c:979 ra_alloc_folio mm/readahead.c:468 [inline] page_cache_ra_order+0x469/0xa80 mm/readahead.c:524 do_sync_mmap_readahead mm/filemap.c:3202 [inline] filemap_fault+0x1820/0x3580 mm/filemap.c:3294 __xfs_filemap_fault+0x1b4/0xa10 fs/xfs/xfs_file.c:1354 __do_fault+0x107/0x600 mm/memory.c:4204 do_read_fault mm/memory.c:4568 [inline] do_fault mm/memory.c:4705 [inline] do_pte_missing mm/memory.c:3669 [inline] handle_pte_fault mm/memory.c:4978 [inline] __handle_mm_fault+0x29aa/0x3e20 mm/memory.c:5119 handle_mm_fault+0x47a/0xa00 mm/memory.c:5284 faultin_page mm/gup.c:956 [inline] __get_user_pages+0x4b3/0x1410 mm/gup.c:1239 __get_user_pages_locked mm/gup.c:1504 [inline] get_dump_page+0x100/0x210 mm/gup.c:2018 dump_user_range+0x45b/0x790 fs/coredump.c:913 elf_core_dump+0x2721/0x38e0 fs/binfmt_elf.c:2142 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page_list+0xe6/0xb30 mm/page_alloc.c:2451 release_pages+0x32a/0x14e0 mm/swap.c:1042 __folio_batch_release+0x77/0xe0 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] shmem_undo_range+0x582/0x1040 mm/shmem.c:1022 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1775 [inline] iput.part.0+0x55e/0x7a0 fs/inode.c:1801 iput+0x5c/0x80 fs/inode.c:1791 dentry_unlink_inode+0x292/0x430 fs/dcache.c:401 __dentry_kill+0x3b8/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:733 [inline] dput+0x8dd/0xfd0 fs/dcache.c:913 __fput+0x536/0xa70 fs/file_table.c:392 task_work_run+0x14d/0x240 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 addr:0000000020006000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff88802b7dcbd0 index:5 file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio CPU: 3 PID: 14741 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-11704-g3f86ed6ec0b3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 print_bad_pte+0x501/0x7a0 mm/memory.c:535 zap_pte_range mm/memory.c:1458 [inline] zap_pmd_range mm/memory.c:1573 [inline] zap_pud_range mm/memory.c:1602 [inline] zap_p4d_range mm/memory.c:1623 [inline] unmap_page_range+0x216a/0x2c10 mm/memory.c:1644 unmap_single_vma+0x194/0x2b0 mm/memory.c:1690 unmap_vmas+0x1e8/0x330 mm/memory.c:1731 exit_mmap+0x1ad/0xa60 mm/mmap.c:3210 __mmput+0x12a/0x4d0 kernel/fork.c:1349 mmput+0x62/0x70 kernel/fork.c:1371 exit_mm kernel/exit.c:567 [inline] do_exit+0x9b4/0x2a20 kernel/exit.c:861 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024 get_signal+0x23d1/0x27b0 kernel/signal.c:2892 arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa74247cae9 Code: Unable to access opcode bytes at 0x7fa74247cabf. RSP: 002b:00007fa7431e30c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffe5 RBX: 00007fa74259bf80 RCX: 00007fa74247cae9 RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007 RBP: 00007fa7424c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa74259bf80 R15: 00007ffdd075ab38 BUG: Bad page map in process syz-executor.0 pte:fffffce839120 pmd:22758067 page:ffffea0000c5f180 refcount:9 mapcount:-1 mapping:ffff88802b7dcbd0 index:0x2 pfn:0x317c6 head:ffffea0000c5f100 order:2 entire_mapcount:0 nr_pages_mapped:8388606 pincount:0 memcg:ffff88805fc0e000 aops:xfs_address_space_operations ino:244a dentry name:"bus" flags: 0xfff9800000826c(referenced|uptodate|lru|workingset|private|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0000c5f101 ffffea0000c5f190 ffffea0000c5f190 raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000 head: 00fff9800000826c ffffea0001510ec8 ffffea0000c5f208 ffff88802b7dcbd0 head: 0000000000000000 ffff888020a49e80 00000009ffffffff ffff88805fc0e000 page dumped because: bad pte page_owner tracks the page as allocated page last allocated via order 2, migratetype Movable, gfp_mask 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 14741, tgid 14740 (syz-executor.0), ts 294368092417, free_ts 294063540128 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3183 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4439 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2298 folio_alloc+0x1e/0x60 mm/mempolicy.c:2308 filemap_alloc_folio+0x3bb/0x490 mm/filemap.c:979 ra_alloc_folio mm/readahead.c:468 [inline] page_cache_ra_order+0x469/0xa80 mm/readahead.c:524 do_sync_mmap_readahead mm/filemap.c:3202 [inline] filemap_fault+0x1820/0x3580 mm/filemap.c:3294 __xfs_filemap_fault+0x1b4/0xa10 fs/xfs/xfs_file.c:1354 __do_fault+0x107/0x600 mm/memory.c:4204 do_read_fault mm/memory.c:4568 [inline] do_fault mm/memory.c:4705 [inline] do_pte_missing mm/memory.c:3669 [inline] handle_pte_fault mm/memory.c:4978 [inline] __handle_mm_fault+0x29aa/0x3e20 mm/memory.c:5119 handle_mm_fault+0x47a/0xa00 mm/memory.c:5284 faultin_page mm/gup.c:956 [inline] __get_user_pages+0x4b3/0x1410 mm/gup.c:1239 __get_user_pages_locked mm/gup.c:1504 [inline] get_dump_page+0x100/0x210 mm/gup.c:2018 dump_user_range+0x45b/0x790 fs/coredump.c:913 elf_core_dump+0x2721/0x38e0 fs/binfmt_elf.c:2142 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page_list+0xe6/0xb30 mm/page_alloc.c:2451 release_pages+0x32a/0x14e0 mm/swap.c:1042 __folio_batch_release+0x77/0xe0 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] shmem_undo_range+0x582/0x1040 mm/shmem.c:1022 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1775 [inline] iput.part.0+0x55e/0x7a0 fs/inode.c:1801 iput+0x5c/0x80 fs/inode.c:1791 dentry_unlink_inode+0x292/0x430 fs/dcache.c:401 __dentry_kill+0x3b8/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:733 [inline] dput+0x8dd/0xfd0 fs/dcache.c:913 __fput+0x536/0xa70 fs/file_table.c:392 task_work_run+0x14d/0x240 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 addr:0000000020007000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff88802b7dcbd0 index:6 file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio CPU: 3 PID: 14741 Comm: syz-executor.0 Tainted: G B 6.5.0-syzkaller-11704-g3f86ed6ec0b3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 print_bad_pte+0x501/0x7a0 mm/memory.c:535 zap_pte_range mm/memory.c:1458 [inline] zap_pmd_range mm/memory.c:1573 [inline] zap_pud_range mm/memory.c:1602 [inline] zap_p4d_range mm/memory.c:1623 [inline] unmap_page_range+0x216a/0x2c10 mm/memory.c:1644 unmap_single_vma+0x194/0x2b0 mm/memory.c:1690 unmap_vmas+0x1e8/0x330 mm/memory.c:1731 exit_mmap+0x1ad/0xa60 mm/mmap.c:3210 __mmput+0x12a/0x4d0 kernel/fork.c:1349 mmput+0x62/0x70 kernel/fork.c:1371 exit_mm kernel/exit.c:567 [inline] do_exit+0x9b4/0x2a20 kernel/exit.c:861 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024 get_signal+0x23d1/0x27b0 kernel/signal.c:2892 arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa74247cae9 Code: Unable to access opcode bytes at 0x7fa74247cabf. RSP: 002b:00007fa7431e30c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffe5 RBX: 00007fa74259bf80 RCX: 00007fa74247cae9 RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007 RBP: 00007fa7424c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa74259bf80 R15: 00007ffdd075ab38 BUG: Bad page map in process syz-executor.0 pte:fffffce83a120 pmd:22758067 page:ffffea0000c5f140 refcount:9 mapcount:-1 mapping:ffff88802b7dcbd0 index:0x1 pfn:0x317c5 head:ffffea0000c5f100 order:2 entire_mapcount:0 nr_pages_mapped:8388605 pincount:0 memcg:ffff88805fc0e000 aops:xfs_address_space_operations ino:244a dentry name:"bus" flags: 0xfff9800000826c(referenced|uptodate|lru|workingset|private|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000202 ffffea0000c5f101 dead000000000122 fffffffdffffffff raw: 0000000400000000 0000000000000000 00000000fffffffe 0000000000000000 head: 00fff9800000826c ffffea0001510ec8 ffffea0000c5f208 ffff88802b7dcbd0 head: 0000000000000000 ffff888020a49e80 00000009ffffffff ffff88805fc0e000 page dumped because: bad pte page_owner tracks the page as allocated page last allocated via order 2, migratetype Movable, gfp_mask 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 14741, tgid 14740 (syz-executor.0), ts 294368092417, free_ts 294064093633 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3183 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4439 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2298 folio_alloc+0x1e/0x60 mm/mempolicy.c:2308 filemap_alloc_folio+0x3bb/0x490 mm/filemap.c:979 ra_alloc_folio mm/readahead.c:468 [inline] page_cache_ra_order+0x469/0xa80 mm/readahead.c:524 do_sync_mmap_readahead mm/filemap.c:3202 [inline] filemap_fault+0x1820/0x3580 mm/filemap.c:3294 __xfs_filemap_fault+0x1b4/0xa10 fs/xfs/xfs_file.c:1354 __do_fault+0x107/0x600 mm/memory.c:4204 do_read_fault mm/memory.c:4568 [inline] do_fault mm/memory.c:4705 [inline] do_pte_missing mm/memory.c:3669 [inline] handle_pte_fault mm/memory.c:4978 [inline] __handle_mm_fault+0x29aa/0x3e20 mm/memory.c:5119 handle_mm_fault+0x47a/0xa00 mm/memory.c:5284 faultin_page mm/gup.c:956 [inline] __get_user_pages+0x4b3/0x1410 mm/gup.c:1239 __get_user_pages_locked mm/gup.c:1504 [inline] get_dump_page+0x100/0x210 mm/gup.c:2018 dump_user_range+0x45b/0x790 fs/coredump.c:913 elf_core_dump+0x2721/0x38e0 fs/binfmt_elf.c:2142 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page_list+0xe6/0xb30 mm/page_alloc.c:2451 release_pages+0x32a/0x14e0 mm/swap.c:1042 __folio_batch_release+0x77/0xe0 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] shmem_undo_range+0x582/0x1040 mm/shmem.c:1022 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1775 [inline] iput.part.0+0x55e/0x7a0 fs/inode.c:1801 iput+0x5c/0x80 fs/inode.c:1791 dentry_unlink_inode+0x292/0x430 fs/dcache.c:401 __dentry_kill+0x3b8/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:733 [inline] dput+0x8dd/0xfd0 fs/dcache.c:913 __fput+0x536/0xa70 fs/file_table.c:392 task_work_run+0x14d/0x240 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 addr:0000000020008000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff88802b7dcbd0 index:7 file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio CPU: 3 PID: 14741 Comm: syz-executor.0 Tainted: G B 6.5.0-syzkaller-11704-g3f86ed6ec0b3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 print_bad_pte+0x501/0x7a0 mm/memory.c:535 zap_pte_range mm/memory.c:1458 [inline] zap_pmd_range mm/memory.c:1573 [inline] zap_pud_range mm/memory.c:1602 [inline] zap_p4d_range mm/memory.c:1623 [inline] unmap_page_range+0x216a/0x2c10 mm/memory.c:1644 unmap_single_vma+0x194/0x2b0 mm/memory.c:1690 unmap_vmas+0x1e8/0x330 mm/memory.c:1731 exit_mmap+0x1ad/0xa60 mm/mmap.c:3210 __mmput+0x12a/0x4d0 kernel/fork.c:1349 mmput+0x62/0x70 kernel/fork.c:1371 exit_mm kernel/exit.c:567 [inline] do_exit+0x9b4/0x2a20 kernel/exit.c:861 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024 get_signal+0x23d1/0x27b0 kernel/signal.c:2892 arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa74247cae9 Code: Unable to access opcode bytes at 0x7fa74247cabf. RSP: 002b:00007fa7431e30c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffe5 RBX: 00007fa74259bf80 RCX: 00007fa74247cae9 RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007 RBP: 00007fa7424c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa74259bf80 R15: 00007ffdd075ab38