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

2015-03-18 Thread Bernhard Reutner-Fischer
On March 18, 2015 11:44:50 AM GMT+01:00, Zhiqiang Zhang zhangzhiqiang.zh...@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

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

2015-03-18 Thread Zhiqiang Zhang
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

Re: [PATCH] Do not define unimplemented functions

2015-03-18 Thread Bernhard Reutner-Fischer
On Sat, Nov 22, 2014 at 11:46:54AM +0100, Bernd Kuhls wrote: Bernhard Reutner-Fischer rep.dot@gmail.com wrote in news:cac1bbct8gpq7jegoyddzy57iu4rb5-5fm_kvapc8survmjx...@mail.gmail.com: On 23 September 2014 15:35, Bernd Kuhls bernd.ku...@t-online.de wrote: this patch really fixes a

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

2015-03-18 Thread Bernhard Reutner-Fischer
On Wed, Mar 18, 2015 at 12:05:12PM +0100, Bernhard Reutner-Fischer wrote: On March 18, 2015 11:44:50 AM GMT+01:00, Zhiqiang Zhang zhangzhiqiang.zh...@huawei.com wrote: For some rarely cases(almost App bugs), calling malloc with a very largre size, checked_request2size check will fail,set