linux-stable/drivers/crypto/qat
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
..
qat_4xxx crypto: qat - disable registration of algorithms 2022-03-09 15:12:32 +12:00
qat_c3xxx crypto: qat - store the ring-to-service mapping 2021-12-24 14:18:26 +11:00
qat_c3xxxvf crypto: qat - config VFs based on ring-to-svc mapping 2021-12-24 14:18:27 +11:00
qat_c62x crypto: qat - store the ring-to-service mapping 2021-12-24 14:18:26 +11:00
qat_c62xvf crypto: qat - config VFs based on ring-to-svc mapping 2021-12-24 14:18:27 +11:00
qat_common crypto: qat - disable registration of algorithms 2022-03-09 15:12:32 +12:00
qat_dh895xcc crypto: qat - store the ring-to-service mapping 2021-12-24 14:18:26 +11:00
qat_dh895xccvf crypto: qat - config VFs based on ring-to-svc mapping 2021-12-24 14:18:27 +11:00
Kconfig crypto: qat - introduce support for PFVF block messages 2021-12-24 14:18:26 +11:00
Makefile crypto: qat - add qat_4xxx driver 2020-11-20 14:45:34 +11:00