Re: [PATCH v2] iio: adc: xilinx-ams: fix out-of-bounds accesses when parsing channels

From: Arnav Kapoor

Date: Fri Oct 23 2026 - 15:29:52 EST


On Thu, Oct 22, 2026 at 07:36:13PM +0530, Arnav Kapoor wrote:
> ams_parse_firmware() allocates room for ARRAY_SIZE(ams_ps_channels) +
> ARRAY_SIZE(ams_pl_channels) + ARRAY_SIZE(ams_ctrl_channels) = 51
> channel specs and lets ams_init_module() fill them for the AMS node and
> each of its children, without telling it how much room is left.

Please discard this posting. I sent v2 again on Oct 23, please review
that one instead:

https://lore.kernel.org/all/20261023185652.195025-1-kapoorarnav43@xxxxxxxxx/

Sorry for the noise.

--
Arnav