Linux Remote Processor Subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] remoteproc: mtk_scp: Fix bounds checks in da_to_va callbacks
@ 2026-10-05 11:25 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
  0 siblings, 2 replies; 3+ messages in thread
From: Atul Akella @ 2026-10-05 11:25 UTC (permalink / raw)
  To: linux-remoteproc; +Cc: Atul Akella

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-05 11:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox