[PATCH 0/7] crypto: hisilicon/hpre - misc fixes and cleanups

Weili Qian posted 7 patches 6 days, 10 hours ago
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(-)
[PATCH 0/7] crypto: hisilicon/hpre - misc fixes and cleanups
Posted by Weili Qian 6 days, 10 hours ago
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
Re: [PATCH 0/7] crypto: hisilicon/hpre - misc fixes and cleanups
Posted by Herbert Xu 1 day, 14 hours ago
On Fri, Sep 18, 2026 at 08:27:19PM +0800, Weili Qian wrote:
> 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

All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt