qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [PATCH v7 2/6] linux-user: Validate mmap/mprotect prot va


From: Peter Maydell
Subject: Re: [Qemu-arm] [PATCH v7 2/6] linux-user: Validate mmap/mprotect prot value
Date: Tue, 20 Aug 2019 16:24:03 +0100

On Sat, 3 Aug 2019 at 22:08, Richard Henderson
<address@hidden> wrote:
>
> 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 <address@hidden>

Reviewed-by: Peter Maydell <address@hidden>

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]