Oops: general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f] CPU: 1 UID: 0 PID: 6141 Comm: syz.0.236 Not tainted 6.12.0-rc1-next-20241001-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:pfnmap_lockdep_assert mm/memory.c:6398 [inline] RIP: 0010:follow_pfnmap_start+0x1a7/0xfd0 mm/memory.c:6451 Code: 8d 9f 80 00 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 d7 25 1a 00 48 8b 1b 48 83 c3 58 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 ba 25 1a 00 4c 8b 23 48 c7 c0 bc RSP: 0018:ffffc90003387100 EFLAGS: 00010202 RAX: 000000000000000b RBX: 0000000000000058 RCX: 0000000000040000 RDX: ffffc90009d32000 RSI: 00000000000018ae RDI: ffffc900033871e0 RBP: ffffc90003387290 R08: ffffc90003387311 R09: 0000000000000000 R10: ffffc900033872f0 R11: fffff52000670e63 R12: dffffc0000000000 R13: 1ffff1100bd8bdb4 R14: ffffc900033872e0 R15: ffff88805ec5ed90 FS: 00007fd0abd796c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd0abd78f98 CR3: 000000005d39c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: follow_phys arch/x86/mm/pat/memtype.c:940 [inline] get_pat_info+0x182/0x3f0 arch/x86/mm/pat/memtype.c:972 untrack_pfn+0x327/0x640 arch/x86/mm/pat/memtype.c:1085 unmap_single_vma+0x1f6/0x2b0 mm/memory.c:1843 unmap_vmas+0x3cc/0x5f0 mm/memory.c:1909 unmap_region+0x214/0x380 mm/vma.c:354 mmap_region+0x22f9/0x2990 mm/mmap.c:1573 do_mmap+0x8f0/0x1000 mm/mmap.c:496 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:588 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:542 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd0aaf7dff9 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:00007fd0abd79038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fd0ab136058 RCX: 00007fd0aaf7dff9 RDX: 000000000200000f RSI: 0000000000004000 RDI: 0000000020ff9000 RBP: 00007fd0aaff0296 R08: 0000000000000008 R09: 0000000000000000 R10: 0000000000000012 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fd0ab136058 R15: 00007ffff5478bf8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pfnmap_lockdep_assert mm/memory.c:6398 [inline] RIP: 0010:follow_pfnmap_start+0x1a7/0xfd0 mm/memory.c:6451 Code: 8d 9f 80 00 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 d7 25 1a 00 48 8b 1b 48 83 c3 58 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 ba 25 1a 00 4c 8b 23 48 c7 c0 bc RSP: 0018:ffffc90003387100 EFLAGS: 00010202 RAX: 000000000000000b RBX: 0000000000000058 RCX: 0000000000040000 RDX: ffffc90009d32000 RSI: 00000000000018ae RDI: ffffc900033871e0 RBP: ffffc90003387290 R08: ffffc90003387311 R09: 0000000000000000 R10: ffffc900033872f0 R11: fffff52000670e63 R12: dffffc0000000000 R13: 1ffff1100bd8bdb4 R14: ffffc900033872e0 R15: ffff88805ec5ed90 FS: 00007fd0abd796c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa8c3545d58 CR3: 000000005d39c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8d 9f 80 00 00 00 lea 0x80(%rdi),%ebx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 d7 25 1a 00 call 0x1a25f3 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 83 c3 58 add $0x58,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 ba 25 1a 00 call 0x1a25f3 39: 4c 8b 23 mov (%rbx),%r12 3c: 48 rex.W 3d: c7 .byte 0xc7 3e: c0 .byte 0xc0 3f: bc .byte 0xbc