Re: [PATCH 12/13] linux-user: Fix shmdt

2023-09-01 Thread Philippe Mathieu-Daudé
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 --- linux-user/mmap.c | 17 ++--- 1 fil

[PATCH 12/13] linux-user: Fix shmdt

2023-08-23 Thread Richard Henderson
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 --- linux-user/mmap.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) di