This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Avoid backtrace from __stack_chk_fail [BZ #12189]
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "H.J. Lu" <hongjiu dot lu at intel dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Tue, 11 Jul 2017 10:49:04 +0200
- Subject: Re: [PATCH] Avoid backtrace from __stack_chk_fail [BZ #12189]
- Authentication-results: sourceware.org; auth=none
- References: <20170710200054.GA11938@gmail.com>
* 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?