Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vkoul@kernel.org>
To: Frank.Li@kernel.org, wens@kernel.org, jernej.skrabec@gmail.com,
	 samuel@sholland.org, mripard@kernel.org, arnd@arndb.de,
	 Hongling Zeng <zenghongling@kylinos.cn>
Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	 linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
	 zhongling0719@126.com
Subject: Re: [PATCH RESEND v5] dmaengine: sun6i-dma: Fix use-after-free in error handling paths
Date: Thu, 03 Sep 2026 22:34:34 +0530	[thread overview]
Message-ID: <178845507472.1711546.14595232689588667911.b4-ty@kernel.org> (raw)
In-Reply-To: <20260727061142.44195-1-zenghongling@kylinos.cn>


On Mon, 27 Jul 2026 14:11:42 +0800, Hongling Zeng wrote:
> In error handling paths, the for loop frees v_lli in the loop body,
> then accesses v_lli->v_lli_next and v_lli->p_lli_next in the
> increment expression, which is use-after-free.
> 
> Fix by refactoring the cleanup into a helper function sun6i_dma_free_desc()
> that saves both the next virtual and physical pointers before freeing the
> current node, preventing the use-after-free.
> 
> [...]

Applied, thanks!

[1/1] dmaengine: sun6i-dma: Fix use-after-free in error handling paths
      commit: 3d2c0d555d34e661d3280f85bf01ec7ed63a8f44

Best regards,
-- 
~Vinod




      parent reply	other threads:[~2026-09-03 17:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-27  6:11 [PATCH RESEND v5] dmaengine: sun6i-dma: Fix use-after-free in error handling paths Hongling Zeng
2026-08-14 20:58 ` Frank Li
2026-09-03 17:04 ` Vinod Koul [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=178845507472.1711546.14595232689588667911.b4-ty@kernel.org \
    --to=vkoul@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=arnd@arndb.de \
    --cc=dmaengine@vger.kernel.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=mripard@kernel.org \
    --cc=samuel@sholland.org \
    --cc=wens@kernel.org \
    --cc=zenghongling@kylinos.cn \
    --cc=zhongling0719@126.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