> -----Original Message-----
> From: Troy, Rebecca <rebecca.t...@intel.com>
> Sent: Monday, June 27, 2022 5:44 PM
> To: Zhang, Roy Fan <roy.fan.zh...@intel.com>; Kusztal, ArkadiuszX
> <arkadiuszx.kusz...@intel.com>; Trahe, Fiona <fiona.tr...@intel.com>; Tomasz
> Jozwiak <tomaszx.jozw...@intel.com>
> Cc: dev@dpdk.org; Troy, Rebecca <rebecca.t...@intel.com>; sta...@dpdk.org
> Subject: [PATCH] crypto/qat: fix docsis segmentation fault
> 
> Currently if AES or DES algorithms fail for Docsis test suite,
> a segmentation fault occurs when cryptodev_qat_autotest is ran.
> 
> This is due to a duplicate call of EVP_CIPHER_CTX_free for the
> session context. Ctx is freed firstly in the bpi_cipher_ctx_init
> function and then again at the end of qat_sym_session_configure_cipher
> function.
> 
> This commit fixes this bug by removing the first instance
> of EVP_CIPHER_CTX_free, leaving just the dedicated function in
> the upper level to free the ctx.
> 
> Fixes: 98f060891615 ("crypto/qat: add symmetric session file")
> Cc: fiona.tr...@intel.com
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Rebecca Troy <rebecca.t...@intel.com>
> ---

Acked-by: Fan Zhang <roy.fan.zh...@intel.com>

Reply via email to