[PATCH] elf: Keep using minimal malloc after early DTV resize (bug 32412)

Florian Weimer fweimer@redhat.com
Thu Feb 13 20:56:02 GMT 2025


* DJ Delorie:

>> +  /* Open some modules, to trigger DTV resizing before the switch to
>> +     the main malloc.  */
>> +  for (int i = 1; i <= 19; ++i)
>> +    {
>> +      char dso[30];
>> +      snprintf (dso, sizeof (dso), "tst-tlsmod17a%d.so", i);
>> +      char sym[30];
>> +      snprintf (sym, sizeof(sym), "tlsmod17a%d", i);
>> +
>> +      void *handle = dlopen (dso, RTLD_LAZY);
>
> Why not xdlopen like the other file?  /me assumes because the error
> message below needs to be different in case it fails.  Ok.
>
> Maybe a comment clarifying this for the next reader?

The support/ stuff isn't designed to be used from within auditors.  The
error propagation may not work as expected.

I don't think we need to document this within every test.

Thanks,
Florian



More information about the Libc-alpha mailing list