mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 00/10] Tegra Security Engine driver improvements
@ 2025-02-24  9:16 Akhil R
  2025-02-24  9:16 ` [PATCH v3 01/10] crypto: tegra: Use separate buffer for setkey Akhil R
                   ` (11 more replies)
  0 siblings, 12 replies; 18+ messages in thread
From: Akhil R @ 2025-02-24  9:16 UTC (permalink / raw)
  To: herbert, davem, thierry.reding, jonathanh, linux-crypto,
	linux-tegra, linux-kernel
  Cc: Akhil R

With the CRYPTO_TEST now being run asynchronously unveiled some
concurrency issues in the Security Engine driver. These were not
caught during functional or fuzz testing as all the tests were run
synchronously.

This patchset contains the fixes for the concurrency issues and few
other improvements identified during the stress-ng and cryptsetup tests.

---
v2->v3:
 * Fixed testbot warnings.
v1->v2:
 * Added patch to handle the scenario when keyslots are full
 * Added patch to finalize crypto request which was not called in some
   error cases.

v1: https://lore.kernel.org/lkml/20241217161207.72921-1-akhilrajeev@nvidia.com/

Akhil R (10):
  crypto: tegra: Use separate buffer for setkey
  crypto: tegra: Do not use fixed size buffers
  crypto: tegra: finalize crypto req on error
  crypto: tegra: check return value for hash do_one_req
  crypto: tegra: Transfer HASH init function to crypto engine
  crypto: tegra: Fix HASH intermediate result handling
  crypto: tegra: Fix CMAC intermediate result handling
  crypto: tegra: Set IV to NULL explicitly for AES ECB
  crypto: tegra: Reserve keyslots to allocate dynamically
  crypto: tegra: Use HMAC fallback when keyslots are full

 drivers/crypto/tegra/tegra-se-aes.c  | 401 ++++++++++++++++++---------
 drivers/crypto/tegra/tegra-se-hash.c | 287 ++++++++++++-------
 drivers/crypto/tegra/tegra-se-key.c  |  27 +-
 drivers/crypto/tegra/tegra-se-main.c |  16 +-
 drivers/crypto/tegra/tegra-se.h      |  39 ++-
 5 files changed, 523 insertions(+), 247 deletions(-)

-- 
2.43.2


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-04-19  9:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-24  9:16 [PATCH v3 00/10] Tegra Security Engine driver improvements Akhil R
2025-02-24  9:16 ` [PATCH v3 01/10] crypto: tegra: Use separate buffer for setkey Akhil R
2025-02-24  9:16 ` [PATCH v3 02/10] crypto: tegra: Do not use fixed size buffers Akhil R
2025-02-24  9:16 ` [PATCH v3 03/10] crypto: tegra: finalize crypto req on error Akhil R
2025-02-24  9:16 ` [PATCH v3 04/10] crypto: tegra: check return value for hash do_one_req Akhil R
2025-02-24  9:16 ` [PATCH v3 05/10] crypto: tegra: Transfer HASH init function to crypto engine Akhil R
2025-02-24  9:16 ` [PATCH v3 06/10] crypto: tegra: Fix HASH intermediate result handling Akhil R
2025-02-24  9:16 ` [PATCH v3 07/10] crypto: tegra: Fix CMAC " Akhil R
2025-02-24  9:16 ` [PATCH v3 08/10] crypto: tegra: Set IV to NULL explicitly for AES ECB Akhil R
2025-02-24  9:16 ` [PATCH v3 09/10] crypto: tegra: Reserve keyslots to allocate dynamically Akhil R
2025-03-05  7:05   ` Akhil R
2025-03-06  8:12     ` Herbert Xu
2025-03-06  8:19       ` Akhil R
2025-02-24  9:16 ` [PATCH v3 10/10] crypto: tegra: Use HMAC fallback when keyslots are full Akhil R
2025-03-08  8:29 ` [PATCH v3 00/10] Tegra Security Engine driver improvements Herbert Xu
2025-04-18 11:45 ` Diederik de Haas
2025-04-19  4:06   ` Herbert Xu
2025-04-19  9:48     ` Diederik de Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®