diff options
| author | Lorenzo Pieralisi <lpieralisi@kernel.org> | 2026-08-12 11:10:29 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-08-20 10:23:53 +0200 |
| commit | 328affc639ce9873a7a0a3fd6b8339f19767529b (patch) | |
| tree | 074971764308eabc609523ef09b70df790e838ff /tools/lib/python | |
| parent | ac6db0e0bee18cd4385418c752a007e1aba4ec14 (diff) | |
| download | linux-328affc639ce9873a7a0a3fd6b8339f19767529b.tar.gz linux-328affc639ce9873a7a0a3fd6b8339f19767529b.zip | |
irqchip/gic-v5: Check get_logical_index() return value in MADT IAFFID parsing
In gic_acpi_parse_iaffid() a given MADT GICC entry might not correspond
to a logical cpu recognized by the kernel, resulting in the cpu variable
initialization to an error value.
Currently, the get_logical_index() return value is not checked for failure,
which might result in out-of-bounds memory corruption while trying to
index a per_cpu variable array.
Add a check to evaluate get_logical_index() return value.
Fixes: 35866efa52fe ("irqchip/gic-v5: Add ACPI IRS probing")
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://sashiko.dev/#/message/20260810104747.E5CE71F000E9%40smtp.kernel.org
Link: https://patch.msgid.link/20260812-gicv5-7-2-fixes-v1-1-3743e82c69a4@kernel.org
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
