OSDN Git Service

linux-user: Split out do_mmap
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Aug 2023 01:22:35 +0000 (18:22 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 Aug 2023 14:17:04 +0000 (07:17 -0700)
commit9ab8d0714964abce6f5b8bcac49d6239c548ed12
treed94c0b7794259f759b5a1302e79a79b4d8bd5178
parentc42e77a90d9244c8caf76fe0e54f84200430a4e1
linux-user: Split out do_mmap

New function that rejects unsupported map types and flags.
In 4b840f96 we should not have accepted MAP_SHARED_VALIDATE
without actually validating the rest of the flags.

Fixes: 4b840f96 ("linux-user: Populate more bits in mmap_flags_tbl")
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall.c