On 24/8/23 03:02, Richard Henderson wrote:
If the shm region is not mapped at shmaddr, EINVAL. Do not unmap the region until the syscall succeeds. Use mmap_reserve_or_unmap to preserve reserved_va semantics.Signed-off-by: Richard Henderson <richard.hender...@linaro.org> --- linux-user/mmap.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>