mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] irqchip/riscv-imsic: Validate group index geometry
@ 2026-09-06  8:07 Pengpeng Hou
  2026-09-06  8:08 ` [PATCH 1/2] irqchip/riscv-imsic: Ignore unused group index shifts Pengpeng Hou
  2026-09-06  8:09 ` [PATCH 2/2] irqchip/riscv-imsic: Reject overlapping group index fields Pengpeng Hou
  0 siblings, 2 replies; 5+ messages in thread
From: Pengpeng Hou @ 2026-09-06  8:07 UTC (permalink / raw)
  To: Anup Patel, Thomas Gleixner
  Cc: Pengpeng Hou, Radu Rendec, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti, linux-riscv, linux-kernel,
	Andrew Jones, Bjorn Topel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-06 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-06  8:07 [PATCH 0/2] irqchip/riscv-imsic: Validate group index geometry Pengpeng Hou
2026-09-06  8:08 ` [PATCH 1/2] irqchip/riscv-imsic: Ignore unused group index shifts Pengpeng Hou
2026-09-06  9:26   ` Anup Patel
2026-09-06  8:09 ` [PATCH 2/2] irqchip/riscv-imsic: Reject overlapping group index fields Pengpeng Hou
2026-09-06 15:12   ` Anup Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®