From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B087A3858407; Tue, 14 Sep 2021 17:46:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B087A3858407 From: "siddhesh at sourceware dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28340] New: ld.so crashes while loading a DSO with a read-only dynamic section Date: Tue, 14 Sep 2021 17:46:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: siddhesh at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: siddhesh 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 target_milestone 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: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2021 17:46:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28340 Bug ID: 28340 Summary: ld.so crashes while loading a DSO with a read-only dynamic section Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: siddhesh at sourceware dot org Reporter: siddhesh at sourceware dot org Target Milestone: --- ld.so crashes when trying to verify DSO with read-only dynamic section, e.g. vdso64.so as shipped by the Linux kernel. $ elf/ld.so --verify $(find /usr -name vdso64.so | head -1) Actual Result: Segfault Expected Result: Not crash Since there's no way to load a dynamic object that has a read-only .dynamic section and at the same time, has entries in the .dynamic section that need adjustment during relocation, e.g. .plt.got address, .symtab address, etc., fail to load and return an error. Patch coming up. --=20 You are receiving this mail because: You are on the CC list for the bug.=