[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/14] adjust range when changing memory pageabilityg
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 06/14] adjust range when changing memory pageabilityg |
Date: |
Fri, 29 Dec 2023 15:06:32 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Luca Dariz, le jeu. 28 déc. 2023 20:42:53 +0100, a ecrit:
> * vm/vm_map.c: if the start address is not in the map, try to find the
> nearest entry instead of failing.
>
> This caused the initial vm_wire_all(host, task VM_WIRE_ALL) in glibc
> startup to fail with KERN_NO_SPACE.
> ---
> vm/vm_map.c | 21 ++++++++++++++++-----
> 1 file changed, 16 insertions(+), 5 deletions(-)
>
> diff --git a/vm/vm_map.c b/vm/vm_map.c
> index 26e18676..4a5861e3 100644
> --- a/vm/vm_map.c
> +++ b/vm/vm_map.c
> @@ -1774,13 +1774,24 @@ kern_return_t vm_map_pageable(
>
> if (!vm_map_lookup_entry(map, start, &start_entry)) {
> /*
> - * Start address is not in map; this is fatal.
> + * Start address is not in map; try to find the nearest
> entry
It is wrong to drop the error like this. The caller did ask for these
addresses. If they are wrong, the caller should be told so, and not
papered over. Possibly it's vm_map_pageable_all or such that actually
needs to be fixed.
Samuel
- [PATCH 08/14] add thread creation helper to tests, (continued)
- [PATCH 08/14] add thread creation helper to tests, Luca Dariz, 2023/12/28
- [PATCH 03/14] add mach_host tests, Luca Dariz, 2023/12/28
- [PATCH 13/14] add basic thread tests, Luca Dariz, 2023/12/28
- [PATCH 01/14] USER32: change default to disabled and make it a general option, Luca Dariz, 2023/12/28
- [PATCH 06/14] adjust range when changing memory pageability, Luca Dariz, 2023/12/28
- Re: [PATCH 06/14] adjust range when changing memory pageabilityg,
Samuel Thibault <=
- [PATCH 04/14] add gsync tests, Luca Dariz, 2023/12/28
- [PATCH 07/14] add basic vm tests, Luca Dariz, 2023/12/28
- [PATCH 09/14] add syscall tests, Luca Dariz, 2023/12/28
- [PATCH 10/14] expose MACH_MSG_USER_ALIGNMENT for manually-built messages, Luca Dariz, 2023/12/28