Oops: general protection fault, probably for non-canonical address 0xdffffc0000000489: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: probably user-memory-access in range [0x0000000000002448-0x000000000000244f] CPU: 0 PID: 15216 Comm: syz-executor.2 Not tainted 6.10.0-rc3-next-20240611-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:zonelist_zone_idx include/linux/mmzone.h:1613 [inline] RIP: 0010:next_zones_zonelist include/linux/mmzone.h:1644 [inline] RIP: 0010:first_zones_zonelist include/linux/mmzone.h:1670 [inline] RIP: 0010:dequeue_hugetlb_folio_nodemask+0x193/0xe40 mm/hugetlb.c:1362 Code: d3 7a a0 ff c7 44 24 14 00 00 00 00 83 7c 24 40 00 0f 85 97 0c 00 00 48 83 7c 24 20 00 0f 85 45 09 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 58 09 00 00 44 8b 33 44 89 f7 8b 5c 24 RSP: 0018:ffffc9000c32f720 EFLAGS: 00010002 RAX: 0000000000000489 RBX: 0000000000002448 RCX: 0000000000040000 RDX: ffffc9000ea29000 RSI: 00000000000017c0 RDI: 00000000000017c1 RBP: ffffc9000c32f858 R08: ffffffff81f2d891 R09: 1ffffffff1f5c095 R10: dffffc0000000000 R11: fffffbfff1f5c096 R12: 00000000ffffffff R13: dffffc0000000000 R14: ffff888068f01308 R15: 0000000000000000 FS: 00007f7ad22226c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33521000 CR3: 000000007a6ba000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: alloc_hugetlb_folio_nodemask+0xae/0x3f0 mm/hugetlb.c:2603 memfd_alloc_folio+0x15e/0x390 mm/memfd.c:75 memfd_pin_folios+0x1066/0x1720 mm/gup.c:3864 udmabuf_create+0x658/0x11c0 drivers/dma-buf/udmabuf.c:353 udmabuf_ioctl_create drivers/dma-buf/udmabuf.c:420 [inline] udmabuf_ioctl+0x304/0x4f0 drivers/dma-buf/udmabuf.c:451 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 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:0x7f7ad147cea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7ad22220c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f7ad15b3f80 RCX: 00007f7ad147cea9 RDX: 0000000020000100 RSI: 0000000040187542 RDI: 0000000000000003 RBP: 00007f7ad14ebff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7ad15b3f80 R15: 00007fff1cad7d28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:zonelist_zone_idx include/linux/mmzone.h:1613 [inline] RIP: 0010:next_zones_zonelist include/linux/mmzone.h:1644 [inline] RIP: 0010:first_zones_zonelist include/linux/mmzone.h:1670 [inline] RIP: 0010:dequeue_hugetlb_folio_nodemask+0x193/0xe40 mm/hugetlb.c:1362 Code: d3 7a a0 ff c7 44 24 14 00 00 00 00 83 7c 24 40 00 0f 85 97 0c 00 00 48 83 7c 24 20 00 0f 85 45 09 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 58 09 00 00 44 8b 33 44 89 f7 8b 5c 24 RSP: 0018:ffffc9000c32f720 EFLAGS: 00010002 RAX: 0000000000000489 RBX: 0000000000002448 RCX: 0000000000040000 RDX: ffffc9000ea29000 RSI: 00000000000017c0 RDI: 00000000000017c1 RBP: ffffc9000c32f858 R08: ffffffff81f2d891 R09: 1ffffffff1f5c095 R10: dffffc0000000000 R11: fffffbfff1f5c096 R12: 00000000ffffffff R13: dffffc0000000000 R14: ffff888068f01308 R15: 0000000000000000 FS: 00007f7ad22226c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33521000 CR3: 000000007a6ba000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: d3 7a a0 sarl %cl,-0x60(%rdx) 3: ff c7 inc %edi 5: 44 24 14 rex.R and $0x14,%al 8: 00 00 add %al,(%rax) a: 00 00 add %al,(%rax) c: 83 7c 24 40 00 cmpl $0x0,0x40(%rsp) 11: 0f 85 97 0c 00 00 jne 0xcae 17: 48 83 7c 24 20 00 cmpq $0x0,0x20(%rsp) 1d: 0f 85 45 09 00 00 jne 0x968 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 58 09 00 00 jne 0x98f 37: 44 8b 33 mov (%rbx),%r14d 3a: 44 89 f7 mov %r14d,%edi 3d: 8b .byte 0x8b 3e: 5c pop %rsp 3f: 24 .byte 0x24