Blame SOURCES/0002-aarch64-fix-rt_sigreturn-decoding.patch

09a367
From d76d3069526c348e6fe5d40bbbceb2ae4a928d16 Mon Sep 17 00:00:00 2001
09a367
From: "Dmitry V. Levin" <ldv@altlinux.org>
09a367
Date: Wed, 11 Mar 2015 14:32:25 +0000
09a367
Subject: [PATCH 02/68] aarch64: fix rt_sigreturn decoding
09a367
09a367
* sigreturn.c (sys_sigreturn) [AARCH64]: Fix personality check.
09a367
---
09a367
 sigreturn.c | 2 +-
09a367
 1 file changed, 1 insertion(+), 1 deletion(-)
09a367
09a367
diff --git a/sigreturn.c b/sigreturn.c
09a367
index 648bd0a..c253a0c 100644
09a367
--- a/sigreturn.c
09a367
+++ b/sigreturn.c
09a367
@@ -23,7 +23,7 @@ sys_sigreturn(struct tcb *tcp)
09a367
 # define OFFSETOF_STRUCT_UCONTEXT_UC_SIGMASK (5 * 4 + SIZEOF_STRUCT_SIGCONTEXT)
09a367
 		const long addr =
09a367
 # ifdef AARCH64
09a367
-			current_personality == 0 ?
09a367
+			current_personality == 1 ?
09a367
 				(*aarch64_sp_ptr + SIZEOF_STRUCT_SIGINFO +
09a367
 				 offsetof(struct ucontext, uc_sigmask)) :
09a367
 # endif
09a367
-- 
09a367
2.3.5
09a367