Skip to content
Browse files
x32: Make sure TS_COMPAT is cleared for x32 tasks
If a process has a non-x32 ia32 personality and changes to x32, the
process would keep its TS_COMPAT flag. x32 uses the presence of the
x32 flag on a syscall to determine compat status, so make sure
TS_COMPAT is cleared.

Signed-off-by: Bobby Powers <>
Signed-off-by: H. Peter Anvin <>
  • Loading branch information
bpowers authored and H. Peter Anvin committed Feb 26, 2012
1 parent 3f21723 commit ce5f7a99df87918b5be4618a9386213a8e9a7146
Showing 1 changed file with 3 additions and 0 deletions.
@@ -540,6 +540,9 @@ void set_personality_ia32(bool x32)
current->personality &= ~READ_IMPLIES_EXEC;
/* is_compat_task() uses the presence of the x32
syscall bit flag to determine compat status */
current_thread_info()->status &= ~TS_COMPAT;
} else {

0 comments on commit ce5f7a9

Please sign in to comment.