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,
-
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,
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