[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 05/15] sign-extend mask in vm_map() with 32-bit userspace
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 05/15] sign-extend mask in vm_map() with 32-bit userspace |
Date: |
Sun, 28 Aug 2022 02:54:42 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
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 <luca@orpolo.org>
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 05/15] sign-extend mask in vm_map() with 32-bit userspace,
Samuel Thibault <=