diff options
| author | Pengpeng Hou <hppiscas@163.com> | 2026-09-20 11:42:36 +0800 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-10-15 11:50:47 +0200 |
| commit | 16f25d326e5d3b9fd51bc5e3916ecbffbca63e7b (patch) | |
| tree | 8a60b620da0624abd7ece26f046cc15b83849aad /scripts/Makefile.thinlto | |
| parent | e571b39dedb10e64ee97f43e2f51ec918089a0dc (diff) | |
| download | linux-16f25d326e5d3b9fd51bc5e3916ecbffbca63e7b.tar.gz linux-16f25d326e5d3b9fd51bc5e3916ecbffbca63e7b.zip | |
irqchip/mst-intc: Validate the DT interrupt range
The driver takes an inclusive interrupt range from the device tree
without checking its endpoints. A reversed range wraps the unsigned
count calculation, and a range larger than MST_INTC_MAX_IRQS exceeds the
controller capacity used by the driver.
Reject these ranges before calculating nr_irqs or creating the domain.
Check the difference after ordering the endpoints so the validation
itself cannot wrap.
The issue was found by our static-analysis tool.
Fixes: ad4c938c92af ("irqchip/irq-mst: Add MStar interrupt controller support")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Assisted-by: gpt 5
Reviewed-by: Radu Rendec <radu@rendec.net>
Link: https://patch.msgid.link/20260920034236.16229-1-hppiscas@163.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
