[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240321084614.45253-1-angelogioacchino.delregno@collabora.com>
Date: Thu, 21 Mar 2024 09:46:12 +0100
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: mathieu.poirier@...aro.org
Cc: andersson@...nel.org,
matthias.bgg@...il.com,
angelogioacchino.delregno@...labora.com,
tzungbi@...nel.org,
tinghan.shen@...iatek.com,
linux-remoteproc@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
wenst@...omium.org,
kernel@...labora.com
Subject: [PATCH 0/2] MediaTek SCP: Urgent fixes for all MTK SoCs
This series brings some missing validation for the IPI buffer size
that is read from the firmware retrieved from userspace: if the FW
declares IPI buffer offset starting at an out of range address, the
driver doesn't do any validation and naively goes on with IO R/W
operation.
That poses various risks which I believe I really don't need to
describe, leaving it to the reader's imagination :-)
Please note that the first fix is URGENT.
P.S.: Of course, this was tested OK on multiple MTK platforms.
AngeloGioacchino Del Regno (2):
remoteproc: mediatek: Make sure IPI buffer fits in L2TCM
remoteproc: mediatek: Don't parse extraneous subnodes for multi-core
drivers/remoteproc/mtk_scp.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
--
2.44.0
Powered by blists - more mailing lists