summaryrefslogtreecommitdiff
path: root/patches/strace/4.10/001_aarch64_rt_sigreturn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/strace/4.10/001_aarch64_rt_sigreturn.patch')
-rw-r--r--patches/strace/4.10/001_aarch64_rt_sigreturn.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/strace/4.10/001_aarch64_rt_sigreturn.patch b/patches/strace/4.10/001_aarch64_rt_sigreturn.patch
new file mode 100644
index 0000000..6b7bbe3
--- /dev/null
+++ b/patches/strace/4.10/001_aarch64_rt_sigreturn.patch
@@ -0,0 +1,21 @@
+commit d76d3069526c348e6fe5d40bbbceb2ae4a928d16
+Author: Dmitry V. Levin <ldv@altlinux.org>
+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