Re: [PATCH] ACPI: IORT: validate RMR node array bounds

From: Will Deacon

Date: Fri Jul 31 2026 - 11:46:30 EST


On Mon, Jul 06, 2026 at 05:43:00PM +0800, Pengpeng Hou wrote:
> IORT RMR nodes describe reserved-memory ranges through firmware
> offset and count fields inside the current IORT node.
>
> Validate the generic IORT node length before dispatching it, and
> check both the RMR descriptor array and the ID mapping array before
> walking them. This binds each array walk to the current node length
> instead of only trusting the firmware-provided count.
>
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
> ---
> drivers/acpi/arm64/iort.c | 83 +++++++++++++++++++++++++++++++++++++--
> 1 file changed, 79 insertions(+), 4 deletions(-)

Hanjun, Lorenzo, any thoughts on this one?

Will