[PATCH] Avoid backtrace from __stack_chk_fail [BZ #12189]

Florian Weimer fw@deneb.enyo.de
Tue Jul 11 08:50:00 GMT 2017


* H. J. Lu:

> __stack_chk_fail is called on corrupted stack.  __stack_chk_fail should
> use as little stack as possible.  __libc_message is extended to avoid
> calling BEFORE_ABORT when do_abort >= 3 and __fortify_fail_abort is
> added to avoid backtrace from __stack_chk_fail.
>
> OK for master?

I think you should use an enum for do_abort and avoid the magic
numbers.

Could you post an example of the new output?



More information about the Libc-alpha mailing list