Re: [PULL 07/24] linux-user: Do not call get_errno() in do_brk()

2023-08-06 Thread Richard Henderson
On 8/5/23 23:53, Michael Tokarev wrote: 06.08.2023 06:36, Richard Henderson wrote: --- a/linux-user/syscall.c +++ b/linux-user/syscall.c -    mapped_addr = get_errno(target_mmap(brk_page, new_alloc_size, -    PROT_READ|PROT_WRITE, -

Re: [PULL 07/24] linux-user: Do not call get_errno() in do_brk()

2023-08-05 Thread Michael Tokarev
06.08.2023 06:36, Richard Henderson wrote: --- a/linux-user/syscall.c +++ b/linux-user/syscall.c -mapped_addr = get_errno(target_mmap(brk_page, new_alloc_size, -PROT_READ|PROT_WRITE, -MAP_ANON|MAP_PRIVATE,

[PULL 07/24] linux-user: Do not call get_errno() in do_brk()

2023-08-05 Thread Richard Henderson
From: Akihiko Odaki Later the returned value is compared with -1, and negated errno is not expected. Fixes: 00faf08c95 ("linux-user: Don't use MAP_FIXED in do_brk()") Reviewed-by: Helge Deller Signed-off-by: Akihiko Odaki Message-Id: <20230802071754.14876-4-akihiko.od...@daynix.com> Signed-off