linux-stable/drivers/crypto/qat/qat_4xxx
Giovanni Cabiddu 8893d27ffc crypto: qat - disable registration of algorithms
The implementations of aead and skcipher in the QAT driver do not
support properly requests with the CRYPTO_TFM_REQ_MAY_BACKLOG flag set.
If the HW queue is full, the driver returns -EBUSY but does not enqueue
the request.
This can result in applications like dm-crypt waiting indefinitely for a
completion of a request that was never submitted to the hardware.

To avoid this problem, disable the registration of all crypto algorithms
in the QAT driver by setting the number of crypto instances to 0 at
configuration time.

Cc: stable@vger.kernel.org
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2022-03-09 15:12:32 +12:00
..
adf_4xxx_hw_data.c crypto: qat - enable power management for QAT GEN4 2022-02-18 16:21:09 +11:00
adf_4xxx_hw_data.h crypto: qat - enable power management for QAT GEN4 2022-02-18 16:21:09 +11:00
adf_drv.c crypto: qat - disable registration of algorithms 2022-03-09 15:12:32 +12:00
Makefile