From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0CF413858C1F; Wed, 22 Mar 2023 11:57:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CF413858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679486257; bh=Ocf5IGTChigUWuNsHK1B7klgg97c6gpkd8tCXhSqNLk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G/RhHFThgPWau+CclhkWbwSPsV36ogHxfILAai5kWkQ8OJSlrk8NFnhY82SzkEk0/ 3ZjPXSSsZOSWnDN4sfTL84DQ0rUUL4VMVw0v841a4xGLkPxzUabsYWPsQH4egtU4lz zCs4ZFJ+GIy6vfHuk+KP0YTSL7ucwEG+Nci2zy5w= 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 11:57:36 +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 #9 from Adhemerval Zanella --- (In reply to Matthew Parkinson from comment #8) > > This might work, the hook requires a global load and branch but it shou= ld be=20 > > a predictable branch and performance should be ok. I would require to = add > > additional hooks on every malloc function, adding another configuration= layer > > which is an extra complexity for malloc interposition (which I am not v= ery > > found on). >=20 > I agree the complexity is not nice.=20=20 >=20=20 > > You might ask what other maintainers think about this approach, >=20 > Should I email libc-alpha to achieve this? Yes please, I would like to hear from other maintainers if this approach is sound and if I am not missing anything corner spot. >=20 > > I personally > > still think we should properly add preload option to have a more generic > > fix to fix symbol interpostion with RTLD_DEEPBIND for all possible symb= ols > > and not a ad-hoc fix for malloc. >=20 > This is not something I understand well enough to contribute to, so I am > just trying to understand if there is something I can do, or if I need to > wait for a solution. >=20 > Thanks --=20 You are receiving this mail because: You are on the CC list for the bug.=