malloc: Use __getrandom_nocancel during tcache initiailization
commit7187efd0aa270c83c428ea6cd0e1cffc34b41a74
authorFlorian Weimer <fweimer@redhat.com>
Mon, 1 Aug 2022 13:49:07 +0000 (1 15:49 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 1 Aug 2022 13:50:09 +0000 (1 15:50 +0200)
treeced89225894bcfe3fd39eea6539b87683d584816
parent032712621fd376def8ee4c1d997b414f29a30108
malloc: Use __getrandom_nocancel during tcache initiailization

Cancellation currently cannot happen at this point because dlopen
as used by the unwind link always performs additional allocations
for libgcc_s.so.1, even if it has been loaded already as a dependency
of the main executable.  But it seems prudent not to rely on this
quirk.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
malloc/malloc.c