From: Vinod Koul <vkoul@kernel.org>
To: Eugeniy.Paltsev@synopsys.com, dmaengine@vger.kernel.org,
Joao Pinto <Joao.Pinto@synopsys.com>
Cc: Martin.McKenny@synopsys.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND] Avoid hw_desc array overrun in dw-axi-dmac
Date: Sun, 07 Apr 2024 22:09:15 +0530 [thread overview]
Message-ID: <171250795567.435322.8170668108281183858.b4-ty@kernel.org> (raw)
In-Reply-To: <1711536564-12919-1-git-send-email-jpinto@synopsys.com>
On Wed, 27 Mar 2024 10:49:24 +0000, Joao Pinto wrote:
> I have a use case where nr_buffers = 3 and in which each descriptor is composed by 3
> segments, resulting in the DMA channel descs_allocated to be 9. Since axi_desc_put()
> handles the hw_desc considering the descs_allocated, this scenario would result in a
> kernel panic (hw_desc array will be overrun).
>
> To fix this, the proposal is to add a new member to the axi_dma_desc structure,
> where we keep the number of allocated hw_descs (axi_desc_alloc()) and use it in
> axi_desc_put() to handle the hw_desc array correctly.
>
> [...]
Applied, thanks!
[1/1] Avoid hw_desc array overrun in dw-axi-dmac
commit: 333e11bf47fa8d477db90e2900b1ed3c9ae9b697
Best regards,
--
~Vinod
prev parent reply other threads:[~2024-04-07 16:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-27 10:49 Joao Pinto
2024-04-07 16:39 ` 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=171250795567.435322.8170668108281183858.b4-ty@kernel.org \
--to=vkoul@kernel.org \
--cc=Eugeniy.Paltsev@synopsys.com \
--cc=Joao.Pinto@synopsys.com \
--cc=Martin.McKenny@synopsys.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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®