[PATCH 0/6] irqchip: validate ACPI MADT entries before use

From: Jiale Yao

Date: Fri Oct 16 2026 - 10:37:10 EST


IRQ chip ACPI probing receives MADT records supplied by firmware. The
common probe path does not currently verify that the complete declared
entry is contained in the table, and several callbacks access
fixed-size records without checking their minimum size. Malformed
entries can therefore cause out-of-bounds reads during early boot.

Add the common declared-range check first, then validate the concrete
ITS, GIC, LIO-PIC, and BIO-PIC records in their respective callbacks.
Each patch remains independently buildable and limits its changes to one
parser implementation.

Jiale Yao (6):
ACPI: irqchip: validate MADT entry bounds before probing
irqchip/gic-v3-its: validate MADT ITS entries
irqchip/gic-v3: validate MADT records before use
irqchip/gic-v5-its: validate MADT translate frames
irqchip/loongarch-cpu: validate MADT LIO-PIC entries
irqchip/loongson-eiointc: validate MADT BIO-PIC entries

drivers/acpi/scan.c | 7 +++++++
drivers/irqchip/irq-gic-v3-its.c | 3 +++
drivers/irqchip/irq-gic-v3.c | 18 ++++++++++++++++++
drivers/irqchip/irq-gic-v5-its.c | 3 +++
drivers/irqchip/irq-loongarch-cpu.c | 3 +++
drivers/irqchip/irq-loongson-eiointc.c | 10 ++++++++--
6 files changed, 42 insertions(+), 2 deletions(-)

--
2.34.1