This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/20831] _dl_map_segments does not test for __mprotect failures consistently
- From: "ldv at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 16 Nov 2016 23:57:45 +0000
- Subject: [Bug dynamic-link/20831] _dl_map_segments does not test for __mprotect failures consistently
- Auto-submitted: auto-generated
- References: <bug-20831-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20831
--- Comment #1 from Dmitry V. Levin <ldv at sourceware dot org> ---
Expected behavior:
$ strace -e mprotect -e fault=mprotect:when=1:error=ENOMEM cat </dev/null
mprotect(0xf774e000, 4096, PROT_NONE) = -1 ENOMEM (Cannot allocate memory)
(INJECTED)
/bin/cat: error while loading shared libraries: libc.so.6: cannot change memory
protections
+++ exited with 127 +++
--
You are receiving this mail because:
You are on the CC list for the bug.