summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>2022-03-04 17:54:47 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-28 09:57:10 +0200
commitc971e6a1c8fa0816a0a5401b3a9ad137fe112eee (patch)
tree0ea905dc00ba2036bd1917250132fbbd1d4c8aa0 /kernel
parent9f4e64611ebeb9f21126d7312e12db92cc03ba3a (diff)
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions