[PATCH] malloc: Abort on heap corruption, without a backtrace [BZ #21754]

Florian Weimer fweimer@redhat.com
Fri Aug 18 11:52:00 GMT 2017


I really	 think we should avoid generating backtraces on heap
corruption.  The process is in a precarious state at this point, and
doing more work at this point risks obscuring the root cause of the
corruption or enabling code execution exploits.

When it came to backporting the corrupted arena avoidance patches, we
asked internally if our support folks needed the backtraces, and they
said they could live without it.

The attached patch is just the minimum change required to get going.  We
can do quite a few cleanups afterwards (including removal of the corrupt
arena avoidance logic, which does not work reliable anyway and never can).

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: malloc-abort.patch
Type: text/x-patch
Size: 6455 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170818/d4255617/attachment.bin>


More information about the Libc-alpha mailing list