From 8852aa3195cebbbcde50743ce4d8e8c85f32262c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 28 Aug 2023 21:50:23 +0200 Subject: vm_allocate_contiguous: Accept returning end of allowed memory *result_paddr + size is exactly pass the allocated memory, so it can be equal to the requested bound. --- vm/vm_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/vm_user.c b/vm/vm_user.c index f42c84bf..08cc17a4 100644 --- a/vm/vm_user.c +++ b/vm/vm_user.c @@ -696,7 +696,7 @@ kern_return_t vm_allocate_contiguous( *result_paddr = pages->phys_addr; assert(*result_paddr >= pmin); - assert(*result_paddr + size < pmax); + assert(*result_paddr + size <= pmax); return KERN_SUCCESS; } -- cgit v1.2.3