diff options
-rw-r--r-- | arch/x86/kernel/process_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index a0701da2bd18..32e04120b2cd 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -540,6 +540,9 @@ void set_personality_ia32(bool x32) | |||
540 | clear_thread_flag(TIF_IA32); | 540 | clear_thread_flag(TIF_IA32); |
541 | set_thread_flag(TIF_X32); | 541 | set_thread_flag(TIF_X32); |
542 | current->personality &= ~READ_IMPLIES_EXEC; | 542 | current->personality &= ~READ_IMPLIES_EXEC; |
543 | /* is_compat_task() uses the presence of the x32 | ||
544 | syscall bit flag to determine compat status */ | ||
545 | current_thread_info()->status &= ~TS_COMPAT; | ||
543 | } else { | 546 | } else { |
544 | set_thread_flag(TIF_IA32); | 547 | set_thread_flag(TIF_IA32); |
545 | clear_thread_flag(TIF_X32); | 548 | clear_thread_flag(TIF_X32); |