Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Ross Burton <ross.burton@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 09/15] strace: upgrade 4.22 -> 4.23
Date: Tue, 17 Jul 2018 17:39:04 +0100	[thread overview]
Message-ID: <20180717163910.3196-9-ross.burton@intel.com> (raw)
In-Reply-To: <20180717163910.3196-1-ross.burton@intel.com>

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 ...aw_syscall.h-avoid-r7-specified-register-.patch | 74 ----------------------
 .../strace/{strace_4.22.bb => strace_4.23.bb}      |  5 +-
 2 files changed, 2 insertions(+), 77 deletions(-)
 delete mode 100644 meta/recipes-devtools/strace/strace/0001-linux-arm-raw_syscall.h-avoid-r7-specified-register-.patch
 rename meta/recipes-devtools/strace/{strace_4.22.bb => strace_4.23.bb} (90%)

diff --git a/meta/recipes-devtools/strace/strace/0001-linux-arm-raw_syscall.h-avoid-r7-specified-register-.patch b/meta/recipes-devtools/strace/strace/0001-linux-arm-raw_syscall.h-avoid-r7-specified-register-.patch
deleted file mode 100644
index 8584291ba83..00000000000
--- a/meta/recipes-devtools/strace/strace/0001-linux-arm-raw_syscall.h-avoid-r7-specified-register-.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-From 0c75ebaad09d6d3f2395dfe6160904af883dd0d9 Mon Sep 17 00:00:00 2001
-From: Andre McCurdy <armccurdy@gmail.com>
-Date: Tue, 15 May 2018 15:34:39 -0700
-Subject: [PATCH] linux/arm/raw_syscall.h: avoid r7 specified register
- variables with Thumb
-
-If Thumb code is being generated and frame pointers are enabled, the
-Thumb frame pointer in r7 clashes with any local variable which may
-need to be assigned to r7 (e.g. the syscall NR when making a raw
-syscall).
-
-With gcc, the double use of r7 results in a build error, e.g.
-
-  strace-4.22/tests/inject-nf.c:86:1: error: r7 cannot be used in asm here
-
-With clang, the double use of r7 can result in the compiler silently
-generating broken code which crashes at run time due to frame pointer
-corruption:
-
-  https://bugs.llvm.org/show_bug.cgi?id=34165
-
-In most cases the problem isn't visible as frame pointers will be
-disabled automatically due to optimisation level. However to handle
-cases where frame pointers are enabled (e.g. when CFLAGS etc are set
-to support a debug build, etc) provide a version of raw_syscall_0
-which manually saves and restores the frame pointer value in r7
-to a temporary register before setting up the syscall NR in r7
-and invoking the syscall.
-
-* linux/arm/raw_syscall.h (raw_syscall_0) [__thumb__]: Provide
-an alternative version.
-
-Upstream-Status: Backport
-
-Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
----
- linux/arm/raw_syscall.h | 15 +++++++++++++++
- 1 file changed, 15 insertions(+)
-
-diff --git a/linux/arm/raw_syscall.h b/linux/arm/raw_syscall.h
-index 69c7e23..ec534ec 100644
---- a/linux/arm/raw_syscall.h
-+++ b/linux/arm/raw_syscall.h
-@@ -36,12 +36,27 @@ static inline kernel_ulong_t
- raw_syscall_0(const kernel_ulong_t nr, kernel_ulong_t *err)
- {
- 	*err = 0;
-+
-+#ifdef __thumb__ /* && FRAME_POINTERS_ENABLED */
-+
-+	register kernel_ulong_t rt;
-+	register kernel_ulong_t r0 __asm__("r0");
-+	__asm__ __volatile__("mov %1,r7; mov r7,%2; swi 0x0; mov r7,%1"
-+			     : "=r"(r0), "=&r"(rt)
-+			     : "r"(nr)
-+			     : "memory");
-+
-+#else
-+
- 	register kernel_ulong_t r7 __asm__("r7") = nr;
- 	register kernel_ulong_t r0 __asm__("r0");
- 	__asm__ __volatile__("swi 0x0"
- 			     : "=r"(r0)
- 			     : "r"(r7)
- 			     : "memory");
-+
-+#endif
-+
- 	return r0;
- }
- # define raw_syscall_0 raw_syscall_0
--- 
-1.9.1
-
diff --git a/meta/recipes-devtools/strace/strace_4.22.bb b/meta/recipes-devtools/strace/strace_4.23.bb
similarity index 90%
rename from meta/recipes-devtools/strace/strace_4.22.bb
rename to meta/recipes-devtools/strace/strace_4.23.bb
index 99691f87c37..0c159fc6f6b 100644
--- a/meta/recipes-devtools/strace/strace_4.22.bb
+++ b/meta/recipes-devtools/strace/strace_4.23.bb
@@ -14,10 +14,9 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
            file://mips-SIGEMT.patch \
            file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \
            file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \
