Re: [PATCH] crypto: caam - fix use after free issue in *_crypt_done

2020-04-28 Thread Zhenzhong Duan
On Tue, Apr 28, 2020 at 3:48 PM Iuliana Prodan wrote: > > On 4/28/2020 8:14 AM, Zhenzhong Duan wrote: > > In both aead_crypt_done and skcipher_crypt_done, edesc->bklog is > > referenced after the structure pointed by edesc is freed. > > > > Fix them by moving kfree(edesc) to the end of function ca

Re: [PATCH] crypto: caam - fix use after free issue in *_crypt_done

2020-04-28 Thread Iuliana Prodan
On 4/28/2020 8:14 AM, Zhenzhong Duan wrote: > In both aead_crypt_done and skcipher_crypt_done, edesc->bklog is > referenced after the structure pointed by edesc is freed. > > Fix them by moving kfree(edesc) to the end of function call. > > Signed-off-by: Zhenzhong Duan These issues were already