[PATCH v2 14/22] telemetry: replace strtok with reentrant version

Power, Ciara ciara.power at intel.com
Thu Jan 11 18:13:29 CET 2024



> -----Original Message-----
> From: Jie Hai <haijie1 at huawei.com>
> Sent: Tuesday, November 14, 2023 8:41 AM
> To: dev at dpdk.org; Power, Ciara <ciara.power at intel.com>; Wiles, Keith
> <keith.wiles at intel.com>; Richardson, Bruce <bruce.richardson at intel.com>
> Cc: haijie1 at huawei.com; lihuisong at huawei.com;
> fengchengwen at huawei.com
> Subject: [PATCH v2 14/22] telemetry: replace strtok with reentrant version
> 
> 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>


More information about the dev mailing list