HomeFreeBSD

rtld: Fix a race between dl_iterate_phdr() and dlclose().

Description

rtld: Fix a race between dl_iterate_phdr() and dlclose().

Add a transient reference count to ensure that the phdr argument to the
callback remains valid while the bind lock is dropped.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon

Details

Provenance
markjAuthored on
Reviewer
kib
Parents
rS310419: Fix multiple vulnerabilities of ntp.
Branches
Unknown
Tags
Unknown