[PATCHv2 0/3] libc: Fix malloc error handling

Mike Frysinger vapier@gentoo.org
Mon Sep 26 03:47:00 GMT 2011


On Sunday, September 25, 2011 10:30:41 Jiri Olsa wrote:
> I used latrace error simulation and got some crashes from
> code that handles malloc out of memory cases.
> 
> I understand it is quite unlikely those cases would be hit
> in real world, but since I've already tracked them down
> I am sharing them.. ;)

if you disable overcommitting, it shouldn't be hard to hit OOM in userspace

echo 2 > /proc/sys/vm/overcommit_memory
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110926/7abde38d/attachment.sig>


More information about the Libc-alpha mailing list