From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5AB2B38515D0; Wed, 22 Mar 2023 16:25:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5AB2B38515D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679502358; bh=Beo5IZDgwPHfY6T5uuwc/rcx3Tfh7gZzQtKimCE2PEw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GiETLLAA/5xqQfYPKaEluNmCCioZyQbJK+8Q2Cv3iONs3C8R2y1+B5QPtVjnKw8U2 U+zkLZfG/RjBGN/cKDCYFfTUbLofGejyIFfzwNfjq2s/yHUQtypcuJ1g5eZ11TtyDd PxUU2ugDWb4lu9Jlyvymw/1tj8IiKfBvkS9R2vs8= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30186] RTLD_DEEPBIND interacts badly with LD_PRELOAD Date: Wed, 22 Mar 2023 16:25:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED 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: Message-ID: In-Reply-To: References: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30186 --- Comment #12 from Adhemerval Zanella --- (In reply to Siddhesh Poyarekar from comment #10) > We just removed hooks recently because they're a common exploit primitive, > lets not go back in the direction of adding global function pointers agai= n. A weak reference generates a GOTPCREL relocation, and with relro should not= be subject to same issues of malloc hook (it is either reallocated at loading,= or kept null during process execution). >=20 > The core issue here is the ordering of RTLD_DEEPBIND vs LD_PRELOAD and IMO > the fact that LD_PRELOAD doesn't win is something that should be fixed. I > think it always should win but there may be reasons to have RTLD_DEEPBIND > win that I'm unaware of. Lets discuss fixing that ordering issue instead= on > the libc-alpha mailing list. --=20 You are receiving this mail because: You are on the CC list for the bug.=