[PATCH v4 06/13] telemetry: replace strtok with reentrant version
Stephen Hemminger
stephen at networkplumber.org
Sun Oct 27 04:05:31 CET 2024
On Sat, 26 Oct 2024 18:14:44 +0800
Jie Hai <haijie1 at huawei.com> 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: 6dd571fd07c3 ("telemetry: introduce new functionality")
> Cc: stable at dpdk.org
>
> Signed-off-by: Jie Hai <haijie1 at huawei.com>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>
> Acked-by: Ciara Power <ciara.power at intel.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> ---
> lib/telemetry/telemetry.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
This one could be hit while application is running.
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list