Luca Dariz, le mar. 28 juin 2022 12:10:44 +0200, a ecrit:
> * vm/vm_user.c: sign-extend mask with USER32
> 
> Signed-off-by: Luca Dariz <[email protected]>

Applied, thanks!

> ---
>  vm/vm_user.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/vm/vm_user.c b/vm/vm_user.c
> index ad1fa75d..81c87d78 100644
> --- a/vm/vm_user.c
> +++ b/vm/vm_user.c
> @@ -338,6 +338,11 @@ kern_return_t vm_map(
>       if (size == 0)
>               return KERN_INVALID_ARGUMENT;
>  
> +#ifdef USER32
> +        if (mask & 0x80000000)
> +            mask |= 0xffffffff00000000;
> +#endif
> +
>       *address = trunc_page(*address);
>       size = round_page(size);
>  
> -- 
> 2.30.2
> 
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.

Reply via email to