[PATCH 0/3] crypto: hisilicon - improve backlog handling
From: ZongYu Wu
Date: Fri May 15 2026 - 08:06:54 EST
From: Chenghai Huang <huangchenghai2@xxxxxxxxxx>
This series improves backlog handling for HiSilicon crypto drivers.
The ZIP and HPRE drivers are extended to support backlog queuing when
the hardware queue is temporarily busy. Instead of failing requests
immediately under hardware congestion, requests can now be queued and
resubmitted when previous requests complete.
The series also fixes a use-after-free issue in the SEC2 backlog path.
The crypto core may release the request and its tfm context immediately
after crypto_request_complete() returns. The SEC2 driver must therefore
avoid accessing context memory that may already have been freed while
processing backlog requests.
Chenghai Huang (1):
crypto: hisilicon/zip - add backlog support for zip
Wenkai Lin (1):
crypto: hisilicon/sec2 - fix UAF in sec_alg_send_backlog
lizhi (1):
crypto: hisilicon/hpre - implement full backlog support for hpre
driver
drivers/crypto/hisilicon/hpre/hpre_crypto.c | 223 +++++++++++----
drivers/crypto/hisilicon/sec2/sec_crypto.c | 23 +-
drivers/crypto/hisilicon/zip/zip_crypto.c | 286 +++++++++++++-------
3 files changed, 359 insertions(+), 173 deletions(-)
--
2.43.0