[PATCH v4 00/42] replace strerror
Stephen Hemminger
stephen at networkplumber.org
Wed Oct 23 17:42:37 CEST 2024
On Wed, 23 Oct 2024 16:28:10 +0800
Dengdui Huang <huangdengdui at huawei.com> wrote:
> The function strerror() is insecure in a multi-thread environment.
> It is better to use rte_strerror() instead of strerror().
> In this patchset, only the libs and drivers are modified.
>
> chang log:
> v3->v4 fix ci error
> v2->v3 drop patch "telemetry: replace strerror" due to compile fail
> v1-v2 fix ci error
Even rte_strerror is not completely safe. It depends on the calling
thread being a registered lcore.
It would be better to use a coccinelle script to do direct replacement
with strerror_r().
Also, rte_strerror is not signal safe.
More information about the dev
mailing list