Re: [PATCH 2/3] x86: set_personality_ia32() abuses TS_COMPAT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Tuesday, February 16, 2010 - 8:40 am

On Tue, 16 Feb 2010, Oleg Nesterov wrote:

But 'do_signal()' _can_ happen the first thing after an execve(), no?

And after we have switched to 32-bit mode, we _are_ inside a 32-bit system 
call: the execve has "changed" from a 64-bit one to a 32-bit one.

So I really don't understand why you dislike TS_COMPAT here.

I understand not liking TS_COMPAT in the first place (it would be nice to 
not have that flag at all), but considering that it exists, and it is 
supposed to be set while in 32-bit system calls, setting it on a 32-bit 
execve() seems to be the RightThing(tm) to do.

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

Messages in current thread:
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Oleg Nesterov, (Mon Feb 15, 9:17 am)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, H. Peter Anvin, (Mon Feb 15, 9:23 am)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Oleg Nesterov, (Mon Feb 15, 9:50 am)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, H. Peter Anvin, (Mon Feb 15, 11:06 am)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Oleg Nesterov, (Mon Feb 15, 11:52 am)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, H. Peter Anvin, (Mon Feb 15, 12:07 pm)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, H. Peter Anvin, (Mon Feb 15, 12:10 pm)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Roland McGrath, (Mon Feb 15, 12:41 pm)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, H. Peter Anvin, (Mon Feb 15, 1:07 pm)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, H. Peter Anvin, (Mon Feb 15, 1:43 pm)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Roland McGrath, (Mon Feb 15, 2:05 pm)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Roland McGrath, (Mon Feb 15, 2:14 pm)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Oleg Nesterov, (Tue Feb 16, 3:19 am)
Re: x86: get rid of the insane TIF_ABI_PENDING bit, Andi Kleen, (Tue Feb 16, 3:23 am)
[PATCH 2/3] x86: set_personality_ia32() abuses TS_COMPAT, Oleg Nesterov, (Tue Feb 16, 7:02 am)
Re: [PATCH 2/3] x86: set_personality_ia32() abuses TS_COMPAT, Linus Torvalds, (Tue Feb 16, 8:40 am)
Re: [PATCH 2/3] x86: set_personality_ia32() abuses TS_COMPAT, H. Peter Anvin, (Tue Feb 16, 10:38 am)
Re: [PATCH 2/3] x86: set_personality_ia32() abuses TS_COMPAT, H. Peter Anvin, (Tue Feb 16, 10:51 am)
Re: [PATCH 2/3] x86: set_personality_ia32() abuses TS_COMPAT, Linus Torvalds, (Tue Feb 16, 11:43 am)
[tip:x86/urgent] x86: set_personality_ia32() misses force_ ..., tip-bot for Oleg Nes ..., (Tue Feb 16, 4:27 pm)