-           file://0001-linux-arm-raw_syscall.h-avoid-r7-specified-register-.patch \
            "
-SRC_URI[md5sum] = "7a2a7d7715da6e6834bc65bd09bace1c"
-SRC_URI[sha256sum] = "068cd09264c95e4d591bbcd3ea08f99a693ed8663cd5169b0fdad72eb5bdb39d"
+SRC_URI[md5sum] = "fad4bba0947553cef34d46a9fd78f039"
+SRC_URI[sha256sum] = "7860a6965f1dd832747bd8281a04738274398d32c56e9fbd0a68b1bb9ec09aad"
 
 inherit autotools ptest bluetooth
 
-- 
2.11.0



  parent reply	other threads:[~2018-07-17 16:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-17 16:38 [PATCH 01/15] bc: upgrade to 1.07.1 Ross Burton
2018-07-17 16:38 ` [PATCH 02/15] tcf-agent: upgrade to 1.7.0 Ross Burton
2018-07-17 16:38 ` [PATCH 03/15] libyaml: upgrade to 0.2.1 Ross Burton
2018-07-17 16:38 ` [PATCH 04/15] btrfs-tools: upgrade 4.16.1 -> 4.17 Ross Burton
2018-07-17 16:39 ` [PATCH 05/15] gnupg: upgrade 2.2.8 -> 2.2.9 Ross Burton
2018-07-17 16:39 ` [PATCH 06/15] libgpg-error: upgrade 1.31 -> 1.32 Ross Burton
2018-07-17 16:39 ` [PATCH 07/15] sysstat: upgrade 11.7.3 -> 11.7.4 Ross Burton
2018-07-17 16:39 ` [PATCH 08/15] xz: upgrade 5.2.3 -> 5.2.4 Ross Burton
2018-07-17 16:39 ` Ross Burton [this message]
2018-07-17 16:39 ` [PATCH 10/15] pciutils: upgrade 3.5.6 -> 3.6.1 Ross Burton
2018-07-17 16:39 ` [PATCH 11/15] libinput: upgrade 1.11.0 -> 1.11.2 Ross Burton
2018-07-17 16:39 ` [PATCH 12/15] harfbuzz: upgrade 1.7.5 -> 1.8.4 Ross Burton
2018-07-17 18:23   ` Khem Raj
2018-07-17 19:21     ` Burton, Ross
2018-07-17 16:39 ` [PATCH 13/15] shared-mime-info: upgrade 1.9 -> 1.10 Ross Burton
2018-07-17 16:39 ` [PATCH 14/15] xf86-input-libinput: upgrade 0.27.1 -> 0.28.0 Ross Burton
2018-07-17 16:39 ` [PATCH 15/15] ca-certificates: upgrade 20170717 -> 20180409 Ross Burton
2018-07-17 17:18   ` Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180717163910.3196-9-ross.burton@intel.com \
    --to=ross.burton@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox