public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/27181] New: __tunables_init can oom fail
@ 2021-01-14 11:02 nsz at gcc dot gnu.org
  2021-01-21 15:59 ` [Bug dynamic-link/27181] " cvs-commit at gcc dot gnu.org
  2024-05-01 18:05 ` adhemerval.zanella at linaro dot org
  0 siblings, 2 replies; 3+ messages in thread
From: nsz at gcc dot gnu.org @ 2021-01-14 11:02 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 27181
           Summary: __tunables_init can oom fail
           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: ---

__tunables_init happens very early (before libc ifunc
resolvers are run).

it should not unnecessarily introduce failures, but
it allocates memory in tunables_strdup. this is only
needed in setuid executables when the GLIBC_TUNABLES
env var has to be sanitized, so there should be no
failure mode in other cases.

with static pie __tunables_init will happen before self
relocation (after bug 27072 is fixed) so complex code
like _dl_fatal_printf should not be used there otherwise
it's hard to guarantee that there are no relocations.

-- 
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:[~2024-05-01 18:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 11:02 [Bug dynamic-link/27181] New: __tunables_init can oom fail nsz at gcc dot gnu.org
2021-01-21 15:59 ` [Bug dynamic-link/27181] " cvs-commit at gcc dot gnu.org
2024-05-01 18:05 ` adhemerval.zanella at linaro dot org

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).