[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] linux-user: Validate mmap/mprotect prot value
From: |
Laurent Vivier |
Subject: |
Re: [PATCH 1/2] linux-user: Validate mmap/mprotect prot value |
Date: |
Fri, 7 Aug 2020 11:44:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Le 19/05/2020 à 20:56, Richard Henderson a écrit :
> The kernel will return -EINVAL for bits set in the prot argument
> that are unknown or invalid. Previously we were simply cropping
> out the bits that we care about.
>
> Introduce validate_prot_to_pageflags to perform this check in a
> single place between the two syscalls. Differentiate between
> the target and host versions of prot. Compute the qemu internal
> page_flags value at the same time.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> linux-user/mmap.c | 106 +++++++++++++++++++++++++++++++---------------
> 1 file changed, 73 insertions(+), 33 deletions(-)
>
Applied to my linux-user-for-5.2 branch.
Thanks,
Laurent
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 1/2] linux-user: Validate mmap/mprotect prot value,
Laurent Vivier <=