Re: RELEASE BLOCKER: Linux doesn't follow x86/x86-64 ABI wrt direction flag

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Daney <ddaney@...>
Cc: Michael Matz <matz@...>, Joe Buck <Joe.Buck@...>, Jan Hubicka <hubicka@...>, Aurelien Jarno <aurelien@...>, H. Peter Anvin <hpa@...>, <linux-kernel@...>, <gcc@...>
Date: Thursday, March 6, 2008 - 10:06 am

On Wed, Mar 05, 2008 at 03:21:43PM -0800, David Daney wrote:

So that probably means the programs you use for compiling packages
probably aren't hit.  Doesn't mean the packages you've compiled with
it aren't hit.  Compiling packages doesn't test what's in them at all.

It's extremely rare, no doubt about it.  It's just that it *yells*
security issue in the making.  It's not a source bug, i.e. not easily
reviewable.  It's related to signal handlers which are the mark of a
server and/or more failure-conscious program than usual.  It's obscure
(breaking a stringop, probably memset, or a not-paranoid-enough inline
asm in a signal handler through a running memmove in the main program,
oh my) but reasonably predictable for someone looking for an
exploitable flaw.

It's gcc's job to adapt to the realities of its running environment,
not the other way around.

  OG.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux doesn't follow x86/x86-64 ABI wrt direction flag, Aurelien Jarno, (Wed Mar 5, 11:30 am)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, H. Peter Anvin, (Wed Mar 5, 12:00 pm)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, Mikael Pettersson, (Thu Mar 6, 5:45 am)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, Richard Guenther, (Thu Mar 6, 8:06 am)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, Richard Guenther, (Thu Mar 6, 4:54 pm)
Re: RELEASE BLOCKER: Linux doesn't follow x86/x86-64 ABI wrt..., Olivier Galibert, (Thu Mar 6, 10:06 am)
[PATCH] x86: Clear DF before calling signal handler, Aurelien Jarno, (Wed Mar 5, 2:14 pm)
Re: [PATCH] x86: Clear DF before calling signal handler, H. Peter Anvin, (Wed Mar 5, 2:17 pm)