[RFC][PATCH] malloc:checked_request2size fail will let malloc futex locked

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Mar 18 11:05:12 UTC 2015

On March 18, 2015 11:44:50 AM GMT+01:00, Zhiqiang Zhang <zhangzhiqiang.zhang at huawei.com> wrote:
>For some rarely cases(almost App bugs), calling malloc with
>a very largre size, checked_request2size check will fail,set
>ENOMEM, and return 0 to caller.
>But this will let __malloc_lock futex locked and owned by the
>caller. In multithread circumstance, other thread calling
>malloc/calloc will NOT succeed and get locked.

Testcase, please?
Are the other 2 malloc implementations affected, too?

More information about the uClibc mailing list