News for hackers. Stuff that matters.
Re:Nommu Linux by xgbi on Monday October 10, 2016 @08:20AM (#12676613)
I would guess battle testing some sensitive programs.

Imagine running OpenSSL on this and seeing where the malloc() would fail and start garbaging the memory.

But I guess you could also use a special malloc that randomly returns NULL to do that..

Re:Nommu Linux by loeg on Monday October 10, 2016 @11:40AM (#12677705)
> But I guess you could also use a special malloc that randomly returns NULL to do that..

On Linux, set the sysctl vm.overcommit_memory = 2.

You can also usually instruct libc to trash freed memory as a debugging mode. But I don't know how to get glibc to do so. Valgrind is good at tracking this kind of thing as well, although slower.

Re:Nommu Linux by bogomipz on Monday October 10, 2016 @08:57AM (#12676780)
Can you elaborate why it would it "garbaging" the memory if the malloc() failed to return an allocation to the app requesting it?