[PATCH 3/3] x86: ELF_PLAT_INIT() shouldn't worry about TIF_IA32

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Tuesday, February 16, 2010 - 7:03 am

64bit vesrion of ELF_PLAT_INIT() clears TIF_IA32, but at this point it
must be already cleared by SET_PERSONALITY == set_personality_64bit.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---

 arch/x86/include/asm/elf.h |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- exec/arch/x86/include/asm/elf.h~3_ELF_PLAT_INIT_IA32	2010-01-31 13:57:24.000000000 +0100
+++ exec/arch/x86/include/asm/elf.h	2010-02-16 14:44:31.000000000 +0100
@@ -170,10 +170,7 @@ static inline void elf_common_init(struc
 }
 
 #define ELF_PLAT_INIT(_r, load_addr)			\
-do {							\
-	elf_common_init(&current->thread, _r, 0);	\
-	clear_thread_flag(TIF_IA32);			\
-} while (0)
+	elf_common_init(&current->thread, _r, 0);
 
 #define	COMPAT_ELF_PLAT_INIT(regs, load_addr)		\
 	elf_common_init(&current->thread, regs, __USER_DS)

--
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)
[PATCH 3/3] x86: ELF_PLAT_INIT() shouldn't worry about TIF ..., Oleg Nesterov, (Tue Feb 16, 7:03 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)