kernel_optimize_test/drivers/crypto/qat
Giovanni Cabiddu c971e6a1c8 crypto: qat - disable registration of algorithms
commit 8893d27ffcaf6ec6267038a177cb87bcde4dd3de upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-28 09:57:10 +02:00
..
qat_c3xxx crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
qat_c3xxxvf crypto: qat - fix naming for init/shutdown VF to PF notifications 2021-09-15 09:50:26 +02:00
qat_c62x crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
qat_c62xvf crypto: qat - fix naming for init/shutdown VF to PF notifications 2021-09-15 09:50:26 +02:00
qat_common crypto: qat - disable registration of algorithms 2022-03-28 09:57:10 +02:00
qat_dh895xcc crypto: qat - drop input parameter from adf_enable_aer() 2020-10-08 16:38:06 +11:00
qat_dh895xccvf crypto: qat - fix naming for init/shutdown VF to PF notifications 2021-09-15 09:50:26 +02:00
Kconfig crypto: skcipher - rename the crypto_blkcipher module and kconfig option 2019-11-01 13:42:47 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00