mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Haoxiang Li <haoxiang_li2024@163.com>
Cc: schalla@marvell.com, bbhushan2@marvell.com,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] crypto: marvell/cesa - Fix hash DMA buffer cleanup
Date: Fri, 27 Nov 2026 13:13:16 +0800	[thread overview]
Message-ID: <awkRbH_mH0NCGFzd@gondor.apana.org.au> (raw)
In-Reply-To: <20261118075636.2152451-1-haoxiang_li2024@163.com>

On Wed, Nov 18, 2026 at 03:56:33PM +0800, Haoxiang Li wrote:
> This series fixes DMA cache and padding buffer leaks in the CESA hash
> request error paths.
> 
> The DMA cache is not released when request preparation fails. Padding
> cleanup can also be skipped because request type detection depends on a
> TDMA chain that has already been cleared. In addition, final requests
> rejected by the queue leave their padding allocated.
> 
> The patches address these cleanup paths and clear the DMA cache pointer
> after freeing it to prevent stale-pointer reuse.
> 
> Testing:
> - ARM compile testing of hash.o for each intermediate revision, using
>   Clang with W=1 and KCFLAGS=-Werror.
> - Userspace mock tests of extracted driver functions covering allocation
>   failures, queue rejection, backlog acceptance, completion cleanup,
>   retries and non-DMA requests.
> 
> The mock tests, which is assisted by codex, validate resource lifetimes
> with DMA pools and hardware interfaces mocked. No hardware testing was performed.
> 
> Haoxiang Li (3):
>   crypto: marvell/cesa - Fix DMA cache leaks on hash setup errors
>   crypto: marvell/cesa - Fix padding cleanup on hash setup errors
>   crypto: marvell/cesa - Free hash padding when queueing fails
> 
>  drivers/crypto/marvell/cesa/hash.c | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> 
> base-commit: 666539eecdf4db623f5e3c3e55cf9f2dfad24aa4
> -- 
> 2.25.1

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

      parent reply	other threads:[~2026-11-27  5:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  7:56 Haoxiang Li
2026-11-18  7:56 ` [PATCH 1/3] crypto: marvell/cesa - Fix DMA cache leaks on hash setup errors Haoxiang Li
2026-11-18  7:56 ` [PATCH 2/3] crypto: marvell/cesa - Fix padding cleanup " Haoxiang Li
2026-11-18  7:56 ` [PATCH 3/3] crypto: marvell/cesa - Free hash padding when queueing fails Haoxiang Li
2026-11-27  5:13 ` Herbert Xu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awkRbH_mH0NCGFzd@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=bbhushan2@marvell.com \
    --cc=haoxiang_li2024@163.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schalla@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®