[PATCH 0/2] irqchip/riscv-imsic: Validate group index geometry

From: Pengpeng Hou

Date: Sun Sep 06 2026 - 04:11:13 EST


This series handles absent and overlapping IMSIC group fields.

Patch 1 skips group-shift validation and masking when the group width is
zero, including the APLIC consumer. Patch 2 rejects nonzero fields that
overlap the lower address fields and makes the upper-bound check safe.

The series is based on tip/irq/drivers, which already contains
bd7d57a03c4b ("irqchip/riscv-imsic: Use GENMASK for base address masks").
That prerequisite is not included again.

The two patches have not previously been submitted. The earlier local
draft versions do not constitute public revisions.

The issues were found by our static-analysis tool and manually reviewed.

Assisted-by: GPT-5

Pengpeng Hou (2):
irqchip/riscv-imsic: Ignore unused group index shifts
irqchip/riscv-imsic: Reject overlapping group index fields