[EXT] [PATCH v2] crypto/qat: fix docsis segmentation fault

Akhil Goyal gakhil at marvell.com
Thu Jun 30 06:29:42 CEST 2022


> 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: 98f0608 ("crypto/qat: add symmetric session file")
> Cc: fiona.trahe at intel.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Rebecca Troy <rebecca.troy at intel.com>
> Acked-by: Fan Zhang <roy.fan.zhang at intel.com>
Applied to dpdk-next-crypto

Thanks.


More information about the stable mailing list