[PATCH v10 19/19] dmaengine: ti: k3-udma: Validate resource ID and fix logging in reservation
Vignesh Raghavendra
vigneshr at ti.com
Mon Sep 28 01:39:34 PDT 2026
On Mon, 28 Sep 2026 08:26:25 +0530, Sai Sree Kartheek Adivi <s-adivi at ti.com> wrote:
> The `__udma_reserve_##res` macro currently lacks a bounds check for
> the provided `id`. If a caller passes an ID exceeding the resource
> count (`ud->res##_cnt`), `test_bit()` performs an out-of-bounds
> memory access on the bitmap.
>
> Additionally, the macro returns `-ENOENT` when a resource is already
> in use, which is semantically incorrect. The logging logic is also
> broken, printing the literal "res##<id>" instead of the resource
> name.
>
> [...]
Reviewed-by: Vignesh Raghavendra <vigneshr at ti.com>
--
Vignesh
More information about the linux-arm-kernel
mailing list