[PATCH 3/8] dmadev: validate telemetry parameters
fengchengwen
fengchengwen at huawei.com
Mon Jun 8 03:20:56 CEST 2026
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
On 6/6/2026 4:51 AM, Stephen Hemminger wrote:
> Tighten parsing of the dmadev telemetry device and vchan parameters:
> reject non-numeric and out-of-range ids through a bounded helper rather
> than narrowing strtoul()'s result to int and leaning on the downstream
> int16_t/uint16_t API to revalidate. This also drops the thread-unsafe
> strtok() in the stats handler.
>
> Fixes: 39b5ab60df30 ("dmadev: add telemetry")
> Cc: stable at dpdk.org
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list