[PATCH] ACPI: GTDT: Relax sanity checking on Platform Timers array count

Marc Zyngier maz at kernel.org
Tue Jan 28 00:46:48 PST 2025


On Tue, 28 Jan 2025 00:17:49 +0000,
Oliver Upton <oliver.upton at linux.dev> wrote:
> 
> Perhaps unsurprisingly there are some platforms where the GTDT isn't
> quite right and the Platforms Timer array overflows the length of the
> overall table.

Colour me shocked! Broken ACPI tables? [insert REM song here].

> 
> While the recently-added sanity checking isn't wrong, it makes it
> impossible to boot the kernel on offending platforms. Try to hobble
> along and limit the Platform Timer count to the bounds of the table.
> 
> Cc: Marc Zyngier <maz at kernel.org>
> Cc: Lorenzo Pieralisi <lpieralisi at kernel.org>
> Cc: Zheng Zengkai <zhengzengkai at huawei.com>
> Cc: stable at vger.kernel.org
> Fixes: 263e22d6bd1f ("ACPI: GTDT: Tighten the check for the array of platform timer structures")
> Signed-off-by: Oliver Upton <oliver.upton at linux.dev>

Acked-by: Marc Zyngier <maz at kernel.org>

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list