]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crt_malloc: Be more persistent when handling mmap() failure
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 11 Oct 2021 16:13:31 +0000 (19:13 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 12 Oct 2021 23:37:09 +0000 (02:37 +0300)
commit19e008e7f79ce55182d227be8513b3fa520471d8
tree31b3de2d3dd74af95d99666c60e639e55047ecb6
parent0b72d2965d68113bce16f6cccea77257283ef0a7
crt_malloc: Be more persistent when handling mmap() failure

In the situation with limited address space, together with
fragmentation, it is possible for mmap() request in morecore() to fail
when asking for required size + NPOOLPAGES, but succeed without the
addend.  Retry allocation there.

PR: 259076
Reported 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/D32474
libexec/rtld-elf/rtld_malloc.c