x86/mm: Drop TS_COMPAT on 64-bit exec() syscall
[linux-2.6-microblaze.git] / arch / x86 / kernel / process_64.c
index 4b100fe..12bb445 100644 (file)
@@ -542,6 +542,7 @@ void set_personality_64bit(void)
        clear_thread_flag(TIF_X32);
        /* Pretend that this comes from a 64bit execve */
        task_pt_regs(current)->orig_ax = __NR_execve;
+       current_thread_info()->status &= ~TS_COMPAT;
 
        /* Ensure the corresponding mm is not marked. */
        if (current->mm)