commit d76d3069526c348e6fe5d40bbbceb2ae4a928d16 Author: Dmitry V. Levin Date: Wed Mar 11 14:32:25 2015 +0000 aarch64: fix rt_sigreturn decoding * sigreturn.c (sys_sigreturn) [AARCH64]: Fix personality check. diff --git a/sigreturn.c b/sigreturn.c index 648bd0a..c253a0c 100644 --- a/sigreturn.c +++ b/sigreturn.c @@ -23,7 +23,7 @@ sys_sigreturn(struct tcb *tcp) # define OFFSETOF_STRUCT_UCONTEXT_UC_SIGMASK (5 * 4 + SIZEOF_STRUCT_SIGCONTEXT) const long addr = # ifdef AARCH64 - current_personality == 0 ? + current_personality == 1 ? (*aarch64_sp_ptr + SIZEOF_STRUCT_SIGINFO + offsetof(struct ucontext, uc_sigmask)) : # endif