Re: race condition in crypto larval handling

2013-09-08 Thread James Yonan
On 07/09/2013 19:32, Herbert Xu wrote: On Fri, Sep 06, 2013 at 04:20:50PM -0700, Kees Cook wrote: In the two-thread situation, the first thread gets a larval with refcnt 2 via crypto_larval_add. (Why 2?) The next thread finds the larval via crypto_larval_add's call to __crypto_alg_lookup() and

Re: race condition in crypto larval handling

2013-09-08 Thread Kees Cook
On Sat, Sep 7, 2013 at 11:01 PM, Kees Cook wrote: > On Sat, Sep 7, 2013 at 9:54 PM, Herbert Xu > wrote: >> On Sun, Sep 08, 2013 at 02:37:03PM +1000, Herbert Xu wrote: >>> On Sat, Sep 07, 2013 at 08:34:15PM -0700, Kees Cook wrote: >>> > >>> > However, I noticed on the "good" path (even without th