commit 44a66bd9b8df54c24466f4e2eb22ca51d891a4f1
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Jun 29 01:11:45 2026 +0200

    vm_allocate_contiguous: Do not check for highmem limit
    
    When running on 32b without PAE, it is a bit less than 4G, and userland
    would ask for 4G, so we would fail this and actually fallback to the DMA
    segment!

diff --git a/vm/vm_user.c b/vm/vm_user.c
index ef2c39d7..94cfb891 100644
--- a/vm/vm_user.c
+++ b/vm/vm_user.c
@@ -628,7 +628,8 @@ kern_return_t vm_allocate_contiguous(
 	if (pmax > VM_PAGE_DMA32_LIMIT)
 #endif
 #endif
-		if (pmax <= VM_PAGE_HIGHMEM_LIMIT)
+		/* Do not even try to check for largest limit, we will truncate anyway */
+		/* if (pmax <= VM_PAGE_HIGHMEM_LIMIT) */
 			selector = VM_PAGE_SEL_HIGHMEM;
 
 	size = vm_page_round(size);
