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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Buck
Date: Thursday, March 6, 2008 - 10:34 am

On Thu, Mar 06, 2008 at 01:06:17PM +0100, Richard Guenther wrote:

"Sometimes" is correct; many users commonly run newer compilers on older
distros, with LD_LIBRARY_PATH set to pick up the correct C++ support
library.  This is particularly common on servers, where you don't want to
mess with a working system but you might need to run newer code.

So, we've been arguing for a while, so the question is what to do.

Using a principle based on the old IETF concept of being liberal in what
you accept, and conservative in what you send, I think that both the Linux
kernel and gcc should fix the problem.  The kernel should fix the
information leak, and gcc should remove the assumption that the direction
flag is set in a given direction on function entry.

The gcc patch will be too late for 4.3.0, but it would be on the 4.3
branch, and we would recommend that distros pick it up for any compilers
they ship.

--
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, 8:30 am)
[PATCH] x86: Clear DF before calling signal handler, Aurelien Jarno, (Wed Mar 5, 11:14 am)
Re: [PATCH] x86: Clear DF before calling signal handler, H. Peter Anvin, (Wed Mar 5, 11:17 am)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, Mikael Pettersson, (Thu Mar 6, 2:45 am)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, Richard Guenther, (Thu Mar 6, 5:06 am)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, Joe Buck, (Thu Mar 6, 10:34 am)
Re: Linux doesn't follow x86/x86-64 ABI wrt direction flag, Richard Guenther, (Thu Mar 6, 1:54 pm)