Linux Remote Processor Subsystem development
 help / color / mirror / Atom feed
From: Mathieu Poirier <mathieu.poirier@linaro.org>
To: Atul Akella <atul.akella@gmail.com>
Cc: linux-remoteproc@vger.kernel.org
Subject: Re: [PATCH 0/2] remoteproc: mtk_scp: Fix bounds checks in da_to_va callbacks
Date: Wed, 21 Oct 2026 10:46:01 -0600	[thread overview]
Message-ID: <atjsSS1_dA7nhXmD@p14s> (raw)
In-Reply-To: <cover.1791198233.git.atul.akella@gmail.com>

On Mon, Oct 05, 2026 at 11:25:16AM +0000, Atul Akella wrote:
> mt8183_scp_da_to_va() and mt8192_scp_da_to_va() validate the device
> address and length that the ELF loader passes in from the firmware's
> program headers. Both checks can be bypassed through integer truncation
> or wraparound. These two patches fix them with overflow-safe comparisons.
> 
> The fixes have different origin commits, so they are split for stable
> backporting.
> 
> Compile tested only (arm64 defconfig, W=1). Not tested on hardware.
> 
> Atul Akella (2):
>   remoteproc: mtk_scp: Fix bounds check in mt8183_scp_da_to_va()
>   remoteproc: mtk_scp: Fix bounds check in mt8192_scp_da_to_va()
> 
>  drivers/remoteproc/mtk_scp.c | 32 +++++++++++++++++---------------
>  1 file changed, 17 insertions(+), 15 deletions(-)

I will apply this set when 7.4-rc1 comes out.

Thanks,
Mathieu

> 
> -- 
> 2.43.0
> 
> 

      parent reply	other threads:[~2026-10-21 16:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 11:25 [PATCH 0/2] remoteproc: mtk_scp: Fix bounds checks in da_to_va callbacks Atul Akella
2026-10-05 11:25 ` [PATCH 1/2] remoteproc: mtk_scp: Fix bounds check in mt8183_scp_da_to_va() Atul Akella
2026-10-05 11:25 ` [PATCH 2/2] remoteproc: mtk_scp: Fix bounds check in mt8192_scp_da_to_va() Atul Akella
2026-10-15 15:19 ` [PATCH 0/2] remoteproc: mtk_scp: fix da_to_va() bounds checks Atul Akella
2026-10-16 14:48   ` Mathieu Poirier
2026-10-16 14:52     ` Mathieu Poirier
2026-10-21 16:46 ` Mathieu Poirier [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=atjsSS1_dA7nhXmD@p14s \
    --to=mathieu.poirier@linaro.org \
    --cc=atul.akella@gmail.com \
    --cc=linux-remoteproc@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