[PATCH 0/3] crypto: hisilicon - improve backlog handling

ZongYu Wu posted 3 patches 3 weeks, 6 days ago
There is a newer version of this series
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(-)
[PATCH 0/3] crypto: hisilicon - improve backlog handling
Posted by ZongYu Wu 3 weeks, 6 days ago
From: Chenghai Huang <huangchenghai2@huawei.com>

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