[Bug libelf/24085] An Out of Memory problem was discovered in function in read_long_names in elf_begin.c in libelf

2019-02-14 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24085

Mark Wielaard  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Mark Wielaard  ---
commit e32380ecefbb23448541367283d3b94930762986
Author: Mark Wielaard 
Date:   Thu Feb 14 11:47:59 2019 +0100

libelf: Make sure ar_size is terminated when reading ar long names.

The ar_size is given as a fixed size decimal string, right padded with
spaces.  Make sure we read it properly even if there is no terminating
space. Also sanity check len early if we can.

https://sourceware.org/bugzilla/show_bug.cgi?id=24085

Signed-off-by: Mark Wielaard 

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug libdw/24158] run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host.

2019-02-14 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24158

Mark Wielaard  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-02-14
 CC||mark at klomp dot org
 Ever confirmed|0   |1

--- Comment #1 from Mark Wielaard  ---
I have replicated this, but don't fully understand it yet.

But this is kind of a weird issue. If you are building with -m32 on an 64bit
system you don't want/cannot have the run-backtrace-native-biarch.sh test.
Since that tests 32-bit-on-64-bit. So this is really a configure issue that
should notice that -m32 has already been added, so the test should be skipped.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[COMMITTED] Prepare for 0.176

2019-02-14 Thread Mark Wielaard
Set version to 0.176.
Update NEWS and elfutils.spec.in.
Update GPG-KEY.
Regenerate po/*.po files.

Signed-off-by: Mark Wielaard 
---
 ChangeLog   |   7 ++
 GPG-KEY | 141 --
 NEWS|  10 ++
 config/ChangeLog|   4 +
 config/elfutils.spec.in |   7 ++
 configure.ac|   2 +-
 po/ChangeLog|   4 +
 po/de.po| 264 
 po/es.po| 264 
 po/ja.po| 264 
 po/pl.po| 264 
 po/uk.po| 264 
 12 files changed, 804 insertions(+), 691 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 148ce77..5c45ccc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-02-14  Mark Wielaard  
+
+   * configure.ac: Set version to 0.176.
+   * NEWS: Mention riscv backend updates, new --enable-install-elfh
+   configure flag and fixed CVEs.
+   * GPG-KEY: Update.
+
 2019-01-18  Mark Wielaard  
 
* configure.ac: Add new --enable-install-elfh.
diff --git a/NEWS b/NEWS
index 95fbac0..5a06047 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,13 @@
+Version 0.176
+
+build: Add new --enable-install-elfh option.
+   Do NOT use this for system installs (it overrides glibc elf.h).
+
+backends: riscv improved core file and return value location support.
+
+Fixes CVE-2019-7146, CVE-2019-7148, CVE-2019-7149, CVE-2019-7150,
+  CVE-2019-7664, CVE-2019-7665
+
 Version 0.175
 
 readelf: Handle mutliple .debug_macro sections.
diff --git a/config/ChangeLog b/config/ChangeLog
index 40d6f85..f956780 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2019-02-14  Mark Wielaard  
+
+   * elfutils.spec.in: Update for 0.176.
+
 2018-11-19  Mark Wielaard  
 
* eu.am (AM_CFLAGS): Add -Wtrampolines.
diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in
index e2fb0e4..794cbaf 100644
--- a/config/elfutils.spec.in
+++ b/config/elfutils.spec.in
@@ -227,6 +227,13 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_sysctldir}/10-default-yama-scope.conf
 
 %changelog
+* Thu Feb 14 2019 Mark Wielaard  0.176-1
+- build: Add new --enable-install-elfh option.
+  Do NOT use this for system installs (it overrides glibc elf.h).
+- backends: riscv improved core file and return value location support.
+- Fixes CVE-2019-7146, CVE-2019-7148, CVE-2019-7149, CVE-2019-7150,
+CVE-2019-7664, CVE-2019-7665.
+
 * Wed Nov 14 2018 Mark Wielaard  0.175-1
 - readelf: Handle mutliple .debug_macro sections.
   Recognize and parse GNU Property notes, NT_VERSION notes and
diff --git a/configure.ac b/configure.ac
index 7d4e69d..b4e012d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ dnl  GNU General Public License for more details.
 dnl
 dnl  You should have received a copy of the GNU General Public License
 dnl  along with this program.  If not, see .
-AC_INIT([elfutils],[0.175],[https://sourceware.org/bugzilla],[elfutils],[http://elfutils.org/])
+AC_INIT([elfutils],[0.176],[https://sourceware.org/bugzilla],[elfutils],[http://elfutils.org/])
 
 dnl Workaround for older autoconf < 2.64
 m4_ifndef([AC_PACKAGE_URL],
diff --git a/po/ChangeLog b/po/ChangeLog
index 8f318aa..2afb9b7 100644
--- a/po/ChangeLog
+++ b/po/ChangeLog
@@ -1,3 +1,7 @@
+2019-02-14  Mark Wielaard  
+
+   * *.po: Update for 0.176.
+
 2018-06-11  Mark Wielaard  
 
* *.po: Update for 0.172.
 
-- 
1.8.3.1



Re: [COMMITTED] Prepare for 0.176

2019-02-14 Thread Martin Liška

Hi.

I see 2 tests failing for s390x:
https://build.opensuse.org/package/live_build_log/home:marxin:branches:Base:System/elfutils/openSUSE_Factory_zSystems/s390x

[  269s] ==
[  269s]elfutils 0.176: tests/test-suite.log
[  269s] ==
[  269s]
[  269s] # TOTAL: 205
[  269s] # PASS:  196
[  269s] # SKIP:  7
[  269s] # XFAIL: 0
[  269s] # FAIL:  2
[  269s] # XPASS: 0
[  269s] # ERROR: 0
[  269s]
[  269s] .. contents:: :depth: 2
[  269s]
[  269s] FAIL: run-strip-strmerge.sh
[  269s] ===
[  269s]
[  269s] elflint /home/abuild/rpmbuild/BUILD/elfutils-0.176/tests/elfstrmerge
[  269s] section [34] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x5fb8 does 
not match .got.plt section address 0x6000
[  269s] FAIL run-strip-strmerge.sh (exit status: 1)
[  269s]
[  269s] FAIL: run-elflint-self.sh
[  269s] =
[  269s]
[  269s] section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x6fb0 does 
not match .got.plt section address 0x7000
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/addr2line
[  269s] section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x9fb0 does 
not match .got.plt section address 0xa000
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elfcmp
[  269s] section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0xaf48 does 
not match .got.plt section address 0xb000
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/objdump
[  269s] section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x3ff90 
does not match .got.plt section address 0x4
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/readelf
[  269s] section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x1afb8 
does not match .got.plt section address 0x1b000
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld /home/abuild/rpmbuild/BUILD/elfutils-0.176/libelf/libelf.so
[  269s] section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x56f88 
does not match .got.plt section address 0x57000
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld /home/abuild/rpmbuild/BUILD/elfutils-0.176/libdw/libdw.so
[  269s] section [34] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0xef38 does 
not match .got.plt section address 0xf000
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld 
/home/abuild/rpmbuild/BUILD/elfutils-0.176/backends/libebl_i386.so
[  269s] section [34] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0xff40 does 
not match .got.plt section address 0x1
[  269s] *** failure in /home/abuild/rpmbuild/BUILD/elfutils-0.176/src/elflint 
--quiet --gnu-ld 
/home/abuild/rpmbuild/BUILD/elfutils-0.176/backends/libebl_x86_64.so
[  269s] FAIL run-elflint-self.sh (exit status: 1)

Thanks,
Martin


Re: [COMMITTED] Prepare for 0.176

2019-02-14 Thread Mark Wielaard
On Thu, 2019-02-14 at 20:51 +0100, Martin Liška wrote:
> I see 2 tests failing for s390x:
> 
https://build.opensuse.org/package/live_build_log/home:marxin:branches:Base:System/elfutils/openSUSE_Factory_zSystems/s390x
> 

So those are basically the same issue:

> [  269s] elflint /home/abuild/rpmbuild/BUILD/elfutils-0.176/tests/elfstrmerge
> [  269s] section [34] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x5fb8 
> does not match .got.plt section address 0x6000

First, is that correct?
Could you provide that binary?

Secondly, when did this start happening?
Did you change linker/version?

It might be this binutils commit:
https://sourceware.org/ml/binutils/2018-07/msg00200.html

Which isn't in binutils-2.29 which is used on the s390x fedora builder.
On which this test passes.

If so, you might have to add a check_special_symbol hook like aarch64
has (see backends/aarch64_symbol.c).

Cheers,

Mark


[Bug backends/23902] MIPS varlocs dwarf_cfi_addrframe: unknown error (missing ebl abi_cfi hook)

2019-02-14 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23902

Mark Wielaard  changed:

   What|Removed |Added

Summary|varlocs |MIPS varlocs
   |dwarf_cfi_addrframe:|dwarf_cfi_addrframe:
   |unknown error (missing ebl  |unknown error (missing ebl
   |abi_cfi hook)   |abi_cfi hook)

-- 
You are receiving this mail because:
You are on the CC list for the bug.