RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: Bad page map in process syz.1.512 pte:fffff012ff330 pmd:62f30067 addr:0000000020731000 vm_flags:000000fe anon_vma:0000000000000000 mapping:0000000000000000 index:731 file:(null) fault:shmem_fault mmap:0x0 read_folio:0x0 CPU: 1 UID: 0 PID: 7335 Comm: syz.1.512 Not tainted 6.12.0-rc3-syzkaller-00087-gc964ced77262 #0 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 lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 print_bad_pte+0x49c/0x710 mm/memory.c:544 vm_normal_page+0x269/0x2b0 mm/memory.c:618 zap_present_ptes mm/memory.c:1549 [inline] zap_pte_range mm/memory.c:1621 [inline] zap_pmd_range mm/memory.c:1739 [inline] zap_pud_range mm/memory.c:1768 [inline] zap_p4d_range mm/memory.c:1789 [inline] unmap_page_range+0x109e/0x3ce0 mm/memory.c:1810 unmap_single_vma+0x194/0x2b0 mm/memory.c:1856 unmap_vmas+0x22f/0x490 mm/memory.c:1900 unmap_region+0x201/0x480 mm/vma.c:354 mmap_region+0x1c00/0x2a50 mm/mmap.c:1573 do_mmap+0xc00/0xfc0 mm/mmap.c:496 vm_mmap_pgoff+0x1ba/0x360 mm/util.c:588 ksys_mmap_pgoff+0x7d/0x5c0 mm/mmap.c:542 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7fe2579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f576656c EFLAGS: 00000296 ORIG_RAX: 00000000000000c0 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000b36000 RDX: 0000000006ebbeee RSI: 0000000000008031 RDI: 00000000ffffffff RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7335 at arch/x86/mm/pat/memtype.c:983 get_pat_info+0x2c1/0x320 arch/x86/mm/pat/memtype.c:983 Modules linked in: CPU: 1 UID: 0 PID: 7335 Comm: syz.1.512 Tainted: G B 6.12.0-rc3-syzkaller-00087-gc964ced77262 #0 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 RIP: 0010:get_pat_info+0x2c1/0x320 arch/x86/mm/pat/memtype.c:983 Code: 49 89 1c 24 e9 0f ff ff ff e8 ab 4f 4d 00 90 0f 0b 90 e9 ff fd ff ff 4c 89 ef e8 ca 98 ae 00 e9 f0 fe ff ff e8 90 4f 4d 00 90 <0f> 0b 90 bb ea ff ff ff e9 e3 fe ff ff 4c 89 ff e8 ba 97 ae 00 e9 RSP: 0018:ffffc90002d97680 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880298819b0 RCX: ffffffff813f6904 RDX: ffff888024efa440 RSI: ffffffff813f6980 RDI: 0000000000000007 RBP: 1ffff920005b2ed1 R08: 0000000000000007 R09: 0000000000000020 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90002d97788 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880298819d0 FS: 0000000000000000(0000) GS:ffff88802b500000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000056c5d414 CR3: 0000000060a2c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: untrack_pfn+0xf7/0x4d0 arch/x86/mm/pat/memtype.c:1085 unmap_single_vma+0x1bd/0x2b0 mm/memory.c:1834 unmap_vmas+0x22f/0x490 mm/memory.c:1900 exit_mmap+0x1c6/0xb30 mm/mmap.c:1864 __mmput+0x12a/0x480 kernel/fork.c:1347 mmput+0x62/0x70 kernel/fork.c:1369 exit_mm kernel/exit.c:571 [inline] do_exit+0x9bf/0x2d70 kernel/exit.c:926 do_group_exit+0xd3/0x2a0 kernel/exit.c:1088 get_signal+0x2658/0x26d0 kernel/signal.c:2917 arch_do_signal_or_restart+0x90/0x7e0 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:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 __do_fast_syscall_32+0x80/0x120 arch/x86/entry/common.c:389 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7fe2579 Code: Unable to access opcode bytes at 0xf7fe254f. RSP: 002b:00000000f576660c EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 RAX: fffffffffffffe00 RBX: 00000000f74a4f88 RCX: 0000000000000080 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000f74a4f8c RBP: 0000000000000081 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi