* [PATCH 0/1] elfutils: Fix prelink libqb error on mips and mips64
@ 2018-08-29 10:11 Robert Yang
2018-08-29 10:11 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2018-08-29 10:11 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 853e0499be449c71378c087e08b1926be8e2ac87:
ruby: improve reproducibility (2018-08-29 10:40:08 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/elfutils
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/elfutils
Robert Yang (1):
elfutils: Fix prelink libqb error on mips and mips64
...lf_end.c-check-data_list.data.d.d_buf-before.patch | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] elfutils: Fix prelink libqb error on mips and mips64
2018-08-29 10:11 [PATCH 0/1] elfutils: Fix prelink libqb error on mips and mips64 Robert Yang
@ 2018-08-29 10:11 ` Robert Yang
0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2018-08-29 10:11 UTC (permalink / raw)
To: openembedded-core
The previous patch
0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch
fixed segmentation fault error on other arches except mips and mips64, now
update it to fix mips and mips64 too, also submitted to upstream.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
...lf_end.c-check-data_list.data.d.d_buf-before.patch | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch b/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch
index 8b03c0e..1bdb511 100644
--- a/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch
+++ b/meta/recipes-devtools/elfutils/files/0001-libelf-elf_end.c-check-data_list.data.d.d_buf-before.patch
@@ -1,4 +1,4 @@
-From d68822e93c57c3fbb77b93eada5986d2240157c2 Mon Sep 17 00:00:00 2001
+From 3393a2e544818f0bd1887c13f28a76ad60c2df98 Mon Sep 17 00:00:00 2001
From: Robert Yang <liezhi.yang@windriver.com>
Date: Thu, 16 Aug 2018 09:58:26 +0800
Subject: [PATCH] libelf/elf_end.c: check data_list.data.d.d_buf before free it
@@ -11,18 +11,25 @@ prelink: /usr/lib/libqb.so.0.18.2: Symbol section index outside of section numbe
The segmentation fault happens when prelink call elf_end().
-Upstream-Status: Submitted [https://sourceware.org/ml/elfutils-devel/2018-q3/msg00065.html]
+Upstream-Status: Submitted [https://sourceware.org/ml/elfutils-devel/2018-q3/msg00085.html]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
- libelf/elf_end.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
+ libelf/elf_end.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libelf/elf_end.c b/libelf/elf_end.c
-index 160f0b8..5388e80 100644
+index 160f0b8..5280a70 100644
--- a/libelf/elf_end.c
+++ b/libelf/elf_end.c
-@@ -165,9 +165,10 @@ elf_end (Elf *elf)
+@@ -160,14 +160,16 @@ elf_end (Elf *elf)
+ architecture doesn't require overly stringent
+ alignment the raw data buffer is the same as the
+ one used for presenting to the caller. */
+- if (scn->data_base != scn->rawdata_base)
++ if ((scn->data_base != scn->rawdata_base)
++ && (scn->data_list.data.d.d_buf != NULL))
+ free (scn->data_base);
/* The section data is allocated if we couldn't mmap
the file. Or if we had to decompress. */
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-29 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-29 10:11 [PATCH 0/1] elfutils: Fix prelink libqb error on mips and mips64 Robert Yang
2018-08-29 10:11 ` [PATCH 1/1] " Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox