linux: Decorate __libc_fatal error buffer

Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
Adhemerval Zanella 2023-11-01 09:56:10 -03:00
parent 3374ca7936
commit f10ba2ab25

View file

@ -31,6 +31,7 @@
#include <sys/mman.h>
#include <sys/uio.h>
#include <not-cancel.h>
#include <setvmaname.h>
#ifdef FATAL_PREPARE_INCLUDE
#include FATAL_PREPARE_INCLUDE
@ -116,6 +117,8 @@ __libc_message_impl (const char *fmt, ...)
wp = mempcpy (wp, iov[cnt].iov_base, iov[cnt].iov_len);
*wp = '\0';
__set_vma_name (buf, total, " glibc: fatal");
/* We have to free the old buffer since the application might
catch the SIGABRT signal. */
struct abort_msg_s *old = atomic_exchange_acquire (&__abort_msg,