DMA Engine development
 help / color / mirror / Atom feed
From: Vinod Koul <vkoul@kernel.org>
To: peter.ujfalusi@gmail.com, nathan@kernel.org,
	 Anders Roxell <anders.roxell@linaro.org>
Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org,
	 llvm@lists.linux.dev, dan.carpenter@linaro.org, arnd@arndb.de,
	 benjamin.copeland@linaro.org
Subject: Re: [PATCHv2] dmaengine: ti: edma: Fix memory allocation size for queue_priority_map
Date: Tue, 02 Sep 2025 15:05:35 +0530	[thread overview]
Message-ID: <175680573537.233989.3534240892584425378.b4-ty@kernel.org> (raw)
In-Reply-To: <20250830094953.3038012-1-anders.roxell@linaro.org>


On Sat, 30 Aug 2025 11:49:53 +0200, Anders Roxell wrote:
> Fix a critical memory allocation bug in edma_setup_from_hw() where
> queue_priority_map was allocated with insufficient memory. The code
> declared queue_priority_map as s8 (*)[2] (pointer to array of 2 s8),
> but allocated memory using sizeof(s8) instead of the correct size.
> 
> This caused out-of-bounds memory writes when accessing:
>   queue_priority_map[i][0] = i;
>   queue_priority_map[i][1] = i;
> 
> [...]

Applied, thanks!

[1/1] dmaengine: ti: edma: Fix memory allocation size for queue_priority_map
      commit: e63419dbf2ceb083c1651852209c7f048089ac0f

Best regards,
-- 
~Vinod



  reply	other threads:[~2025-09-02  9:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-29 13:13 [PATCH] dmaengine: ti: edma: Fix memory allocation size for queue_priority_map Anders Roxell
2025-08-29 23:21 ` Nathan Chancellor
2025-08-30  9:48   ` Anders Roxell
2025-08-30  9:49   ` [PATCHv2] " Anders Roxell
2025-09-02  9:35     ` Vinod Koul [this message]
2025-09-08 19:01     ` Christophe JAILLET

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=175680573537.233989.3534240892584425378.b4-ty@kernel.org \
    --to=vkoul@kernel.org \
    --cc=anders.roxell@linaro.org \
    --cc=arnd@arndb.de \
    --cc=benjamin.copeland@linaro.org \
    --cc=dan.carpenter@linaro.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=nathan@kernel.org \
    --cc=peter.ujfalusi@gmail.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