Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <DAE287BF-0962-4B40-9711-716E5738D0F2@gmail.com>
Date: Sat, 9 Feb 2019 17:34:02 +0400
From: Ilya Matveychikov <matvejchikov@...il.com>
To: musl@...ts.openwall.com
Subject: [PATCH] Add missing __syscall_ret in dl_mmap

Signed-off-by: Ilya V. Matveychikov <matvejchikov@...il.com>
---
 ldso/dynlink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ldso/dynlink.c b/ldso/dynlink.c
index ec921df..329b42a 100644
--- a/ldso/dynlink.c
+++ b/ldso/dynlink.c
@@ -904,6 +904,7 @@ static void *dl_mmap(size_t n)
 #else
 	p = (void *)__syscall(SYS_mmap, 0, n, prot, flags, -1, 0);
 #endif
+	p = (void *)__syscall_ret((unsigned long)p);
 	return p == MAP_FAILED ? 0 : p;
 }

--
2.7.4

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.