This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid late malloc failure in dlopen [BZ #25112]


* Florian Weimer:

> Note that this patch has a not-quite-trivial textual conflict with
> __libc_early_init:
>
>   <https://sourceware.org/ml/libc-alpha/2019-10/msg00340.html>
>
> But this should be easy enough to resolve.  This patch depends on the
> lazy binding failure fix:
>
>   <https://sourceware.org/ml/libc-alpha/2019-10/msg00516.html>
>
> With this change, I believe we can no longer raise exceptions after ELF
> constructors have run.  The only user code that runs prior to dlopen
> failure consists of IFUNC resolvers.  I believe that as a result, we can
> can change dlopen in a future patch to ignore the NODELETE flag on new
> mappings on failure, fixing bug 20839.
>
> I did not write a test for this because of the difficulty of injection
> malloc failures.

Sorry, the patch is incomplete.  There are more issues.  I updated the
bug.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]