HomeFreeBSD

librtld_db: Handle shlibs with discontiguous mappings.

Description

librtld_db: Handle shlibs with discontiguous mappings.

Some shared libraries specify mappings that leave a gap (actually a
MAP_GUARD mapping) in between the file mappings (libcrypto.so was
the one I found), and this would cause rd_loadobj_iter() to report
the mapping info incorrectly, leaving out rdl_path and misreporting
rdl_offset for file mappings after the gap. Fix rd_loadobj_iter()
to handle this situation.

Reviewed by: markj
Sponsored by: Netflix

(cherry picked from commit dfd00261c95a9839ba528f7e052d9bcac19f2b14)

Details

Provenance
chsAuthored on Dec 3 2021, 7:03 PM
markjCommitted on Jan 5 2022, 5:23 PM
Parents
rGd208638c5e5b: tcp_bbr(4): Fix a few typos in sysctl descriptions
Branches
Unknown
Tags
Unknown