linux/drivers/accel/ethosu
Rob Herring (Arm) 021f1b77f7 accel: ethosu: Handle possible underflow in IFM size calculations
If the command stream has larger padding sizes than the IFM and OFM
diminsions, then the calculations will underflow to a negative value.
The result is a very large region bounds which is caught on submit, but
it's better to catch it earlier.

Current mesa ethosu driver has a signedness bug which resulted in
padding of 127 (the max) and triggers this issue.

Reviewed-and-Tested-by: Anders Roxell <anders.roxell@linaro.org>
Link: https://patch.msgid.link/20260218-ethos-fixes-v1-3-be3fa3ea9a30@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
2026-03-05 15:21:17 -06:00
..
ethosu_device.h accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
ethosu_drv.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
ethosu_drv.h accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
ethosu_gem.c accel: ethosu: Handle possible underflow in IFM size calculations 2026-03-05 15:21:17 -06:00
ethosu_gem.h accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
ethosu_job.c accel: ethosu: Fix job submit error clean-up refcount underflows 2026-03-05 15:21:17 -06:00
ethosu_job.h accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
Kconfig accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
Makefile accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00