From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6099D385828E; Fri, 17 Feb 2023 10:23:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6099D385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676629411; bh=Hl+KfvLipiZgfyqWaMLajdUT5JgJYDL29qlK5S8Wwps=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mMjLp7RnvXEEuCg1CNtR9Vs7GV3t/hi1w+WOJxNAb1ZQK1u6FAF6as5OItlxqrjFX wbY7IFngvV3/tEKUVAy9uI4owrQQCb3mZ8YLYHsqrNATySwlJErC+WWNDBH5yLikgp c1WUqPDqtwwp5uytgWM3G2vn/vtFHl+PyjWoPhEA= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30127] [rfe]: enable ld audit at run-time Date: Fri, 17 Feb 2023 10:23:30 +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: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com 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: security- 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=3D30127 --- Comment #10 from Florian Weimer --- I think for experimentation, you can use the link map as a dlopen handle directly, and pass it to dlsym, for example. We need to gather consensus that this is the way to do it, and document it. Presently, it's an undocumented implementation detail. We also need to use a dedicated link map allocator which only reuses, but n= ot frees, the underlying storiage, so that it becomes safe to traverse the _r_debug lists, despite concurrent dlopen/dlcose operation. There should also be a way to obtain a stable handle from a link map pointe= r. Using dlopen with RTLD_NOLOAD seems about right for that. Maybe we should maintain a hash table with the l_name pointers (not the strings), so that we can precisely identify the link map from its l_name member, even if the nam= e is not unique or concurrently overwritten. --=20 You are receiving this mail because: You are on the CC list for the bug.=