This repository has been archived by the owner on May 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Saving and accessing dynamic linker structures outside of a `dl_iterate_phdr(3)` call is actually the wrong thing to do - the lock held by `dl_iterate_phdr` is needed to protect `addSharedLib()` from reading invalid memory. Instead, eliminate the other side of the potential inversion, ensuring that we release our own lock before we call into code that transitively grabs the linker lock. Reviewed By: ricardorey10 Differential Revision: D14278774 fbshipit-source-id: 6b91e0f2dc853deb299e0f2a82554d8a7e3afe2e
- Loading branch information