Page MenuHomeFreeBSD

rtld_malloc: more accurate handling of mmap(2) failure
ClosedPublic

Authored by kib on Oct 15 2021, 9:37 PM.
Tags
None
Referenced Files
F87555179: D32514.diff
Thu, Jul 4, 11:03 PM
Unknown Object (File)
Wed, Jul 3, 3:34 AM
Unknown Object (File)
Tue, Jul 2, 9:43 PM
Unknown Object (File)
Thu, Jun 27, 9:43 AM
Unknown Object (File)
May 22 2024, 4:51 AM
Unknown Object (File)
May 8 2024, 10:11 PM
Unknown Object (File)
Apr 21 2024, 10:08 PM
Unknown Object (File)
Mar 10 2024, 3:09 AM
Subscribers

Details

Summary

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>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Oct 15 2021, 9:37 PM
This revision is now accepted and ready to land.Oct 18 2021, 8:16 PM
libexec/rtld-elf/rtld_malloc.c
285

Use NULL instead of zero?