[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclibc
Subject:    Re: [RFC][PATCH] malloc:checked_request2size fail will let malloc futex locked
From:       Bernhard Reutner-Fischer <rep.dot.nop () gmail ! com>
Date:       2015-03-18 21:44:11
Message-ID: 20150318214411.GB15023 () nbbrfq ! cc ! univie ! ac ! at
[Download RAW message or body]

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.zhang@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?

Never mind, the patch is ok.

Applied, thanks!
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic