FRET-qemu/linux-user
Richard Henderson 9dba3ca5af linux-user: Validate mmap/mprotect prot value
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>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200519185645.3915-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2020-08-23 16:57:58 +02:00
..
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-06-05 21:23:22 +02:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2020-08-21 06:30:38 -04:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2020-08-21 06:30:38 -04:00
2020-02-19 11:17:40 +01:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2020-02-12 18:56:41 +01:00
2019-06-10 07:03:34 -07:00