public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/29078] New: <dlfcn.h> functions unusable during early auditing
@ 2022-04-20 20:07 fweimer at redhat dot com
  2022-04-20 20:17 ` [Bug dynamic-link/29078] " fweimer at redhat dot com
  2022-04-20 20:51 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2022-04-20 20:07 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29078

            Bug ID: 29078
           Summary: <dlfcn.h> functions unusable during early auditing
           Product: glibc
           Version: 2.36
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

The rtld_active () check incorrectly fails during early auditing: ld.so is
flagged as not initialized, but neither is the static dlopen hook, so using
that hook crashes.

The fix is to use the partially initialized ld.so during early auditing. In
fact, the rtld_active () check is no longer necessary because the hook pointer
is now in _rtld_global_ro and protected by RELRO.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dynamic-link/29078] <dlfcn.h> functions unusable during early auditing
  2022-04-20 20:07 [Bug dynamic-link/29078] New: <dlfcn.h> functions unusable during early auditing fweimer at redhat dot com
@ 2022-04-20 20:17 ` fweimer at redhat dot com
  2022-04-20 20:51 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2022-04-20 20:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29078

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
              Flags|                            |security-
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com
                 CC|                            |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dynamic-link/29078] <dlfcn.h> functions unusable during early auditing
  2022-04-20 20:07 [Bug dynamic-link/29078] New: <dlfcn.h> functions unusable during early auditing fweimer at redhat dot com
  2022-04-20 20:17 ` [Bug dynamic-link/29078] " fweimer at redhat dot com
@ 2022-04-20 20:51 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2022-04-20 20:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29078

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Patch posted:

[PATCH] dlfcn: Do not use rtld_active () to determine ld.so state (bug 29078)
https://sourceware.org/pipermail/libc-alpha/2022-April/138015.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-20 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 20:07 [Bug dynamic-link/29078] New: <dlfcn.h> functions unusable during early auditing fweimer at redhat dot com
2022-04-20 20:17 ` [Bug dynamic-link/29078] " fweimer at redhat dot com
2022-04-20 20:51 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).