[PATCH v4 09/13] event/cnxk: replace strtok with reentrant version

Stephen Hemminger stephen at networkplumber.org
Sun Oct 27 04:08:18 CET 2024


On Sat, 26 Oct 2024 18:14:47 +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: 8a3d58c189fd ("event/cnxk: add option to control timer adapters")
> Fixes: 8bdbae66b299 ("event/cnxk: add external clock support for timer")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Jie Hai <haijie1 at huawei.com>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>

Another set of parse routines only called during startup.
Patch is unnecessary for stable.


More information about the dev mailing list