27 lines
797 B
Diff
27 lines
797 B
Diff
From d76d3069526c348e6fe5d40bbbceb2ae4a928d16 Mon Sep 17 00:00:00 2001
|
|
From: "Dmitry V. Levin" <ldv@altlinux.org>
|
|
Date: Wed, 11 Mar 2015 14:32:25 +0000
|
|
Subject: [PATCH 02/68] aarch64: fix rt_sigreturn decoding
|
|
|
|
* sigreturn.c (sys_sigreturn) [AARCH64]: Fix personality check.
|
|
---
|
|
sigreturn.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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
|
|
--
|
|
2.3.5
|
|
|