[PATCH v3 11/22] ethdev: replace strtok with reentrant version
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Sat Dec 16 11:01:32 CET 2023
On 11/14/23 13:59, Jie Hai wrote:
> Multiple threads calling the same function may cause condition
> race issues, which often leads to abnormal behavior and can cause
> more serious vulnerabilities such as abnormal termination, denial
> of service, and compromised data integrity.
>
> The strtok() is non-reentrant, it is better to replace it with a
> reentrant version.
>
> Fixes: f38f62650f7b ("ethdev: add Rx queue telemetry query")
> Fixes: 9e7533aeb80a ("ethdev: add telemetry command for TM level capabilities")
> Cc: stable at dpdk.org
>
> Signed-off-by: Jie Hai <haijie1 at huawei.com>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
More information about the dev
mailing list