public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug libdw/28677] New: Bad dynamic entry conversion in dwfl_link_map_report
Date: Thu, 09 Dec 2021 20:14:59 +0000	[thread overview]
Message-ID: <bug-28677-10460@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 28677
           Summary: Bad dynamic entry conversion in dwfl_link_map_report
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libdw
          Assignee: unassigned at sourceware dot org
          Reporter: mark at klomp dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 13841
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13841&action=edit
Corrupt core file

Reproducer from Bug 28666

$ valgrind -q eu-stack --core ./poc2 
==500881== Invalid read of size 8
==500881==    at 0x4851268: __GI_memmove (vg_replace_strmem.c:1271)
==500881==    by 0x48994CB: elf32_xlatetom (in
/usr/lib/aarch64-linux-gnu/libelf-0.183.so)
==500881==    by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x4924977: dwfl_core_file_report (in
/usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x10AAB7: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4C2ABAF: group_parse (argp-parse.c:257)
==500881==    by 0x4C2ABAF: parser_finalize (argp-parse.c:604)
==500881==    by 0x4C2ABAF: argp_parse (argp-parse.c:922)
==500881==    by 0x10A273: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4B6C217: (below main) (libc-start.c:308)
==500881==  Address 0x4034000 is 0 bytes after the brk data segment limit
0x4034000
==500881== 
==500881== Invalid read of size 8
==500881==    at 0x4851278: __GI_memmove (vg_replace_strmem.c:1271)
==500881==    by 0x48994CB: elf32_xlatetom (in
/usr/lib/aarch64-linux-gnu/libelf-0.183.so)
==500881==    by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x4924977: dwfl_core_file_report (in
/usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x10AAB7: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4C2ABAF: group_parse (argp-parse.c:257)
==500881==    by 0x4C2ABAF: parser_finalize (argp-parse.c:604)
==500881==    by 0x4C2ABAF: argp_parse (argp-parse.c:922)
==500881==    by 0x10A273: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4B6C217: (below main) (libc-start.c:308)
==500881==  Address 0x4034008 is 8 bytes after the brk data segment limit
0x4034000
==500881== 
==500881== Invalid read of size 8
==500881==    at 0x4851280: __GI_memmove (vg_replace_strmem.c:1271)
==500881==    by 0x48994CB: elf32_xlatetom (in
/usr/lib/aarch64-linux-gnu/libelf-0.183.so)
==500881==    by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x4924977: dwfl_core_file_report (in
/usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x10AAB7: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4C2ABAF: group_parse (argp-parse.c:257)
==500881==    by 0x4C2ABAF: parser_finalize (argp-parse.c:604)
==500881==    by 0x4C2ABAF: argp_parse (argp-parse.c:922)
==500881==    by 0x10A273: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4B6C217: (below main) (libc-start.c:308)
==500881==  Address 0x4034010 is 16 bytes after the brk data segment limit
0x4034000
==500881== 
==500881== Invalid read of size 8
==500881==    at 0x4851288: __GI_memmove (vg_replace_strmem.c:1271)
==500881==    by 0x48994CB: elf32_xlatetom (in
/usr/lib/aarch64-linux-gnu/libelf-0.183.so)
==500881==    by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x4924977: dwfl_core_file_report (in
/usr/lib/aarch64-linux-gnu/libdw-0.183.so)
==500881==    by 0x10AAB7: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4C2ABAF: group_parse (argp-parse.c:257)
==500881==    by 0x4C2ABAF: parser_finalize (argp-parse.c:604)
==500881==    by 0x4C2ABAF: argp_parse (argp-parse.c:922)
==500881==    by 0x10A273: ??? (in /usr/bin/eu-stack)
==500881==    by 0x4B6C217: (below main) (libc-start.c:308)
==500881==  Address 0x4034018 is 24 bytes after the brk data segment limit
0x4034000

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

             reply	other threads:[~2021-12-09 20:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-09 20:14 mark at klomp dot org [this message]
2021-12-09 20:28 ` [Bug libdw/28677] " mark at klomp dot org
2021-12-09 21:27 ` evvers at ya dot ru
2021-12-10 10:14 ` mark at klomp dot org

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=bug-28677-10460@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=elfutils-devel@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).