public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PR libgcc/78064: Add missing include directive to unwind-c.c
@ 2016-10-21 10:15 Florian Weimer
  2016-10-24 18:15 ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2016-10-21 10:15 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

See

   https://gcc.gnu.org/ml/gcc/2016-10/msg00165.html

for the background.  This causes pthread_cond_wait in glibc to write out 
of bounds on i386.

Fix was suggested by Jim Wilson.

Tested on x86_64-redhat-linux-gnu, with no new regressions.  Also tested 
against the i386 glibc reproducer, and verified that _Unwind_GetIPInfo 
is called from the __gcc_personality_v0.

Okay for trunk?

We probably should backport this to all active branches as well.  The 
risk is fairly low because the C unwinder personality is rarely used 
(Eric Botcazou pointed out that the C++ and Ada personalities are not 
affected by this).

2016-10-21  Florian Weimer  <fweimer@redhat.com>

	PR libgcc/78064
	* unwind-c.c: Include auto-target.h.

[-- Attachment #2: unwind-c.patch --]
[-- Type: text/x-patch, Size: 339 bytes --]

Index: libgcc/unwind-c.c
===================================================================
--- libgcc/unwind-c.c	(revision 241395)
+++ libgcc/unwind-c.c	(working copy)
@@ -26,6 +26,7 @@
 
 #include "tconfig.h"
 #include "tsystem.h"
+#include "auto-target.h"
 #include "unwind.h"
 #define NO_SIZE_OF_ENCODED_VALUE
 #include "unwind-pe.h"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PR libgcc/78064: Add missing include directive to unwind-c.c
  2016-10-21 10:15 PR libgcc/78064: Add missing include directive to unwind-c.c Florian Weimer
@ 2016-10-24 18:15 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2016-10-24 18:15 UTC (permalink / raw)
  To: Florian Weimer; +Cc: GCC Patches

On Fri, Oct 21, 2016 at 12:14:50PM +0200, Florian Weimer wrote:
> See
> 
>   https://gcc.gnu.org/ml/gcc/2016-10/msg00165.html
> 
> for the background.  This causes pthread_cond_wait in glibc to write out of
> bounds on i386.
> 
> Fix was suggested by Jim Wilson.
> 
> Tested on x86_64-redhat-linux-gnu, with no new regressions.  Also tested
> against the i386 glibc reproducer, and verified that _Unwind_GetIPInfo is
> called from the __gcc_personality_v0.
> 
> Okay for trunk?

Ok, thanks.

> We probably should backport this to all active branches as well.  The risk
> is fairly low because the C unwinder personality is rarely used (Eric
> Botcazou pointed out that the C++ and Ada personalities are not affected by
> this).

I think it is ok to backport say after 14 days on the trunk (of course only
to still supported branches, 5/6).

> 2016-10-21  Florian Weimer  <fweimer@redhat.com>
> 
> 	PR libgcc/78064
> 	* unwind-c.c: Include auto-target.h.

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-24 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-21 10:15 PR libgcc/78064: Add missing include directive to unwind-c.c Florian Weimer
2016-10-24 18:15 ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).