[PATCH 0/7] crypto: hisilicon/hpre - misc fixes and cleanups
From: Weili Qian
Date: Fri Sep 18 2026 - 08:35:45 EST
Patches 1-5 fix bugs (OOB read, dead code, wrong errno, DMA mapping
and GFP flags) in the ECDH/RSA/DH paths; patches 6-7 are cleanups.
Weili Qian (7):
crypto: hisilicon/hpre - fix pointer dereference before length check
crypto: hisilicon/hpre - remove dma_free_coherent on NULL req->dst in
ECDH
crypto: hisilicon/hpre - return -EOVERFLOW for small ECDH output
buffer
crypto: hisilicon/hpre - fix ECDH destination DMA mapping
crypto: hisilicon/hpre - fix GFP flags for dma_alloc_coherent
crypto: hisilicon/hpre - extract clusters num into inline function
crypto: hisilicon/hpre - remove unused macros and struct fields
drivers/crypto/hisilicon/hpre/hpre.h | 1 -
drivers/crypto/hisilicon/hpre/hpre_crypto.c | 28 ++++++++---------
drivers/crypto/hisilicon/hpre/hpre_main.c | 47 +++++++++--------------------
3 files changed, 28 insertions(+), 48 deletions(-)
--
2.43.0