[PATCH] Harden tcache double-free check
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed Jul 7 18:27:14 GMT 2021
On 07/07/2021 15:12, Siddhesh Poyarekar wrote:
> On 7/7/21 11:39 PM, Adhemerval Zanella via Libc-alpha wrote:
>> Yes, but it is essentially what you are doing here: query getrandom
>> with GRND_NONBLOCK a falling back to clock_gettime. And we also
>> have the random_bits from include/random-bits.h.
>>
>> I think we would better to consolidate it with only one implementation.
>
> The randomness needs are quite different, but I see your point. We could make a separate random_bits64 to cater to these two use cases. Can it be a separate patch though? I'll put it on top of this one.
I think it can be separate consolidation, what I am trying to avoid is
multiple random_bits implementation which different semantics within
glibc.
More information about the Libc-alpha
mailing list