HomeFreeBSD

crt_malloc: more accurate handling of mmap(2) failure

Description

crt_malloc: more accurate handling of mmap(2) failure

Reset both pagepool_start and pagepool_end after a mmap(2) failure,
to avoid using invalid pagepool either for allocation or munmap(2).

PR: 259076
Noted by: Denis Koreshkov <dynamic-wind@mail.ru>
Reviewed by: arichardson
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32514

Details

Provenance
kibAuthored on Oct 15 2021, 5:59 PM
Reviewer
arichardson
Differential Revision
D32514: rtld_malloc: more accurate handling of mmap(2) failure
Parents
rGe1d6d6f9249d: lorder: process read-only data symbols
Branches
Unknown
Tags
Unknown