From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E4D063858C39; Thu, 9 Dec 2021 20:14:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4D063858C39 From: "mark at klomp dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2021 20:15:00 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28677 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=3D13841&action=3Ded= it Corrupt core file Reproducer from Bug 28666 $ valgrind -q eu-stack --core ./poc2=20 =3D=3D500881=3D=3D Invalid read of size 8 =3D=3D500881=3D=3D at 0x4851268: __GI_memmove (vg_replace_strmem.c:1271) =3D=3D500881=3D=3D by 0x48994CB: elf32_xlatetom (in /usr/lib/aarch64-linux-gnu/libelf-0.183.so) =3D=3D500881=3D=3D by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libd= w-0.183.so) =3D=3D500881=3D=3D by 0x4924977: dwfl_core_file_report (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so) =3D=3D500881=3D=3D by 0x10AAB7: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4C2ABAF: group_parse (argp-parse.c:257) =3D=3D500881=3D=3D by 0x4C2ABAF: parser_finalize (argp-parse.c:604) =3D=3D500881=3D=3D by 0x4C2ABAF: argp_parse (argp-parse.c:922) =3D=3D500881=3D=3D by 0x10A273: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4B6C217: (below main) (libc-start.c:308) =3D=3D500881=3D=3D Address 0x4034000 is 0 bytes after the brk data segment= limit 0x4034000 =3D=3D500881=3D=3D=20 =3D=3D500881=3D=3D Invalid read of size 8 =3D=3D500881=3D=3D at 0x4851278: __GI_memmove (vg_replace_strmem.c:1271) =3D=3D500881=3D=3D by 0x48994CB: elf32_xlatetom (in /usr/lib/aarch64-linux-gnu/libelf-0.183.so) =3D=3D500881=3D=3D by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libd= w-0.183.so) =3D=3D500881=3D=3D by 0x4924977: dwfl_core_file_report (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so) =3D=3D500881=3D=3D by 0x10AAB7: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4C2ABAF: group_parse (argp-parse.c:257) =3D=3D500881=3D=3D by 0x4C2ABAF: parser_finalize (argp-parse.c:604) =3D=3D500881=3D=3D by 0x4C2ABAF: argp_parse (argp-parse.c:922) =3D=3D500881=3D=3D by 0x10A273: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4B6C217: (below main) (libc-start.c:308) =3D=3D500881=3D=3D Address 0x4034008 is 8 bytes after the brk data segment= limit 0x4034000 =3D=3D500881=3D=3D=20 =3D=3D500881=3D=3D Invalid read of size 8 =3D=3D500881=3D=3D at 0x4851280: __GI_memmove (vg_replace_strmem.c:1271) =3D=3D500881=3D=3D by 0x48994CB: elf32_xlatetom (in /usr/lib/aarch64-linux-gnu/libelf-0.183.so) =3D=3D500881=3D=3D by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libd= w-0.183.so) =3D=3D500881=3D=3D by 0x4924977: dwfl_core_file_report (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so) =3D=3D500881=3D=3D by 0x10AAB7: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4C2ABAF: group_parse (argp-parse.c:257) =3D=3D500881=3D=3D by 0x4C2ABAF: parser_finalize (argp-parse.c:604) =3D=3D500881=3D=3D by 0x4C2ABAF: argp_parse (argp-parse.c:922) =3D=3D500881=3D=3D by 0x10A273: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4B6C217: (below main) (libc-start.c:308) =3D=3D500881=3D=3D Address 0x4034010 is 16 bytes after the brk data segmen= t limit 0x4034000 =3D=3D500881=3D=3D=20 =3D=3D500881=3D=3D Invalid read of size 8 =3D=3D500881=3D=3D at 0x4851288: __GI_memmove (vg_replace_strmem.c:1271) =3D=3D500881=3D=3D by 0x48994CB: elf32_xlatetom (in /usr/lib/aarch64-linux-gnu/libelf-0.183.so) =3D=3D500881=3D=3D by 0x49232D3: ??? (in /usr/lib/aarch64-linux-gnu/libd= w-0.183.so) =3D=3D500881=3D=3D by 0x4924977: dwfl_core_file_report (in /usr/lib/aarch64-linux-gnu/libdw-0.183.so) =3D=3D500881=3D=3D by 0x10AAB7: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4C2ABAF: group_parse (argp-parse.c:257) =3D=3D500881=3D=3D by 0x4C2ABAF: parser_finalize (argp-parse.c:604) =3D=3D500881=3D=3D by 0x4C2ABAF: argp_parse (argp-parse.c:922) =3D=3D500881=3D=3D by 0x10A273: ??? (in /usr/bin/eu-stack) =3D=3D500881=3D=3D by 0x4B6C217: (below main) (libc-start.c:308) =3D=3D500881=3D=3D Address 0x4034018 is 24 bytes after the brk data segmen= t limit 0x4034000 --=20 You are receiving this mail because: You are on the CC list for the bug.=