From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8EB8F38618EE; Tue, 15 Dec 2020 11:01:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EB8F38618EE From: "nsz at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/27072] New: static pie ifunc resolvers run before hwcap is setup Date: Tue, 15 Dec 2020 11:01:02 +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: 2.32 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz at gcc dot gnu.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 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, 15 Dec 2020 11:01:02 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27072 Bug ID: 27072 Summary: static pie ifunc resolvers run before hwcap is setup Product: glibc Version: 2.32 Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: nsz at gcc dot gnu.org Target Milestone: --- as far as i can tell in csu/libc-start.c _dl_relocate_static_pie (); is before _dl_aux_init (auxvec); so ifunc resolvers are run before GL(dl_hwcap) and GL(dl_hwcap2) are set up. on aarch64 this at least affects memory tagging: non-MTE-safe string functi= ons are selected in static PIE binaries unconditionally. but i think this is a bug on all targets where hwcap is passed to ifunc resolvers and support static pie. --=20 You are receiving this mail because: You are on the CC list for the bug.=