Re: [PATCH] fix for futex_wait signal stack corruption

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Rostedt <rostedt@...>
Cc: Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, LKML <linux-kernel@...>, David Holmes - Sun Microsystems <David.Holmes@...>, Andrew Morton <akpm@...>
Date: Tuesday, December 4, 2007 - 6:43 pm

On Tue, 4 Dec 2007, Steven Rostedt wrote:

Yes. That should work fine.

The restart logic sometimes results in odd calling conventions, and quite 
frankly, we could just change how "restart_block" looks too. There is 
nothing that says that it has to be

	unsigned long arg0, arg1, arg2, arg3

and that particular layout was just picked on a whim. The only issue is:

 - we don't want the restart block to be *too* large, since it's part of 
   the thread info.
 - but we need to have enough room for all the system calls that want to 
   use the restart block, and preferably in a reasonable format.

So far, using "unsigned long" has been good enough, in that it's big 
enough for a pointer and all normal arguments, but if something really 
deeply wants another format or a guaranteed 64-bit word regardless of 
architecture, we could make one or more of the arguments be "u64" instead.

But in this case, since there is already unused argument space, I think 
that doing the "32 high bits + 32 low bits" is probably the best option.

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

Messages in current thread:
[PATCH] fix for futex_wait signal stack corruption, Steven Rostedt, (Tue Dec 4, 4:57 pm)
Re: [PATCH] fix for futex_wait signal stack corruption, Linus Torvalds, (Tue Dec 4, 5:09 pm)
Re: [PATCH] fix for futex_wait signal stack corruption, Steven Rostedt, (Tue Dec 4, 5:39 pm)
Re: [PATCH] fix for futex_wait signal stack corruption, Linus Torvalds, (Tue Dec 4, 6:43 pm)
Re: [PATCH] fix for futex_wait signal stack corruption, Steven Rostedt, (Tue Dec 4, 9:23 pm)
Re: [PATCH] fix for futex_wait signal stack corruption, Linus Torvalds, (Tue Dec 4, 9:46 pm)
[PATCH -v2] fix for futex_wait signal stack corruption, Steven Rostedt, (Tue Dec 4, 11:17 pm)
Re: [PATCH -v2] fix for futex_wait signal stack corruption, Linus Torvalds, (Tue Dec 4, 11:41 pm)
Re: [PATCH -v2] fix for futex_wait signal stack corruption, Thomas Gleixner, (Wed Dec 5, 1:54 am)
Re: [PATCH -v2] fix for futex_wait signal stack corruption, David Holmes - Sun Microsystems..., (Wed Dec 5, 1:33 am)
Re: [PATCH -v2] fix for futex_wait signal stack corruption, David Holmes - Sun Microsystems..., (Wed Dec 5, 2:14 am)
Re: [PATCH -v2] fix for futex_wait signal stack corruption, Steven Rostedt, (Tue Dec 4, 11:53 pm)