diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-09-02 02:40:21 (GMT) |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-09-02 02:40:21 (GMT) |
commit | db8ff6c0114b60faddc6bb97e4b0beaea0b40b14 (patch) | |
tree | 5e7ee5aaafe5054595ff0b8fb77885bf272ef7e9 /patches/strace/4.10/001_aarch64_rt_sigreturn.patch | |
parent | c5fbb8716b5970e5d2860f576e535c5579d5b02a (diff) | |
parent | ba77b5dab85edd90a138d2e3a5e5f80e182df75e (diff) |
Merge pull request #159 from bhundven/strace_patches
strace: Add strace-4.10 patches from debian
Diffstat (limited to 'patches/strace/4.10/001_aarch64_rt_sigreturn.patch')
-rw-r--r-- | patches/strace/4.10/001_aarch64_rt_sigreturn.patch | 21 |
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 |