[PATCH v4 07/13] bus/fslmc: replace strtok with reentrant version
Stephen Hemminger
stephen at networkplumber.org
Sun Oct 27 04:06:47 CET 2024
On Sat, 26 Oct 2024 18:14:45 +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: 9ccb76b24c1d ("bus/fslmc: enable portal interrupt handling")
> Fixes: 828d51d8fc3e ("bus/fslmc: refactor scan and probe functions")
> Cc: stable at dpdk.org
>
> Signed-off-by: Jie Hai <haijie1 at huawei.com>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>
> Acked-by: Sachin Saxena <sachin.saxena at nxp.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> ---
> drivers/bus/fslmc/fslmc_bus.c | 5 +++--
> drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 4 ++--
> 2 files changed, 5 insertions(+), 4 deletions(-)
Only called during bus scan so single threaded.
Not needed for stable.
More information about the dev
mailing list