[PATCH v2] iio: adc: xilinx-ams: fix out-of-bounds accesses when parsing channels
Arnav Kapoor
kapoorarnav43 at gmail.com
Fri Oct 23 12:29:26 PDT 2026
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@gmail.com/
Sorry for the noise.
--
Arnav
More information about the linux-arm-kernel
mailing list